Author Topic: Viewing 'Hello World' in Emulator  (Read 3682 times)

anthan

  • Newbie
  • *
  • Posts: 5
Viewing 'Hello World' in Emulator
« on: September 28, 2012, 06:05:59 AM »
Hi I followed the steps to create hello world and run it in the emulator.

However after I click 'run android' it goes through the build process and takes me to the emulator but I can't see the app.

below is the log I see in the build.

Any help is greatly appreciated!

1 - Compiling HyperNext code
Android Copy Runtime ....  DONE
PH_1 Android Copy Resources ....  DONE
PH_2 Android_CopyStack....  DONE
PH_3 Android Updating Manifest ... DONE
PH_4 Android Repackaging.....
PH_4 aapt package -f -v --version-code 1 -M "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\AndroidManifest.xml" -I "C:\Program Files (x86)\android-sdk-windows\platforms\android-9\android.jar" -0 stk -F "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Hello World.ap_" -A "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets" -S "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res" --rename-manifest-package org.HelloWorld
Repackaging..
C:\Users\THOSHIBA\Desktop>cd "C:\Program Files (x86)\android-sdk-windows\platform-tools\"

C:\Program Files (x86)\android-sdk-windows\platform-tools>aapt package -f -v --version-code 1 -M "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\AndroidManifest.xml" -I "C:\Program Files (x86)\android-sdk-windows\platforms\android-9\android.jar" -0 stk -F "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Hello World.ap_" -A "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets" -S "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res" --rename-manifest-package org.HelloWorld
Found 23 custom asset files in C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets
Configurations:
 (default)

Files:
  assets\Local\blank.mov
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Local\blank.mov
  assets\Local\hnr_icon.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Local\hnr_icon.png
  assets\Local\icon.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Local\icon.png
  assets\black800x600.jpg
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\black800x600.jpg
  assets\hnr_icon.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\hnr_icon.png
  assets\icon.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\icon.png
  assets\splash.jpg
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\splash.jpg
  assets\stack.stk
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\stack.stk
  assets\test1.txt
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\test1.txt
  assets\zz589x4_beep1.ogg
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_beep1.ogg
  assets\zz589x4_beep1.wav
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_beep1.wav
  assets\zz589x4_btn_check_off.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_check_off.png
  assets\zz589x4_btn_check_off_disable.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_check_off_disable.png
  assets\zz589x4_btn_check_on.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_check_on.png
  assets\zz589x4_btn_check_on_disable.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_check_on_disable.png
  assets\zz589x4_btn_check_on_pressed.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_check_on_pressed.png
  assets\zz589x4_btn_radio_off.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_radio_off.png
  assets\zz589x4_btn_radio_on.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_radio_on.png
  assets\zz589x4_btn_radio_on_pressed.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_radio_on_pressed.png
  assets\zz589x4_btn_square_disabled.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_square_disabled.png
  assets\zz589x4_btn_square_normal.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_square_normal.png
  assets\zz589x4_btn_square_pressed.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_square_pressed.png
  assets\zz589x4_cursor1.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_cursor1.png
  drawable\hnr_icon.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.png
  drawable\icon.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\icon.png
  drawable\notification_icon.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\notification_icon.png
  layout\card.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\card.xml
  layout\main.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\main.xml
  layout\menu.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\menu.xml
  layout\settings.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\settings.xml
  layout\splash.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Da
Repackaging.. ta\data\HN_Runtime\res\layout\splash.xml
  raw\testh1
    Src: ()
Repackaging.. C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\raw\testh1
  values\integers.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\values\integers.xml
  values\strings.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\values\strings.xml
  AndroidManifest.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\AndroidManifest.xml

Resource Dirs:
  Type drawable
    drawable\hnr_icon.png
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.png
    drawable\icon.png
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\icon.png
    drawable\notification_icon.png
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\notification_icon.png
  Type layout
    layout\card.xml
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\card.xml
    layout\main.xml
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\main.xml
    layout\menu.xml
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\menu.xml
    layout\settings.xml
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\settings.xml
    layout\splash.xml
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\splash.xml
  Type raw
    raw\testh1
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\raw\testh1
  Type values
    values\integers.xml
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\values\integers.xml
    values\strings.xml
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\values\strings.xml
Including resources from package: C:\Program Files (x86)\android-sdk-windows\platforms\android-9\android.jar
applyFileOverlay for drawable
applyFileOverlay for layout
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
applyFileOverlay for menu
applyFileOverlay for mipmap
Processing image: C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.png
    (processed image C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.png: 97% size of source)
