Hi Dianne,
Please respond.
On Apr 21, 6:27 pm, Ask asifk1...@gmail.com wrote:
executing code from the SD card is a security hole for your app, no
matter how short a time you have the code there.
now I am successful in writing file in the /data/app-private/ dir
rather than /sdcard. So
Ask wrote:
Hi Dianne,
Please respond.
If you want to demand people answer your questions, hire a consultant,
and make your demands to the consultant.
My aim is to send the .apk files dynamically from the desktop
using socket communication and execute one method in this .apk at
executing code from the SD card is a security hole for your app, no
matter how short a time you have the code there.
now I am successful in writing file in the /data/app-private/ dir
rather than /sdcard. So one problem is solved.
but still I cant invoke intents in the method which is
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.
On Sun, Apr 19, 2009 at 3:37 AM, Ask asifk1...@gmail.com wrote:
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
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.
I am calling a method of another .apk file dynamically at runtime
in my application. I can execute it successfully if method does not
contain any variable which is defined outside of that method.
Are you using remote services?
If not, are both applications executing as the same user ID
Mark,
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.
Yes it may violate the model but I need it in my application
If not, are both applications
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.
Do not do that unless you have some means of ensuring that the code you
are loading off that SD card
means that exception is coming due to different user IDs??
why cant that method use any variable of the activity??
Regarding Loading and ulloading of .apk in the /sdcard, I am making
sure to put it in the card only when I am executing my application and
after competion of my application I am
means that exception is coming due to different user IDs??
No, probably it is coming due to using different class loaders. That's a
standard Java issue, not anything particular to Android.
Regarding Loading and ulloading of .apk in the /sdcard, I am making
sure to put it in the card only
On Apr 17, 5:56 am, Asif k asifk1...@gmail.com wrote:
But if I am using the variables which are defined outside that
method ( in the same activity or same .apk) then my application throws
java.lang.reflect.InvocationTargetException at runtime.
[...]
caused due to NullPointerException.
When
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
13 matches
Mail list logo