ICA-CP: 1/23/2008 - Running the Motorola SDK
Good morning!
Today, we will become more familiar with the Motorola Software Developer's Kit. A Software Developer's Kit is abbreviated SDK. Following that idea, Motorola named the cell phone emulator program sdk.exe.
Activity #1
The first activity to do today is to create a shortcut to the SDK.exe program. Go to this subdirectory: C:\Motorola RazrV3 SDK\ You should see the SDK.exe program in this folder. Right click on the sdk.exe file and select Pin to Start Menu from the menu choices. Now, you should see SDK listed as a choice under Start. Additionally, create an icon on your desktop. Right click on the sdk.exe file again. This time select Send To then select Desktop from the menu list. You should now see an SDK icon on your desktop.
Activity #2]
Now, familiarize yourself with the file system in the C:\Motorola RazrV3 SDK\ directory. You should see a JMESDK subdirectory. Go into it. You should see a list of 13 subdirectories under JMESDK. Go into the demos subdirectory. You should see subdirectories with different programs in them. There should be 12 different subdirectories with programs in them. This is where you find programs to run in the Motorola SDK program. List at least 4 programs on your worksheet. Notice also that the fully qualified path name to this subdirectory is: C:\Motorola RazrV3 SDK\JMESDK\demos
Activity #3
Go into the C:\Motorola RazrV3 SDK\JMESDK\demos\HelloWorld subdirectory. List the names of the six files you find there on your worksheet. Be sure to include the file extensions for these files. If you don't see them in Explorer, go to Tools --> Folder Options --> View. Make sure that Show Hidden Files and Folders is selected and that Hide Extensions for known file types is not checked. Also, read the HelloWorldReadme file. It contains instructions for creating a jad file. A jad file provides additional instructions to a cell phone for running a java program.
Activity #4
Run the SDK. Run the bounce, helloworld, and paddle ball program. To do that, click the Open JAD File selection under Launch Application. A new window appears. Click the HelloWorld subdirectory and choose MyFirstMidlet.jad. (A midlet, which we discuss, is the name of a Java program that runs on a cell phone.) Select the Motorola Razr V3xx handset. Then click the Run button. The simulated Razr phone should appear on the screen. Run the HelloWorld program. Repeat the process to run bounce and paddle ball.
Activity #5
Create a HelloWorld program in BlueJ that prints: "Hello world from" and then your name. What should appear on the screen when your program is run, for example, is "Hello world from Debbie!" Create a subdirectory under C:\Motorola RazrV3 SDK\JMESDK\demos\ called MyHelloWorld. Copy your files to it, and then run your program in the SDK emulator. See the class blog entry for specific steps on creating all the files, including the jad file, you need.
Activity #6
Modify your Eliza program to run in the SDK emulator. It need to be complete with stringtokenizer and "done" implemented.
0 Comments:
Post a Comment
<< Home