replying to myself here.

if i make the ComponentInfo with getContext() and the full name of 
the class, then the PackageManager does not barf getting resources 
for it. however, if i use discrete package name & component name, 
eenoworkee.

example

(works)
info = new ComponentInfo (getContext (), "com.barfer.product.MainBarf");
pm.getResourcesForActivity (info);

(fails)
info = new ComponentInfo ("com.barfer.product", "MainBarf");
pm.getResourcesForActivity (info);

should the second one work? it worked until recently.

thanks.
j


>my application caches static resources in its /assets directory and 
>implements a content provider to provide them to a WebView on 
>request. i kinda have to drive around the houses a bit because it 
>seems i can't get a linear file descriptor on an asset, i get "this 
>resource is zipped" or somesuch, don't know why that's a problem. 
>the content provider just caches the asset in /sdcard and then 
>returns a file descriptor off that.
>
>this has been mostly working fine, but i've started seeing errors 
>from the PackageManager. nothing's changed on my end, the assets are 
>still there, etc.
>
>the actual error i'm getting is --
>
>android.content.pm.PackageManager$NameNotFoundException: 
>ComponentInfo{package/activity}
>
>(where "package" is the name of the package, etc)
>
>can i get anything wrong with this stuff? caching javascript and css 
>stuff in the apk has been a big performance win.
>
>thanks
>--
>jason.software.particle


-- 
jason.software.particle

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to