Can DexClassLoader solve this above problem?? I have not downloaded
early look sdk yet.. Will The application which is running on sdk 1.0
run on 1.5 without an problem??

On Apr 19, 3:37 pm, Ask <asifk1...@gmail.com> wrote:
> fadden,
>
>  >but rather why are you getting the
>
> >NullPointerException.
>
>     I am getting null pointer exception due to the variables which are
> defined outside the Method which is to be invoked but inside the
> activity. If I will define the same variable inside the method..
> application works nicely. If I am invoking intent in the method then
> it is throwing same exception at startAcitivity(intent). Can
> DexclassLoader fix all this problems??
>
> >Presumably you are running as root, and/or have changed the
> >permissions on /data/dalvik-cache.
>
>   I could not understand this.Can you please clearify.. Yes I had
> changed the permissions of the /data/dalvik-cache
>
> >I am writing the file in the /sdcard using the application programmatically 
> >and the same file I am deleting when its work has been done. Same thing I 
> >had tried in the /data/app-private file but I could not write the file 
> >prgrammatically.. Is there any way to write in the private dir 
> >programmatically using changing permissions??
>
> On Apr 18, 12:45 am, fadden <fad...@android.com> wrote:
>
>
>
> > On Apr 17, 6:24 am, Ask <asifk1...@gmail.com> wrote:
>
> > > The application will be residing in the /sdcard/ and I am loading it
> > > dynamically using PathClassLoader API.
> > > and using Method.invoke() function I am invoking the method residing
> > > in that class.
>
> > Presumably you are running as root, and/or have changed the
> > permissions on /data/dalvik-cache.
>
> > If you have the 1.5 "early look" SDK, you can start using
> > DexClassLoader, which allows you to choose where the output of
> > "dexopt" will go.  You should probably use the app's private storage
> > area on /data rather than /sdcard if that's feasible.- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to