[android-developers] Re: PathClassLoader failed in SDK 1.0, worked in 0.9

2008-10-30 Thread Daniel Janev



On Oct 22, 9:48 am, Wesley [EMAIL PROTECTED] wrote:
 hi,

 sound bad...
 if this is the case means my app/idea is not going to work

 wesley.

 On Wed, Oct 22, 2008 at 2:45 PM, MoggoDude [EMAIL PROTECTED] wrote:

  Hi Guys,
         Just sending this update on the PathClassLoader problem. I
  started a blog in the android-internals group,

 http://groups.google.com/group/android-internals/browse_thread/thread...
  ,
  looks like it is not possible
  to dynamically load classes in devices installed with SDK 1.0, which I
  believe will be installed on the HTC G1 coming out soon.
  The remifications being, that any app which requires dynamic class
  loading will not function properly on the HTC G1.

  Regards,
          MoggoDude
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PathClassLoader failed in SDK 1.0, worked in 0.9

2008-10-22 Thread MoggoDude

Hi Guys,
Just sending this update on the PathClassLoader problem. I
started a blog in the android-internals group,
http://groups.google.com/group/android-internals/browse_thread/thread/d53b610d51891147#,
looks like it is not possible
to dynamically load classes in devices installed with SDK 1.0, which I
believe will be installed on the HTC G1 coming out soon.
The remifications being, that any app which requires dynamic class
loading will not function properly on the HTC G1.

Regards,
MoggoDude
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PathClassLoader failed in SDK 1.0, worked in 0.9

2008-10-22 Thread Wesley
hi,

sound bad...
if this is the case means my app/idea is not going to work


wesley.

On Wed, Oct 22, 2008 at 2:45 PM, MoggoDude [EMAIL PROTECTED] wrote:


 Hi Guys,
Just sending this update on the PathClassLoader problem. I
 started a blog in the android-internals group,

 http://groups.google.com/group/android-internals/browse_thread/thread/d53b610d51891147#
 ,
 looks like it is not possible
 to dynamically load classes in devices installed with SDK 1.0, which I
 believe will be installed on the HTC G1 coming out soon.
 The remifications being, that any app which requires dynamic class
 loading will not function properly on the HTC G1.

 Regards,
 MoggoDude
 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PathClassLoader failed in SDK 1.0, worked in 0.9

2008-10-16 Thread MoggoDude



On Sep 30, 3:48 pm, Wesley [EMAIL PROTECTED] wrote:
 hi Lia,

 Thanks for the guide... It's worked (/data/dalvik-cache/)... but now...

 may I ask one more questions???

 if I got the error below, how??? I try to change mode(chmod 777) is not
 working...

 09-30 05:41:09.305: INFO/WESLEY(2340): java.io.IOException: Couldn't open
 /data/data/com.basic.ui/cache_/widget.xml

 thanks agains...

 wesley.



 On Fri, Sep 26, 2008 at 5:50 PM, Lia [EMAIL PROTECTED] wrote:

  Hi,

  I was experiencing something similar, when porting from SDK 0.9 to
  1.0.
  I got error .Can't open dex cache  . Unable to open or create
  cache for.. when loading custom classes with DexFile.
  I solved the problem in my environment by simply starting the abd
  console and changing rights in the cache folder:
     cd /data/dalvik-cache/
     chmod 777 .
  Hope this helps.

                      Cheers,
                       Lia.- Hide quoted text -

 - Show quoted text -

