Re: [android-developers] Dynamically loading code in Android application

2011-09-13 Thread Raffaele Sgarro
I'm only evaulating if it's viable.. My plan is to download the code from a
server. What's the warning about code injection?

2011/9/13 بالقاسم الشريف b0592221...@gmail.com

 بتاريخ 2011 9 11 22:36، كتبها Raffaele Sgarro raffaelesga...@gmail.com
 :

  Is it possible to run code downloaded ar runtime? Something like
 
  new URLClassLoader(myURL).loadClass(MyClassName)
 
  The class code will be in a JAR archive. The question is how do I compile

  and package that code? I think Dalvik cannot executes plain Java
 bytecode,
  so I'll have to postprocess the JAR with dx tool. Is is right? But
  unfortunately dx is not documented, so I really need more information on
  this topic
 
  --
  You received this message because you are subscribed to the Google
  Groups Android Developers group.
  To post to this group, send email to android-developers@googlegroups.com
  To unsubscribe from this group, send email to
  android-developers+unsubscr...@googlegroups.com
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Dynamically loading code in Android application

2011-09-13 Thread Kristopher Micinski
2011/9/13 Raffaele Sgarro raffaelesga...@gmail.com:
 I'm only evaulating if it's viable.. My plan is to download the code from a
 server. What's the warning about code injection?

If you store it on SD card: it can happen.

Kris

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


Re: [android-developers] Dynamically loading code in Android application

2011-09-12 Thread Raffaele Sgarro
Thanks for your reply, but my question was more about how to get the DEX
file without Eclipse, since typically my JAR will contain a couple of
classes and resource files

2011/9/12 Kristopher Micinski krismicin...@gmail.com

 On Sun, Sep 11, 2011 at 3:35 PM, Raffaele Sgarro
 raffaelesga...@gmail.com wrote:
  Is it possible to run code downloaded ar runtime? Something like
  new URLClassLoader(myURL).loadClass(MyClassName)
  The class code will be in a JAR archive. The question is how do I compile
  and package that code? I think Dalvik cannot executes plain Java
 bytecode,
  so I'll have to postprocess the JAR with dx tool. Is is right? But
  unfortunately dx is not documented, so I really need more information on
  this topic
 

 http://developer.android.com/reference/dalvik/system/DexClassLoader.html

 ???

 Kris

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en


-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Dynamically loading code in Android application

2011-09-12 Thread akhil raval
i want to fetch my inbox message while my applicatikon is start in the phone
how ti done can u please help me god said please dude



-- 
Ever+ Never-
@kh!l R@v@l

(+91-96388-66691)
(+91-74052-63600)

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Dynamically loading code in Android application

2011-09-12 Thread Kristopher Micinski
Ah, yes, your toolchain generates a classes.dex file in the output
directory. And yes, it is created by the suite of dx etc... however to load
it in you will want the dexclassloader. How did you plan to distribute the
code? Heed the warning about code injection :-).

(From phone)
Kris

On Sep 12, 2011 3:01 AM, Raffaele Sgarro raffaelesga...@gmail.com wrote:

Thanks for your reply, but my question was more about how to get the DEX
file without Eclipse, since typically my JAR will contain a couple of
classes and resource files

2011/9/12 Kristopher Micinski krismicin...@gmail.com

 
  On Sun, Sep 11, 2011 at 3:35 PM, Raffaele Sgarro
  raffaelesga...@gmail.com wrote:
   Is it p...

 --


  You received this message because you are subscribed to the Google
  Groups Android Developers ...




-- 
You received this message because you are subscribed to the Google
Groups Android Developers...

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Dynamically loading code in Android application

2011-09-12 Thread بالقاسم الشريف
بتاريخ 2011 9 11 22:36، كتبها Raffaele Sgarro raffaelesga...@gmail.com:
 Is it possible to run code downloaded ar runtime? Something like

 new URLClassLoader(myURL).loadClass(MyClassName)

 The class code will be in a JAR archive. The question is how do I compile
 and package that code? I think Dalvik cannot executes plain Java bytecode,

 so I'll have to postprocess the JAR with dx tool. Is is right? But
 unfortunately dx is not documented, so I really need more information on
 this topic

 --
 You received this message because you are subscribed to the Google
 Groups Android Developers group.
 To post to this group, send email to android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Dynamically loading code in Android application

2011-09-11 Thread Kristopher Micinski
On Sun, Sep 11, 2011 at 3:35 PM, Raffaele Sgarro
raffaelesga...@gmail.com wrote:
 Is it possible to run code downloaded ar runtime? Something like
 new URLClassLoader(myURL).loadClass(MyClassName)
 The class code will be in a JAR archive. The question is how do I compile
 and package that code? I think Dalvik cannot executes plain Java bytecode,
 so I'll have to postprocess the JAR with dx tool. Is is right? But
 unfortunately dx is not documented, so I really need more information on
 this topic


http://developer.android.com/reference/dalvik/system/DexClassLoader.html

???

Kris

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en