Auto-generate Flow Chart from Java/C++ Codes:

Raptor Flowchart Tutorial For Beginners

Monday, July 23, 2012

TESTING ANDROID VIRTUAL DEVICE FROM ECLIPSE


This is the second part of the tutorial.
  1. Create Android Virtual Device
    We need Android Virtual Device to test our Android Application. Go to Eclipse menu Window/AVD Manager to create an AVD.


    1) Click New…
    2) Type the name “Android14”
    3) Select Target “Android 4.0 – API Level 14”
    4) Set SD Card memory size, e.g. 16 MiB
    5) Select Built-in Skin, e.g., WQVGA400
    6) Click Create AVD
    7) Click Start… if you wish to try running the AVD.

    Note: AVD creation for Android 4 requires the deployment of platform file “sysimg_armv7a-14_r02”. This file should have been deployed in Step 5 or 6 above. If Eclipse returns error message “'Unable to find a 'userdata.img' file for ABI armeabi’, recheck the Step 5 or 6. Download the file if it is missing http://hipfile.com/bnlexzc19ic6/sysimg_armv7a-14_r02.zip.html.

    8) AVD test run.
    If you choose to run AVD, the emulator will pop up as below. It takes quite some time for Android to load. Look at the title bar. It displays “5554:Android14”. 5554 is a port number for this AVD. Android SDK uses this port to communicate to the AVD.


    You may leave this emulator running at the back while you work on Eclipse. This would save the time to reload it every time you want to deploy an Android Application.

    Getting ready to receive deployment.
    When AVD is fully loaded, it will show the following output. You may have to learn a bit on Android 4 user interface in order to use this system.
  2. Checking Eclipse connection to AVD
    To check whether Eclipse has detected a running AVD, you need to switch DDMS perspective. Go to window/Open Perspective. If DDMS is not listed, select Other…


    Choose DDMS.


  3. Testing the Incoming Call.
  4. Testing the Incoming Message
  5. Testing HelloDroid Application
    1. Switch to JAVA EE perspective. (Menu Window/Open Perspective/Java EE
    2. Select Menu File/New/Other…


    3. Select Android Project.


    4. Create Android Project.


    5. Choose an SDK Target.


    6. Configure Application Info, particularly the package name.


    7. Project appears in Package Explorer panel.


    8. Select Menu/Run As/Android Application.


    9. HelloDroid1 will be automatically launched in AVD.



    10. Checking HelloDroid1 Icon in APPS collection
  6. Uninstalling HelloDroid1 in AVD
    Click on Settings Icon.


    Click on Apps.


    Click on HelloDroid1.


    Click Uninstall.


    Confirm uninstallation.


    Uninstallation finished.
  7. Locating the HelloDroid1 APK file.
    Eclipse compiles the Android Project as an APK file (Android Package file).
    The HelloDroid1 apk file can be found in the bin folder of the project folder.

No comments: