Nikolay:

On Sun, Aug 7, 2011 at 9:49 PM, Nikolay Elenkov
<[email protected]> wrote:
> Assuming by 'standalone application' you mean a Java program
> with a main method, there is an dalvikvm command. If your
> class is in a dex file, you should be able to run it from the command
> line.
>
> Cf. # dalvikvm -help

That's exactly what I was looking for.  Thanks!

For the record (from the dalvik docs, which I didn't find until after
you had answered my question):

$ javac Foo.java
$ dx --dex --output=foo.jar Foo.class
$ adb push foo.jar /sdcard
$ adb shell dalvikvm -cp /sdcard/foo.jar Foo

Note that the generic SDK emulator doesn't seem to have a useful
/sdcard, so I use /data in the above.


b.g.
-- 
Bill Gatliff
[email protected]

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to