Processing image: C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\icon.png
    (processed image C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\icon.png: 95% size of source)
Processing image: C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\notification_icon.png
    (processed image C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\notification_icon.png: 95% size of source)
    (new resource id hnr_icon from drawable\hnr_icon.png #generated)
    (new resource id icon from drawable\icon.png #generated)
    (new resource id notification_icon from drawable\notification_icon.png #generated)
    (new resource id card from C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\card.xml)
    (new resource id main from C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\main.xml)
    (new resource id menu from C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\menu.xml)
    (new resource id settings from C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\settings.xml)
    (new resource id splash from C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\splash.xml)
    (new resource id testh1 from C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\raw\testh1)
Creating 'C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Hello World.ap_'
Writing all files...
      'assets/Local/blank.mov' (compressed 72%)
      'assets/Local/hnr_icon.png' (not compressed)
      'assets/Local/icon.png' (not compressed)
      'assets/black800x600.jpg' (not compressed)
      'assets/h
Repackaging.. nr_icon.png' (not compressed)
      'assets/icon.png' (not compressed)
      'assets/splash.jpg' (not compressed)
      'assets/stack.stk' (not compressed)
      'assets/test1.txt' (not compressed)
      'assets/zz589x4_beep1.ogg' (not compressed)
      'assets/zz589x4_beep1.wav' (not compressed)
      'assets/zz589x4_btn_check_off.png' (not compressed)
      'assets/zz589x4_btn_check_off_disable.png' (not compressed)
      'assets/zz589x4_btn_check_on.png' (not compressed)
      'assets/zz589x4_btn_check_on_disable.png' (not compressed)
      'assets/zz589x4_btn_check_on_pressed.png' (not compressed)
      'assets/zz589x4_btn_radio_off.png' (not compressed)
      'assets/zz589x4_btn_radio_on.png' (not compressed)
      'assets/zz589x4_btn_radio_on_pressed.png' (not compressed)
      'assets/zz589x4_btn_square_disabled.png' (not compressed)
      'assets/zz589x4_btn_square_normal.png' (not compressed)
      'assets/zz589x4_btn_square_pressed.png' (not compressed)
      'assets/zz589x4_cursor1.png' (not compressed)
      'res/drawable/hnr_icon.png' (not compressed)
      'res/drawable/icon.png' (not compressed)
      'res/drawable/notification_icon.png' (not compressed)
      'res/layout/card.xml' (compressed 56%)
      'res/layout/main.xml' (compressed 52%)
      'res/layout/menu.xml' (compressed 56%)
      'res/layout/settings.xml' (compressed 56%)
      'res/layout/splash.xml' (compressed 56%)
      'res/raw/testh1' (not compressed)
      'AndroidManifest.xml' (compressed 65%)
      'resources.arsc' (not compressed)
Generated 34 files
Included 0 files from jar/zip files.
Checking for deleted files
Done!
    (skipping index file 'C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Thumbs.db')
    (skipping index file 'C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\Thumbs.db')
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.


  DONE
PH_5 Android BuildAPK.....
Rebuild Data
C:\Users\THOSHIBA\Desktop>cd "C:\Program Files (x86)\android-sdk-windows\tools\"

C:\Program Files (x86)\android-sdk-windows\tools>apkbuilder "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Hello World.apk" -u -z "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Hello World.ap_" -f "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\classes.dex"

Rebuild Data
THIS TOOL IS DEPRECATED. See --help for more information.



  DONE
PH_6 Android_SignAPK .....TYPE:---   debug.keystore
Debug Key
C:\Users\THOSHIBA\Desktop>cd "C:\Program Files (x86)\Java\jdk1.7.0_07\bin\"

C:\Program Files (x86)\Java\jdk1.7.0_07\bin>jarsigner -J-Duser.language=en -keystore "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\debug.keystore" "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Hello World.apk" androiddebugkey

Debug Key Enter Passphrase for keystore:
Debug Data
  DONE
PH_7 Android_SignVerifyAPK .....-
C:\Users\THOSHIBA\Desktop>cd "C:\Program Files (x86)\Java\jdk1.7.0_07\bin\"

C:\Program Files (x86)\Java\jdk1.7.0_07\bin>jarsigner -J-Duser.language=en -verify  "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Hello World.apk"
-
-jar verified.

Warning:
This jar contains entries whose certificate chain is not validated.

Re-run with the -verbose and -certs options for more details.
-
APK Verified
PH_8 Android_ZipAlignAPK .....ZipAlign Data
C:\Users\THOSHIBA\Desktop>cd "C:\Program Files (x86)\android-sdk-windows\tools\"

C:\Program Files (x86)\android-sdk-windows\tools>zipalign -f  4 "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Hello World.apk" "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Hello WorldOUT.apk"


  DONE
Android_CopyAPKtoProjFolder .....  DONE
  Trying Install
  Android run  flag = false

Malkom

  • Administrator
  • Sr. Member
  • *****
  • Posts: 287
Re: Viewing 'Hello World' in Emulator
« Reply #1 on: September 28, 2012, 07:36:52 AM »
Hello Anthan

Thank you for the detailed log.

It appears that Java 7 is installed but Java 6 is required because the Android SDK has problems with 7.

This post shows how to install Java 6 :-

http://www.hypernextandroid.com/forum/index.php?topic=131.msg463#msg463

Malkom
« Last Edit: September 28, 2012, 07:41:38 AM by Malkom »
I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.

anthan

  • Newbie
  • *
  • Posts: 5
Re: Viewing 'Hello World' in Emulator
« Reply #2 on: September 29, 2012, 01:18:21 AM »
Hi I reinstalled Jave v6.

and now it runs but I'm getting an error at the bottom of the log:

1 - Compiling HyperNext code
Android Copy Runtime ....  DONE
PH_1 Android Copy Resources ....  DONE
PH_2 Android_CopyStack....  DONE
PH_3 Android Updating Manifest ... DONE
PH_4 Android Repackaging.....
PH_4 aapt package -f -v --version-code 1 -M "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\AndroidManifest.xml" -I "C:\Program Files (x86)\android-sdk-windows\platforms\android-9\android.jar" -0 stk -F "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Hello World.ap_" -A "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets" -S "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res" --rename-manifest-package org.HelloWorld
Repackaging..
C:\Users\THOSHIBA\Desktop>cd "C:\Program Files (x86)\android-sdk-windows\platform-tools\"

C:\Program Files (x86)\android-sdk-windows\platform-tools>aapt package -f -v --version-code 1 -M "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\AndroidManifest.xml" -I "C:\Program Files (x86)\android-sdk-windows\platforms\android-9\android.jar" -0 stk -F "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Hello World.ap_" -A "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets" -S "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res" --rename-manifest-package org.HelloWorld
Found 23 custom asset files in C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets
Configurations:
 (default)

Files:
  assets\Local\blank.mov
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Local\blank.mov
  assets\Local\hnr_icon.jpg
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Local\hnr_icon.jpg
  assets\Local\icon.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Local\icon.png
  assets\black800x600.jpg
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\black800x600.jpg
  assets\hnr_icon.jpg
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\hnr_icon.jpg
  assets\icon.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\icon.png
  assets\splash.jpg
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\splash.jpg
  assets\stack.stk
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\stack.stk
  assets\test1.txt
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\test1.txt
  assets\zz589x4_beep1.ogg
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_beep1.ogg
  assets\zz589x4_beep1.wav
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_beep1.wav
  assets\zz589x4_btn_check_off.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_check_off.png
  assets\zz589x4_btn_check_off_disable.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_check_off_disable.png
  assets\zz589x4_btn_check_on.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_check_on.png
  assets\zz589x4_btn_check_on_disable.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_check_on_disable.png
  assets\zz589x4_btn_check_on_pressed.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_check_on_pressed.png
  assets\zz589x4_btn_radio_off.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_radio_off.png
  assets\zz589x4_btn_radio_on.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_radio_on.png
  assets\zz589x4_btn_radio_on_pressed.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_radio_on_pressed.png
  assets\zz589x4_btn_square_disabled.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_square_disabled.png
  assets\zz589x4_btn_square_normal.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_square_normal.png
  assets\zz589x4_btn_square_pressed.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_btn_square_pressed.png
  assets\zz589x4_cursor1.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\zz589x4_cursor1.png
  drawable\hnr_icon.jpg
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.jpg
  drawable\hnr_icon.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.png
  drawable\icon.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\icon.png
  drawable\notification_icon.png
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\notification_icon.png
  layout\card.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\card.xml
  layout\main.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\main.xml
  layout\menu.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\menu.xml
  layout\settings.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\
Repackaging.. HAC_Data\data\HN_Runtime\res\layout\settings.xml
  layout\splash.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\splash.xml
  raw\testh1
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\raw\testh1
  values\integers.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\values\integers.xml
  values\strings.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\values\strings.xml
  AndroidManifest.xml
    Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\AndroidManifest.xml

Resource Dirs:
  Type drawable
    drawable\hnr_icon.jpg
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.jpg
    drawable\hnr_icon.png
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.png
    drawable\icon.png
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\icon.png
    drawable\notification_icon.png
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\notification_icon.png
  Type layout
    layout\card.xml
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\card.xml
    layout\main.xml
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\main.xml
    layout\menu.xml
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\menu.xml
    layout\settings.xml
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\settings.xml
    layout\splash.xml
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\splash.xml
  Type raw
    raw\testh1
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\raw\testh1
  Type values
    values\integers.xml
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\values\integers.xml
    values\strings.xml
      Src: () C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\values\strings.xml
Including resources from package: C:\Program Files (x86)\android-sdk-windows\platforms\android-9\android.jar
applyFileOverlay for drawable
applyFileOverlay for layout
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
applyFileOverlay for menu
applyFileOverlay for mipmap
Processing image: C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.png
    (processed image C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.png: 97% size of source)
Processing image: C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\icon.png
    (processed image C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\icon.png: 95% size of source)
Processing image: C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\notification_icon.png
    (processed image C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\notification_icon.png: 95% size of source)
    (new resource id hnr_icon from C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\hnr_icon.jpg)
    (new resource id hnr_icon from drawable\hnr_icon.png #generated)
    (new resource id icon from drawable\icon.png #generated)
    (new resource id notification_icon from drawable\notification_icon.png #generated)
    (new resource id card from C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\card.xml)
    (new resource id main from C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\main.xml)
    (new resource id menu from C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\menu.xml)
    (new resource id settings from C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\settings.xml)
    (new resource id splash from C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\layout\splash.xm
Repackaging.. l)
    (new resource id testh1 from C:\Users\THOSHIBA\AppData\Roa
Repackaging.. ming\HAC_Data\data\HN_Runtime\res\raw\testh1)
    (skipping index file 'C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\assets\Thumbs.db')
    (skipping index file 'C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\res\drawable\Thumbs.db')
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
res\drawable\hnr_icon.png:0: error: Resource entry hnr_icon is already defined.
res\drawable\hnr_icon.jpg:0: Originally defined here.


  DONE
PH_5 Android BuildAPK.....
Rebuild Data
C:\Users\THOSHIBA\Desktop>cd "C:\Program Files (x86)\android-sdk-windows\tools\"

C:\Program Files (x86)\android-sdk-windows\tools>apkbuilder "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Hello World.apk" -u -z "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Hello World.ap_" -f "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\classes.dex"

Rebuild Data
THIS TOOL IS DEPRECATED. See --help for more information.

java.io.FileNotFoundException: C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Hello World.ap_ does not exist


  DONE
PH_6 Android_SignAPK .....TYPE:---   debug.keystore
Debug Key
C:\Users\THOSHIBA\Desktop>cd ""
C:\Users\THOSHIBA\Desktop

C:\Users\THOSHIBA\Desktop>jarsigner -J-Duser.language=en -keystore "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\debug.keystore" "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Hello World.apk" androiddebugkey
'jarsigner' is not recognized as an internal or external command,
operable program or batch file.

Debug Data
  DONE
PH_7 Android_SignVerifyAPK .....-
C:\Users\THOSHIBA\Desktop>cd ""
C:\Users\THOSHIBA\Desktop

C:\Users\THOSHIBA\Desktop>jarsigner -J-Duser.language=en -verify  "C:\Users\THOSHIBA\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Hello World.apk"
'jarsigner' is not recognized as an internal or external command,
operable program or batch file.
-
shell jar verify failed

anthan

  • Newbie
  • *
  • Posts: 5
Re: Viewing 'Hello World' in Emulator
« Reply #3 on: September 29, 2012, 03:12:06 AM »
Never mind - I was able to get it to work. I realized I had to install the correct version of the Java kit and also use a launcher icon that meets the requirements.

Malkom

  • Administrator
  • Sr. Member
  • *****
  • Posts: 287
Re: Viewing 'Hello World' in Emulator
« Reply #4 on: September 29, 2012, 06:09:04 AM »
Never mind - I was able to get it to work. I realized I had to install the correct version of the Java kit and also use a launcher icon that meets the requirements.

Thats great you got it working and thanks for the feed back, it helps others as well.
I am sorry but I do not have time to answer questions by PM or email.
If you post your questions in this forum then it might help others.