what want defineClass(...) ?!

by HotHeart » Fri, 28 Nov 2008 23:58:35 GMT

Sponsored Links

I read some topics and founded that defineClass fails if use java
But how to convert Java Byte-code to Dalvik ByteCode on runtime?



what want defineClass(...) ?!

by Ralf » Sat, 29 Nov 2008 02:46:27 GMT

 You can't. Simply package your java .class in your project and
ant/eclipse will convert it when building your app.



Sponsored Links

what want defineClass(...) ?!

by Jakob Sachse » Fri, 09 Jan 2009 22:33:44 GMT

 but in some cases this is not an option. i.e I want to run Rhino on
Andorid, which goes well for the interpreter mode, but not in
compilation mode since it produces bytecode.


what want defineClass(...) ?!

by Mark Murphy » Fri, 09 Jan 2009 22:46:00 GMT


Which gets back to Ralf's original point:

"You can't."

AFAIK, dynamic languages that generate Java VM bytecode will need to be
augmented to generate Dalvik VM bytecode. Or, use interpreters that do
not generate bytecode (e.g., beanshell).

Mark Murphy (a Commons Guy)

Android Training on the Ranch! -- Mar 16-20, 2009


Other Threads

1. closing multiple activities

I have 3 activities, activityA, activityB & activityC.
I want to add a menu button NEW SEARCH that will destroy/finish all 3
and start a new activityA.
I do not want to finish the activities as they process as I want the
user to be able to navigate between the 3 unless the NEW SEARCH menu
option is chosen.

I guess basically I want to know how to finish activityB & C from



2. Animasi Booting id-android - EVO+ Desir

yep kyknya sih beda dikit.. beda 54px klo ga salah.. secara sistem sih
seharusnya sama.. :D

ditunggu rilis buat N1 nya.. :D

2010/7/15 gunggu <gun...@gmail.com>

> > > Join:

3. Unable to start service

4. Keep accelerometer active

5. OOT-Om Dantezz in action @ICS

6. Kenapa Acer Liquid Lebih dari (Sekedar) Android? [ Acer Smart Handheld "Liquid" Competition]

7. voucher nexian android