Specific drawable not working?????

by mikedrmfs » Fri, 20 May 2011 09:30:40 GMT


Sponsored Links
 In a very simple menu the drawable @android:drawable/ic_media_stop
doesn''t work and @android:drawable/ic_media_pause does.

I get problem
[2011-05-19 14:04:52 - Twitter Update] W/ResourceType( 7852): Bad XML
block: header size 151 or total size 0 is larger than data size 0
[2011-05-19 14:04:52 - Twitter Update] M:\Development\Eclipse_Java
\eclipse\Workapace\Twitter Update\res\menu\menu.xml:6: error: Error:
No resource found that matches the given name (at 'icon' with value
'@android:drawable/ic_media_stop').

Both of them are in
M:\Program Files\Android\android-sdk\platforms\android-8\data\res
\drawable-mdpi

-- 



Re: Specific drawable not working?????

by Marcin Orlowski » Fri, 20 May 2011 16:46:37 GMT


 



You should copy drawables to your app's res folder.

Regards,
Marcin Orlowski

*Tray Agenda < http://bit.ly/trayagenda> ;* - keep you daily schedule handy...
*Date In Tray* < http://bit.ly/dateintraypro> ; - current date at glance...
WebnetMobile on *Facebook < http://webnetmobile.com/fb/> ;* and
*Twitter< http://webnetmobile.com/twitter/> ;
*

-- 


Sponsored Links


Other Threads

1. Novice question on Notepadv1

Hi,
I think you might missed this class declaration....






-- 
Regards
Rajendrakumar Chinnaiyan
Testing Services
Wipro Technologies
Mob : +919886293435

--~--~---------~--~----~------------~-------~--~----~

2. SharedPreferences getting lost on device power off / on

Hi,

I'm finding if I save pref's and then turn my G1 off and back on, they
have been erased. Is that the expected behaviour? I've seen similar
reports from a search, but cannot find a solution.

My code to save and restore is as follows:-

public void save() {
SharedPreferences activityPreferences = myActivity.getPreferences
(Activity.MODE_PRIVATE);
SharedPreferences.Editor editor = activityPreferences.edit();
editor.putString("PrefName", "My String");
editor.commit();
}


public String load() {
SharedPreferences activityPreferences = myActivity.getPreferences
(Activity.MODE_PRIVATE);
return activityPreferences.getString("PrefName", "Default String");
}

Thanks a lot for any advice.

Ryan
--~--~---------~--~----~------------~-------~--~----~

3. Anyone interested in an Android Meet-up located in the Bay Area (CA)?

4. Permission problem while attempting to access privileged Phone object

5. hiding the title bar

6. Problem about android SDK 1.0 porting on IMX31 board (No pending application record for pid 0)

7. loading html file from SDCARD in web browser