Can a core class access resources at the app layer?

by Andy Droid » Wed, 23 Sep 2009 09:00:02 GMT

Sponsored Links
 Can a core class such as "AbsListView" access resources, such as xml
files, and .png's, in a 3rd party app installed in the normal way (at
the app level)?

I realize this is a change in framework code, and that is fine for my
purposes.  So, for example, if I know that I am going to install an
app called "MyApp", could I go into frameworks/base/core/java/android/
widget/ and tell it to use an xml file and .png's that
live in that app?  Here is the line I would want to modify:




Can a core class access resources at the app layer?

by Andy Droid » Thu, 24 Sep 2009 05:47:04 GMT

 That's a great tip, I hadn't know about that.  But, I'm trying to make
it so that the default list selector will be changeable, at the app


Sponsored Links

Can a core class access resources at the app layer?

by Andy Droid » Fri, 25 Sep 2009 07:40:46 GMT

 Thanks, Dianne.  I tested your suggestion with two apps, where one app
gets resources from another app, and it worked.  Doing it at the
framework layer is more difficult, but it may be more of a build

I made a change to frameworks/base/core/java/android/widget/  did a "mmm frameworks/base", and then "make snod".
I don't *think* I saw my change reflected, but maybe you could tell me
if "make snod" should work, or if i need to do a full make.

But as another approach, I also wanted to ask this:  In the file
"list_selector_background.xml" located at frameworks/base/core/res/res/
drawable/, can I change the line:

<item android:state_focused="true"
        android:drawable="@drawable/list_selector_background_focus" />

to something that points to my resource, such as:

   <item android:state_focused="true"
com.mycompany.myapp.my_list_selector_background_focus" />

Is there a way to do this?  thanks for your help.


Can a core class access resources at the app layer?

by Andy Droid » Fri, 25 Sep 2009 07:59:11 GMT

 hoops I thought this was android-platform, my bad. Anyway, yes I will
move it to android-porting.

On Sep 24, 4:48pm, Dianne Hackborn <> wrote:

Other Threads

1. App Pulled from Market

I received an email last week, stating that my application "has been
removed from Android Market due to a violation of the Developer
Content Policy".  Too vague to be useful, in my opinion.  It said I
could reply to the email for more information, which I did, but I got
no response.

Does anyone know how I can get in touch with someone on the Market
team so that I can make the necessary changes to get my app back in
the Market?



2. Do I need to do in Android Kernel?

Hi all,

I want to do some power management research on Android Phone. What I
will do is "online adjust the working frequency of the phone according
to the current workload and the deadline of current task" and
"dyanmically turn off the core if idle". So maybe I need read the CPU
workload(CPU utilization), Instruction per cycle and discriminate the
CPU idle state and active state ....  As far as I know, It may be
better to accomplish this in kernel, but It maybe easier if do in user
space. Did anyone ever do the similar work? Please give me some
suggestions. Thank you very much.


3. Iseng aja, froyoin Desire

4. Sensor data poll mechanism

5. Regarding enter key on virtual keyboard

6. FTP Client yang ada fitur SEARCH?

7. Not BroadcastReciver on uninstall application