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

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


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.

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. Unable to open database

Sorry, I know this is a rookie question and probably been asked
before, but I did not find an answer doing searches.

I have created a SqlLite database and copied it to my projects Assets
driectory.  It shows up in Eclipse package explorer.  There are two
files   AndroidDbXXX and XXXDB.  Not sure why, but I assume both were
created by SqlLiteStudio.

In my dbHelper class I have the following (XXX is the project Name)
    private static String DB_PATH = "/data/data/com.site.XXX/
    private static String DB_NAME = "XXXDB";

My open of the database fails (unable to open database) and I think
its because its not finding it.

Im confused.
    Do I need to make a databases directory in assets and put my files
    Or am I just getting the db path incorrect?
    Or something else like I put the files in the wrong place?
    Or sounds like I did the right things, must be something else?

One last possiblility... the package name is
       package com.site.XXX;
But the Project name has a space as in X XX.
Is it possible that I need the space in the DB_Path?
      just tried it with the space..didnt help.  Still, dont know
which is correct.


2. Animated GIFs?

Hi, all.

    We are doing some prototyping for an Android app and we wanted to use
Animated GIFs via webpages to get a sense of animation.  Unfortunately, we
have found that we can't do that on the Android's browser (or Opera for that
matter).  I've read some posting saying that this might get fixed but there
were never any specific dates.  Does anyone have some news on when we might
be able to use Animated GIFs in webpages?   If not, does anyone have any
suggestions on good ways to develop quick animated visual prototypes of apps
for Android?  In particular, our design folks (who are handling the visual
stuff) know HTML, Javascript, J-query but don't know Java and we would
prefer to NOT have them learn another language, if possible as this is
really just for rapid prototyping.

   Any help would be most appreciated!


Eric Hekler, Ph.D.
Post Doct{*filter*}Research Fellow
Stanford Prevention Research Center
Medical School Office Building: Mail Code 5411
251 Campus Drive
Stanford, CA 94305-5411
Office # (650) 721-2516
Fax:  650-725-6247
Email: ehek...@stanford.edu


3. Compile and port Android os in MS104-SH4AG board

4. Accessing protected fields from View subclass

5. Does webkit's toDataURL() for the HTML5 Canvas work on Android 2.1?

6. Speech Recognition App

7. GDC 2010 "Bring your games to Android"