Hi all,
I've compiled a simple .class file and cobbled together
a manifest. I now want to try to run the program in the emulator.
However it's not running.
First I run the emulator with "emulator -avd my_avd".
That starts up fine.
Then I create a jar file with "jar cf HelloAndroid.jar
AndroidManifest.xml".
Then I try to create the apk file but there seems to be no result:
$ apkbuilder.bat HelloAndroid.apk -v -rj HelloAndroid.jar
Using keystore: C:\Documents and Settings\Me\.android\debug.keystore
m...@darkstar /cygdrive/c/android
$ adb install HelloAndroid.apk
can't find 'HelloAndroid.apk' to install <----------
FWIW my classpath is:
$ echo $CLASSPATH
c:/android/platforms/android-1.5/android.jar
Lacking an apk, I try installing the jar file instead
but this doesn't work. It gives this error:
$ adb install HelloAndroid.jar
25 KB/s (2023 bytes in 0.078s)
pkg: /data/local/tmp/HelloAndroid.jar
Failure [INSTALL_FAILED_INVALID_APK]
My jar file contents are:
$ jar tfv HelloAndroid.jar
0 Fri Aug 14 17:08:56 EDT 2009 META-INF/
71 Fri Aug 14 17:08:56 EDT 2009 META-INF/MANIFEST.MF
545 Fri Aug 14 15:21:50 EDT 2009 HelloAndroid.class
4383 Fri Aug 14 17:08:56 EDT 2009 AndroidManifest.xml
Can anyone explain why this is not working?
I would greatly prefer learn how to do things from the command line.
Thanks for any help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---