Unija application development
First, Unija SDK installation and use
1. Unija SDK2.1 is China Unicom to add some custom interfaces and specific development packages, installation methods, and WTK2.1, and installed according to prompts.
2, integration with JBuilder: found that UNIJA SDK is integrated in use, compiling errors, no reason, is currently developed in JBuilder, replicates the source program to Unija SDK is recompiled and running.
3. The method of using UNIJA SDK2.1 is the same as WTK2.1, only the simulator of the X859, W800 devices in UNIJA SDK2.1.
Second, the development of UNIJA applications
(1), user interface specification:
1. Principle of availability when developing Java services:
Flexibility and efficiency of use;
Interview with system status;
Matching between systems and real worlds;
User control and freedom;
Style consistency and standard;
It is easy to use;
Aesthetic consideration;
Help user identification, diagnosis, and repair errors;
Help and documentation;
Visual synthesis.
2. Application user interface:
1) The name of the application is only allowed to use Chinese name (except in English), whether or not an icon contains, the name should be controlled in a row, the number of words matches the screen of each target device.
2) JAD attribute
The necessary JAD attributes under any conditions:
MIDlet-name
MIDlet-Version
MIDlet-vendor
MIDlet-jar-url
MIDlet-jar-size
MIDlet-description
3) The application's flash screen (Splash Screen)
Required: (1), start the flash screen while starting the application;
(2) After the startup, Splash can only display a screen and cannot contain help or user information;
(3), in one screen contains:
Application name or logo
Application version
The company's name or logo.
Optional: (1), can be accompanied by sound when the flash screen is appear;
(2), it is recommended that the display time of the flash is not more than 1 second, and the user is allowed to press any key to skip the flash screen.
4) Main screen of the application
Displayed after the flash screen is the primary screen or basic screen of the application, and the main screen should contain at least the following:
Start: Start the application (this menu item name can be customized)
About: The company name, application name, version number, application size, company customer service call should be given.
Help: Provide application introduction, operational guide. It is recommended that 300 Chinese characters or give the website.
Exit: Exit the application.
Remarks: For related applications such as pass class games, the function menu for saving / recovery progress should be added.
5) Waiting for the operation process (Process Waiting)
In many cases, the application cannot make an instantaneous reaction. If the user must wait for the application to complete a process, you should provide a visual feedback and should prompt how the user cancels the process.
Less than 1 second: One second is the limit of normal thinking speed, but users may notice delays and do not provide feedback.
More than 1 second: When the user waits for a long time, the movie should be used (e.g., progress bar) to display the progress state, and the prompt information is recommended (eg, the time required for waiting). For repeated buttons, except "CLR" keys, it is ignored because the user tends to repeat the button when the process is processed.
3, Java user interface features
1) Typography
Font: It is recommended to use three fonts of normal, large, bold;
Alignment: The document should be left aligned, the title can be left aligned, centered or right.
In order to make information easier to read, it should be wrapped in the appropriate place;
The screen layout needs to be submitted for each mobile phone.
2) icon
(1), icon classification:
Status icon: If there is a plurality of states in the menu item, you can use the icon intuitive display of these states.
Icon Bar: When providing a series of operations to users, it cannot take up the screen area of too many applications,
The icon bar should be used.
(2), icon usage specification:
Icon size
Application icon
- Icon size of each application: 16 × 16.
- The size of 16 × 16 (or 26 × 26), the actual occupancy size is 12 × 12 (or 22 × 22), retains a transparent boundary or icon for 2 dot matrix widths for transparent processing.
Menu icon
- 12 × 12 (List menu), icon height is not greater than text height
- 24 × 24
Icon format:
PNG (transparent processing background color RGB value = 0, 0, 0)
3) Tip text (alerting text)
The prompt text should be Simplified Chinese, avoiding other languages and Chinese mixed content (except English special nouns), such as "Loading ... Please wait", you should "download ... please wait".
The error message prompt should be concise and prompts the user how to return to the previous screen.
4) Menu usage specification:
¨ 菜 Menu Title Word Number Control is displayed in one line;
¨ In the default, each item in the menu occupies a row, but in special cases, multiple menu items are allowed in the same row;
¨ The items in the menu are arranged in a certain logic order, such as according to type, time, alphabetical order, etc. If there is no logical order, it is arranged in priority, and the priority is high in front;
¨ When designing the user interface of the menu, consider the width and depth of the menu hierarchy. Width refers to the number of options in each layer menu, the suggestion option is displayed as the upper limit by the terminal first; the depth refers to the number of menu layers in the structure, suggests 2 to 3 floors.
5) Text input and navigation (Text Input and navigation)
¨ If you need a specific input format, you must indicate the input format, for example, enter the date: mm / yy
¨ If you enter more than one line, the text box should support multi-line input and scroll bar.
¨ The password entered on the user should be displayed in the input process, do not cover it with *. When the user is in the next use, the password should be displayed in *.
¨ Support automatic memory capabilities of input data, such as user name and password save.
¨ For applications that require usernames and passwords, we must fully consider how to make new users are very convenient and simply completed; when they are registered, for use, for mobile payment, etc., it is recommended to use the user name and The password is filled in the default, the user selects "Log in" button. ¨¨ Automatically switch to the user input to the appropriate input mode, for example, if the application requires the user to enter the phone number, automatically set the text input mode to only enter numbers.
¨ If the user is required to enter the username, since the user usually uses the letter, the text input mode is automatically set to the letter.
¨ Applications should limit users to enter input within the range required to avoid user input errors.
¨ For the defined content, for example, enter the "year" can be preset to "20xx", only the user input two digits
¨ Try to minimize user text input
¨ For each input item, intuitive tips and descriptions, no more than 8 Chinese characters
¨ "Back / Return" before the text input
In the state of text input, there are two different ways to return to the previous screen. The preferred method is to select a soft key menu. Add a menu item in the soft key menu input to text, which function is similar to the "Back" or "Cancel" function in the menu.
The second method is to allow the "CLR" or "return" to the function of "Return" or "Return" to the previous screen in a state in which the text input is not characterized in the text input.
The above two methods should be considered to be used.
6) form
The form is a common interface interacting with the user, and the general recommendations in the form layout are listed below:
¨ The number should be aligned by right.
¨ The number of currency fields should be aligned, but the currency symbol should be aligned.
¨ The title of the title and the input field should be clearly separated.
¨ 排 Sort and group input fields is an effective way, users don't need to be read frequently before and after.
¨ The title and its input field should be visually connected.
7) Keywords (KEY WORDS)
In the application, the consistent keyword use style can significantly improve the availability of the business, in general, keywords should be capitalized, other letters should be lowercase, unless the words of pure capital combination, such as: OK, etc.
(2) Development and Design Guide:
1, the characteristics of the terminal:
1) Flash ROM: JAR JAD RMS size cannot exceed 256K.
2) LCD: Supports at least 12BITS color display.
2, execution speed:
The normal method of MIDP is to add some additional rows from the program. The following statement can measure a call fee
time:
Long StartTime = system.currenttimemillis ();
DOSMETHING ();
Long Timetaken = System.currentTimeMillis () - StartTime;
You will get a time value for milliseconds, in order to avoid fluctuations due to garbage collection during the test process,
Before testing, you should call SYSTEM.GC (). To display test data, you can use a special MIDlet screen, or
Use the result data to cover the display on the normal screen.
It is worth noting that the accuracy of the mobile phone system clock must be checked, and the return value may not be more than milliseconds, so please pay attention to check
Return the value, if it is always ten times, then ensure that a long enough test time can ignore this problem.
3, file size
Try to narrow the size of the JAR file, Unicom Unija specification specified the maximum file size of the application should not exceed 256K. 4. See some other development recommendations in Unicom "Unija Development Guide".
Third, UNIJA application test
(1) Overview of testing process
Unicom Unija test contains the following stages:
1. Enter the test: This phase mainly tests the basic test before the test procedure.
2, UI Test: This phase test will ensure that the application UI design follows the options for Unicom UI specifications and the most basic logic and use cases defined by the developer.
3. Functional Test: Ensure that the functions described in the Application Specification in the Submit are exist, and the functions not described do not exist.
4. Compatibility Test: This phase will strictly test the compatibility of the application and mobile phone system. Ensure that the application's execution cannot interfere with the normal call and SMS functionality.
5. Final verification test: Ensure the correctness of the application's download and installation and billing strategy, the validity of digital signatures.
(2), test results classification
1. Question severity classification:
After the test is completed, the problems found in the test are divided into the following categories in severity:
¨ 严 Sever: Application cannot be installed, start; the application is abnormal in the process of crash during operation;
¨ General: Do not meet the development guidelines or test specifications, the function is not good, the logical structure is unreasonable, etc .;
¨ Miniature: Other issues that do not affect the normal use. If the description of the text is unclear, the interface is not beautiful.
2. Classification of the revision of the opinion:
The problems found in the test are divided into the following two modifications:
¨ must be modified: This type of problem will affect the user's use, and must be corrected before applying for online.
Severe problems and general problems must be modified, and micro problems are determined based on the degree of impact on users.
¨ It is recommended to modify: This type of problem does not affect the user's use, but it is recommended to modify such issues after the modification can improve user satisfaction.
(3) enter the test
Serial number
Test point description
1
Kill viruses in the document in the submitted application package.
2
Applications are properly installed.
3
The application icon and name can be displayed correctly in JAM, and the app is used in accordance with the "UNIJ Development Guide".
4
The application can start normally.
5
The application name is consistent with the relevant documentation.
6
Application content and picture legal.
Seduce
The application name must comply with the Unija Development Guide.
8
All versions
9
The properties of the JAD file must comply with the Unija Development Guide.
10
Exiting the application again, the application can start normally.
11
Restart the mobile device, the application is started.
12
Exit immediately after starting the application, and restart immediately, the application is normal.
13
The networking application must adopt an Unicom internal URL.
14
The application can uninstall it.
15
Application can be loaded correctly.
16
The support phone and email provided in the main screen "About" item must be exactly true.
(4) UI test
Serial number
Test point description
1
The display order of the screen after the application is started, and the Splash screen should comply with the Unija Development Guide.
2
The home screen should comply with the Unija Development Guide.
3
In the case where the entry point has no change, the screen of the application should be the same.
4
The screen can be refreshed correctly.
5
Application UI Layout Scope: The background of the application should be displayed full screen.
6
The screen content is clear, the user can readily read them, the content should be satisfied with the context, the contents of the screen do not show the content of rude or unsatisfied.
Seduce
All screens in the application run can call up the home screen (suggest that the main screen is called out by the right soft button)
8
Various texts in the app, except for Chinese Simplified (except English-specific names and registered trademarks). 9
There is no empty menu item in the app.
10
The display is in line with the "UNIJA Development Guide".
11
All settings for the application should be consistent.
12
The application's error information is clearly understood, and the nature of the problem must be clearly explained to the user, and it must be pointed out that the user will perform what operations will be performed.
13
If the application is multilingual, the language can be properly set, and the relevant item can respond correctly when the language changes.
(5), function test
Serial number
Test point description
1
According to the basic branch of the "Application Specification", the application exists all the screens and flowcharts of the flowchart. That is: all the screens listed are existing, and there is no display in the screen that is not listed.
2
According to the basic branch of the "Application Specification", the application exists and the description of the flowcharts are consistent. That is, all the functions listed are existing, and there is no list of the functions not listed.
3
The application is executed correctly in the help in the help.
4
Applications can properly handle background music and sound efficiency. Such as: providing mute features, etc.
5
The setting item is clear and reasonable. Each setting item has a separate enable and unscapsed state (if the application uses the effect such as sound, vibration, etc., requires a change setting item in the application run).
6
Waiting for the application To comply with the Unija Development Guide.
Seduce
According to the Unija Development Guide, "as long as the application can be paused, the pause function is required. Users can pause the app on the screen that allows the suspended screen, and can be restored from the pause status. When the application is restored, it can be recovered from the suspended position.
8
The application can correctly handle the features of the Send key, such as the function specified in the Application Specification, and the like.
9
Press the key to navigate throughout the application.
10
Applications can process continuous buttons.
11
Each screen of the application should be able to handle the input mechanism available to the phone.
12
The undo function of the action (generally to modify data such as storage, modification information, etc.) is provided or explicitly notifies the user to be executed.
13
The application's scores can be recorded correctly. If the application must comply with the "Unija Development Guide".
14
There is an application that is capable of entering, saving and modifying, should be able to retrieve data after the application is normal or abnormal exit and power-off.
15
An application that automatically saves data can be retrieved.
16
Text input controls can process the input text correctly in accordance with the Unija Development Guide.
In one
Safety information (such as password, identification code, etc.) is properly handled in accordance with the "Unija Development Guide".
18
This feature should be run correctly if the application has a screensaver feature (screensaver within the application referred to here).
19
If the application has a SMS function, you should properly run this feature.
20
If there is a timer and alarm function in the application, the application can set and respond correctly.
twenty one
If the application supports the CAMERA function, you should correct the functions and storage.
twenty two
When the server is unavailable in the server, the user can start and notify the user.
(6), compatibility test
1, core terminal device function
Serial number
Test point description
1
The application should be able to start and complete some basic features regardless of whether the wireless service is available.
2
After the mobile phone is abnormal, the application can start and complete some basic features.
3
The application can correctly handle the timer and alarm of the terminal.
4
The application can establish and disconnect the data connection correctly.
5
Mobile phone local screensoft can run normally in the application operation and shutdown.
6
Whether the application can be handled correctly if the mobile phone file system reaches the limit.
Seduce
When the terminal runs an application, you can get the system volume size, whether the setting is set, and can determine the state when the application starts running according to the system settings.
8
When the terminal runs the application, you can get the setting of the system vibration, and can determine the status of the application to start running according to the system settings. 9
When the terminal runs an application, you can get the settings of the system background light and can determine the status of the application to start running according to the system settings.
10
When the terminal runs an application, you can get the system infrared / Bluetooth setting, and can determine the status of the application to start running according to the system settings.
2, core mobile phone function mobile network test
Serial number
Test point description
1
The application should not hinder the mobile phone display call number.
2
The application can handle call calls correctly.
3
When running, you can properly handle short messages for non-application.
4
When running, you should continue to run when you lose online services.
3, stability
Serial number
Test point description
1
The number of remaining memory after running the application and after the application should be consistent.
(7), final verification test
Serial number
Test point description
1
The application can download and install correctly.
2
The billing strategy set when the application is submitted is consistent with the expected CP expected.
Fourth, submission of UNIJA applications
(1), business online process:
Submit a business review
Review
Submit online declaration
Cooperative development office review
Terminal Management Office
Submit technical test application materials
Unicom technical test
Submit business online application materials
online
(2) Application Submit, Download, Test Process:
1, JAR, JAD file production:
In UNIJA SDK, after the simulator test is passed, improve the JAD file and make a JAR package file.
2, application submission:
Submit us: http://211.94.164.122/contentProvider/
Username Password:******
After logging in, follow these steps to submit new content
1) Select "Test Zone" >> "Application Test" in the directory
2) Test "free" in the "Billing Strategy".
3, application download
After entering the magic book on the Unija test mobile phone, select "Unrescered Content" >> "My Unressessed Content" in the new application, you can discover the application of the submission test, and download it according to the prompt step.
4, application test: Apply download, you can test the real machine test on the Unija test after the installation is complete.
5. Precautions in UNIJA development
(1), the following is a matter that I need to change or pay attention to the need to transplant treasures to the UNIJA platform:
1. If the Chinese characters are included in the URL of the network, you can only use the POST mode.
2, string access RMS: If there is a Chinese character, use getBytes () must also be converted, I use the way to convert Chinese characters into / uxxxx (suspected to be bug, have sent emails to Unicom people, but Failed to reply).
3, JAR JAD RMS cannot exceed 256K.
4, left and right soft keys, dial, shutdown, clear (C) keys cannot obtain key values, and can only use the Command processing command to process the command.
5, the full screen mode of the X859 real machine still has the battery signal bar, and the lower part has a command bar.
6, there must be Splash Screen.
7. The home page must have an option for helping and exit.
8, each sub page must have an option to return to the main page.
(2) Some Unicom returned by Yan Chenpeng pay attention to the matter:
1. Correct realistic application icons in JAM, stipulate 16x16 pixels
2, the application name needs to meet the development guide
3, the program itself needs to meet the following requirements:
Can start correctly
After exiting, enter again to start properly
Start correctly after restart
When you start loading, you can start properly after restarting.
Can download and uninstall correctly
4. Error prompt information clearly understand
5, the flowchart in the function description is consistent with the program 6, after the continuous button (during the information transmission process) does not have an error
7. Manual and automatic storage information is normal, and the information store is normal after abnormal mode exits.
8, caller, when you come to text messages
9. Splash can only display a screen after startup, and cannot contain help or user information.
10, background needs full screen display
11, all pages can be called out of the main menu, suggesting right soft key
12, the text is normal, can not be truncated
13. The server is unable to connect to a friendly prompt, and the basic incomplete network function needs to be used.
14. The storage space can be processed normally, and the mobile phone is not abnormal.
The following function is tested on the X859 real machine and no exception is found:
Call answer
2. Call and number display
3. Non-applied SMS
4. Input method
Dialing the "Java / Lang / SecurityException" error after MIDLET.PLATMREQUEST (STRING URL) is not passed.