My application relies on dynamic loading of classes using
PathClassLoader as well. My
main concern is the permissions that are going to be set on /data/
dalvic-cache in a
target device, such as the new HTC G1 phone. If the permissions are
the same as in the
emulator, very high chance that users will not be able to shell in an
issue chmod 777
commands (can't expect users to perform such tasks either). This would
render our
application inoperable. I am going to do some more research, try and
find out what the
permissions on the /data/dalvic-cache in HTC G1 will be. If I find out
any info, I'll
post it in this blog.

Cheers,
  MoggoDude
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PathClassLoader failed in SDK 1.0, worked in 0.9

2008-09-29 Thread Wesley
hi Lia,

Thanks for the guide... It's worked (/data/dalvik-cache/)... but now...

may I ask one more questions???

if I got the error below, how??? I try to change mode(chmod 777) is not
working...

09-30 05:41:09.305: INFO/WESLEY(2340): java.io.IOException: Couldn't open
/data/data/com.basic.ui/cache_/widget.xml

thanks agains...



wesley.

On Fri, Sep 26, 2008 at 5:50 PM, Lia [EMAIL PROTECTED] wrote:



 Hi,

 I was experiencing something similar, when porting from SDK 0.9 to
 1.0.
 I got error .Can't open dex cache  . Unable to open or create
 cache for.. when loading custom classes with DexFile.
 I solved the problem in my environment by simply starting the abd
 console and changing rights in the cache folder:
cd /data/dalvik-cache/
chmod 777 .
 Hope this helps.

 Cheers,
  Lia.

 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PathClassLoader failed in SDK 1.0, worked in 0.9

2008-09-26 Thread Wesley
hi,

FYI,

I working on this since the 1st sdk release last year Dec...
Now I cannot make any further progress because of this problem... and yet...

no one is offer any solution or any guide for me...

I also dunno what can I do next...
one error, destroy my idea of my whole year project...
haiz...

I try to load class by using defineClass method... dalvikvm give an error of
defineClass and unsupportedTypeClass exception...

any others suggestion for me...??? any idea how to load class...??? just a
simple one will do... others error I can try to figure out by myself...

I just need a light...


wesley.

On Fri, Sep 26, 2008 at 8:22 AM, Dana Li [EMAIL PROTECTED] wrote:

 Hi, We had used the PathClassLoader to load class from a dynamically loaded
 apk file, however, it worked in SDK 0.9 but failed in SDK 1.0. Not sure what
 is the reason, Anybody has any clue on it ?

 The error message is something like:

 09-26 00:03:34.928: ERROR/dalvikvm(312): Can't open dex cache
 '/data/dalvik-cache/[EMAIL PROTECTED]@classes.dex': No such file or directory
 09-26 00:03:34.928: INFO/dalvikvm(312): Unable to open or create cache for
 /data/data/apk'

 We tried to wiped out the emulator and signed the new apk and both failed.

 Any clue?

 Googling gave me we are not alone, somebody also said it broke his code
 ---
 In SDK 0.9 my coding is work fine... but when I port it to SDK 1.0...
 I having some problem below...

 can anyone guide me to port it???

 1) PathClassLoader loader = new PathClassLoader(
 /data/data/org.beo/beo.mylib/myLib.apk,
 ClassLoader.getSystemClassLoader());

 Class calledClass = null;

 calledClass = loader.loadClass(beo.mylib.beoware);

 I fail to load into system...

 ---

 Appreciate any hint or help. It's so bad that Android is not open source !
 Everything is in a black hole..

 Dana Li


 


--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PathClassLoader failed in SDK 1.0, worked in 0.9

2008-09-26 Thread Lia


Hi,

I was experiencing something similar, when porting from SDK 0.9 to
1.0.
I got error .Can't open dex cache  . Unable to open or create
cache for.. when loading custom classes with DexFile.
I solved the problem in my environment by simply starting the abd
console and changing rights in the cache folder:
cd /data/dalvik-cache/
chmod 777 .
Hope this helps.

 Cheers,
 Lia.

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: PathClassLoader failed in SDK 1.0, worked in 0.9

2008-09-26 Thread Dana Li
Thanks Lia, it seems to be working. Is this a bug in the SDK or
intentionally?

DL

On Fri, Sep 26, 2008 at 2:50 AM, Lia [EMAIL PROTECTED] wrote:



 Hi,

 I was experiencing something similar, when porting from SDK 0.9 to
 1.0.
 I got error .Can't open dex cache  . Unable to open or create
 cache for.. when loading custom classes with DexFile.
 I solved the problem in my environment by simply starting the abd
 console and changing rights in the cache folder:
cd /data/dalvik-cache/
chmod 777 .
 Hope this helps.

 Cheers,
  Lia.

 



-- 
Dana

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---