Page 2 - Table of the Contents
2 Table of the Contents 1. Product Overview 4 1.1 Features at a Glance 4 1.2 Library Configuration 6 1.3 Development Manuals 6 2. Prerequisites 7 2.1 Skills Required 7 2.2 Hardware Required 7 2.3 Systems Required 7 2.4 Software Required 8 3. Setting up the Development Environment 9 3.1 Application D...
Page 6 - Library Configuration; Development Manuals; BDK
6 1.2 Library Configuration The V-T500/V-N500 Software Development Kit (“ BDK ”) provides various libraries including those listed in the table. Table 1.2 Library Description System Library Library that is used to control the system. SAM Library Library that is used to communicate with the SAM Card....
Page 7 - PC Operating System
7 2. Prerequisites 2.1 Skills Required V-T500 / V-N500 application can be developed by the following languages: • Java The following skills or experience are also desirable: • Android OS • Development of Android applications • Eclipse integrated development environment • Some networking experience 2...
Page 8 - Software Required; Android SDK
8 2.4 Software Required The Android development environment is required for developing the V-T500 / V-N500 application. Table 2.2 Development platform Programming Language Detail Java Java SE Development Kit (JDK compiler-compliant level 1.6) Android SDK (API level 15) Eclipse 3.7 (Indigo) ADT Plugi...
Page 9 - Connect
9 3. Setting up the Development Environment 3.1 Application Development This chapter explains what to set up for the development environment before starting your application development. (1) Installing JDK/Android SDK/Eclipse/ADT Install the development environment for the Android application on the...
Page 11 - Execute as the administrator; from the displayed menu, and execute it.
11 Figure 3.2 Start the downloaded file, and execute installation. For installation, execute the downloaded file by a user who has administrative authority. If you wish to execute it by a user who does not have administrative authority, right-click on the downloaded file on the explorer, select Exec...
Page 13 - Installing Android SDK; is available from the Android of Google site.
13 Figure 3.6 3.3 Installing Android SDK Android SDK is available from the Android of Google site. Please input the URL at browser, and download Android SDK and its installer. http://dl.google.com/android/installer_xxx-windows.exe At the “xxx” part of above URL, input the version of the object to do...
Page 14 - SDK Manager; from the menu of; Android SDK Tools; by a user who has administrative authority.
14 Figure 3.7 Figure 3.8 Close the installer as is. Figure 3.9 Execute SDK Manager from the menu of Android SDK Tools by a user who has administrative authority.
Page 16 - to; PATH; of the system environment variable.; The folder Android SDK is installed; under the; The
16 Figure 3.12 Add the paths related to Android SDK to PATH of the system environment variable. Add paths to tools under the The folder Android SDK is installed , and platform-tools under the The folder Android SDK is installed . Figure 3.13
Page 17 - Installing Eclipse
17 3.4 Installing Eclipse Install the integrated development environment Eclipse . The flow of installation of Eclipse IDE for Java Developers of Eclipse 3.7 Indigo is explained in this section. Eclipse IDE for Java Developers can be downloaded from the Eclipse site. Access the Eclipse site, and dow...
Page 18 - Eclipse IDE for Java Developers; , and extract the route; Execute; Eclipse
18 Figure 3.15 Extract the downloaded file, extract the package of Eclipse IDE for Java Developers , and extract the route directory of Eclipse , and all directories and files under the route directory in the configuration as is. Execute Eclipse.exe under the route directory of Eclipse , and confirm...
Page 22 - The details of installation are displayed. Press; I accept the terms of the license agreements; press; finish
22 The details of installation are displayed. Press Next > button. Figure 3.20 The license is displayed. Check the details, select I accept the terms of the license agreements , and press finish button. Figure 3.21 Installation starts.
Page 24 - ” directory under “; package; ” directory copied in above 3 into “; Android
24 3.6 Installing Software Development Kit (“SDK”) This chapter explains about installing SDK and construct Android SDK. 1. Install SDK as add-on for Android SDK . 2. Navigate to “ package ” directory of SDK. 3. Copy “ V-T500 ” directory under “ package ” directory of SDK. 4. Paste “ V-T500 ” direct...
Page 25 - Installing USB Driver; Install the USB driver to connect the PC and the; , which was installed in Chapter 3.3 Installing Android SDK.; and the USB port of the PC are connected by cable, the; Next
25 4. Connecting V-T500/V-N500 to PC 4.1 Installing USB Driver Install the USB driver to connect the PC and the V-T500 / V-N500 . Only the configuration file of the USB driver is included in the V-T500 / V-N500 development kit. The USB driver is included in the Android SDK , which was installed in C...
Page 26 - Install from a list or specific location [Advanced]; and press; Include this location in the search:; , and specify the folder for the driver that you created previously.
26 Figure 4.2 Select Install from a list or specific location [Advanced] and press Next > button. Figure 4.3 Check Include this location in the search: , and specify the folder for the driver that you created previously.
Page 28 - Setting Up the Development Environment; Preferences; of the; Window; , and set the level to
28 5. Setting Up the Development Environment 5.1 Setting JDK Set the JDK installation version. Start up Eclipse, and select Preferences of the Window menu. Figure 5.1 Select Java → Compiler , and set the level to 1.6 . Figure 5.2
Page 29 - Set the; AVD
29 5.2 Setting AVD Set the AVD (Android Virtual Device). Start up Eclipse , and select AVD Manager . Figure 5.3 Press the New… button, and create a new AVD. Figure 5.4
Page 30 - Name; ” at Target, and press the; Create AVD; ” is added, and close the
30 Enter “ CASIO_V_T500 ” in Name , and select “ CASIO V-T500/V-N500(CASIO COMPUTER CO., LTD.) - API Level 15 ” at Target, and press the Create AVD button. Figure 5.5 Return to the Android Virtual Device Manager screen, confirm that “ CASIO_V_T500 ” is added, and close the dialog to finish. Figure 5...
Page 31 - Setting Android Project
31 5.3 Setting Android Project Set the Android Project of the application created by Eclipse . Select and right-click Android Project, and select Properties . Select Android in the displayed Properties dialog, and select CASIO V-T500/V-N500 at Target Name . Figure 5.7 Next, select Java Build Path . ...
Page 32 - libs; folder under the SDK, and select all files.; Order and Export; tab, check all the added files, and press; OK
32 Figure 5.8 Open the libs folder under the SDK, and select all files. Figure 5.9 Next, open the Order and Export tab, check all the added files, and press OK button to finish.
Page 33 - Setting Up the Debugging Environment; or the emulator for debugging.; Setting the Debug Configuration with Terminal; Select; Debug Configurations...; from the; Run; menu of
33 Figure 5.10 5.4 Setting Up the Debugging Environment Set the debugging environment of the application. Note: For the procedure to create the application, refer to Chapter 7. Eclipse. Use the actual terminal of V-T500 / V-N500 or the emulator for debugging. 5.4.1 Setting the Debug Configuration wi...
Page 34 - Setting the Debug Configuration with the Emulator
34 Select the Android tab, and enter the debugging project name in Project . Figure 5.12 Switch to the Target tab, select Always prompt to pick device , and close the dialog with the Close button. Figure 5.13 Set the USB drier as described in the Chapter 4. Connecting V-T500/V-N500 to PC before conn...
Page 35 - Debugging Applications
35 Next, select the Target tab. Select Automatically pick compatible device:~ , and check CASIO_V_T500 in the check box below. Figure 5.15 Press Close button, and close the dialog. 5.4.3 Debugging Applications Basic operation of debugging The debugging method is the same as the normal debugging oper...
Page 36 - Debug; is selected from the
36 Figure 5.16 Debugging by the actual terminal (V-T500/V-N500) Before debugging, connect the actual terminal to the PC with a USB cable. Set the USB drier as described in the Chapter 4. Connecting V-T500/V-N500 to PC before connecting the actual terminal and the PC. When Debug is selected from the ...
Page 37 - button to start debugging.; Precautions for debugging; before executing debugging.; emulator by setting breakpoints in
37 Select the target device, and press the OK button to start debugging. It is possible to execute debugging by stepping, etc. on the actual terminal by setting breakpoints in the source code. Precautions for debugging • It is not possible to execute debugging when the debugging application is insta...
Page 38 - environment where basic operation check of the application and; Software Required; How to Start Up the Emulator; AVD Manager
38 6. Emulator The emulator provides an “ environment where basic operation check of the application and source level debugging are possible without the actual terminal of V-N500 ” to the application developer. 6.1 Software Required It is possible to use the emulator if you have built the developmen...
Page 39 - Launch
39 Figure 6.2 The dialog below is displayed. Press Launch as is. Figure 6.3 The dialog below is displayed, and the process of start up is displayed.
Page 41 - Using the Emulator; Key input function; The key input function equivalent of the actual terminal (; Function to save the state
41 6.3 Using the Emulator 6.3.1 V- T500/V-N500 Emulator Key input function The key input function equivalent of the actual terminal ( V-T500 / V-N500) is incorporated. It is possible to use key input by clicking the keys on the screen with a mouse. Function to save the state The V-T500 / V-N500 emul...
Page 42 - The application development procedure using; as the development environment is explained in this; System Library Manual; Developing with System Library; The confirmation dialog is displayed when it operates normally.
42 7. Eclipse The application development procedure using Eclipse as the development environment is explained in this chapter. The example is an application that beeps a large-sound buzzer once for a second using the system library. Create this application in a Java programming language. For the lis...
Page 43 - Create a new Android application on; in
43 1. Create a new Android application on Eclipse . Figure 7.2 The application name is the name of the application created. This name is displayed on the menu of Android. It is named SDKSample1 in this example. The project name is the name of the project created in the workspace of Eclipse . Two or ...
Page 45 - V-T500 System Lib sample; in this example. The title is displayed as the screen title
45 and display, response to events, etc. are included. The title is changed to V-T500 System Lib sample in this example. The title is displayed as the screen title when executing an application or the menu title. Figure 7.5
Page 46 - Set the Android project.
46 2. Set the Android project. When a new project is created, follow the procedure described in Chapter 5.3 Product Overview first. If this process is omitted, an error occurs in a subsequent process. Figure 7.6 For the operations after this, refer to the Chapter 5.3 Setting Android Project
Page 48 - SDKSample1; from; Package Explorer; on the left side of the; When you point res
48 Figure 7.8 Next, create a resource of the character strings. Open the project of SDKSample1 from Package Explorer on the left side of the Eclipse screen. When you point res → values, the file “ strings.xml ” appears as shown in the figure below, then double-click on it. Adjust the size and the po...
Page 49 - The dialog below is displayed. Select; String
49 Figure 7.9 The resource editing dialog as shown in the figure below is displayed. First, select unnecessary hello_world , and press the Remove button. Figure 7.10 Next, press the Add button. The dialog below is displayed. Select String . Select and remove.
Page 51 - onClick; ” in; On Click; Properties
51 Figure 7.13 Next, enter “ onClick ” in On Click in Properties in the same way. It is the name of the method in the activity that is executed when the button is pressed. (It is created later.) Figure 7.14
Page 52 - Package; (For the specifications of the; System library
52 4. Create a program. Next, open the source of the activity. Open in the order of SDKSample1 → src → jp.casio.vx.framework.sdksample1 from Package Explorer , and double-click MainActivity.java . Figure 7.15 Correct MainActivity.java as shown below. (For the specifications of the System library cur...
Page 53 - new; Save All; File; menu after entering the source.
53 return true; } public void onClick(View view) { jp.casio.vx.framework.system.Api sysapi = new jp.casio.vx.framework.system.Api(this); //Get model name of terminal String modelName = sysapi.getModelNameString(); if(modelName.length() > 0) { showDialog(this,"SDK Sample", "The model n...
Page 55 - Incorporate the application into the terminal.; on the
55 5. Incorporate the application into the terminal. Fight-click SDKSample1 on the Package Explorer , and select Android Tools → Export Signed Application Package . Figure 7.18 The dialog below is displayed. Press Next > , and proceed to the next step.
Page 59 - Install; Execute the application from the menu, and check the operation.; ADB
59 The dialog below is displayed. Select Install button. Figure 7.27 Installation of the application is finished. Figure 7.28 After this, the application can be executed on the actual terminal of V-T500 / V-N500 . Execute the application from the menu, and check the operation. (2) Install from the P...
Page 60 - For details of connection, refer to Chapter 4. Product Overview.
60 For details of connection, refer to Chapter 4. Product Overview. Open the command prompt, and move the current folder to the location where the apk file exist. The installation command is as shown below. adb install -r SDKSample1.apk The result of execution becomes as follows: Figure 7.29 After t...
Page 61 - New Configuration of System; Flow of New Configuration; Settings
61 8. Kitting Installation of the application on the terminal, initial settings and update of the OS are described in this section. 8.1 New Configuration of System The methods of making new settings and installing the application on the terminal are described. 8.1.1 Flow of New Configuration Figure ...
Page 62 - Install Application Software
62 The settings above are all arbitrary settings. Make setting as necessary. 1) Environment setting by the Settings tool Basically, they can be used with the preset values. For the setting of some items such as wireless setting, set according to the usage. The preset values of the terminal are descr...
Page 63 - Replicate Environment to Other Termina; ls; Details that can be replicated
63 (4) Install the application (apk file). Tap the application (apk file) on the file manager, and install according to the displayed messages. (5) Install the configuration file. Press and hold the configuration file on the File Manager . When it is held long, the Edit menu is displayed. Select Cop...
Page 66 - Set Specific Environment of Each Terminal
66 (7) Start up the Copy Devices tool on the master units (replication source). (8) Select 2. Sender mode of the Copy Devices tool on the master units (replication source). (9) Start up the Settings tool on the slave unit (replication destination), and enable WiFi-Direct in the More… menu. (10) Star...
Page 68 - Appendix Default Values of the Setting; Default Value
68 9. Appendix Default Values of the Setting The initial values of the setting are described below. ■ WIRELESS & NETWORKS The connection to the network and the devices using Wi-Fi, Bluetooth, mobile, network and USB connection is set and managed. It is also possible to set the connection between...