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. Listview focus out of order when click rapidly

Hi,
I noticed that when item in in a list is clicked rapidly, there is
chance that item in other row becomes dark. Especially when you click
turn on/off bluetooth in system setting quickly. Has anyone noticed it
and is there fix for this? Thanks
--~--~---------~--~----~------------~-------~--~----~

2. How to get pressed state of preference

Hi i will summarize the problem,

There is know problem in all the Android phones.


Go to Bluetooth Settings->Turn ON bluetooth->Click on bluetooth
discovery->Then timer will start in summary->Long press on Bluetooth
device discovery-> observe Bluetooth ON/OFF title start to toggle
with
Bluetooth Discovery toggle.


I analyzed the issue.


Blueooth ON/OFF is CheckBoxPreference.
Bluetooth Discovery is also CheckBoxPreference which has dependency
on
Bluetooth ON/OFF.


When we click on Bluetooth discovery then On thread will run at every
second to update summary in  Bluetooth Discovery preference. When we
change the Bluetooth discovery to OFF then thread will be removed/
killed. When i press the Bluetooth discovery for long time when its
already in ON State then still the thread will be updating the
summary
(remaining time from 120 to 00) till i press it. When i leave the
Thread will stop. As it has dependency on Bluetooth ON/OFF, its
making
to the title invisible. But it should not happen.


Solution: When i touch the Device Discovery i should kill the update
summary thread then i guess, that problem will be solved. But in
prefence i dont have any listener to know the pressed state.


I hope somebody can give me solution.


Regards
Sameer

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

3. Crash at drawing WebView into the Canvas.

4. Donut has arrived at GooglePlex...

5. Any Googlers on this board who work in Kirkland, WA?

6. getPressure vs. getSize for MotionEvent

7. Android App Promotions