ClassCast exception in case of loading class from other andoid project

by Megha Joshi » Wed, 14 May 2008 18:39:08 GMT

Sponsored Links

Please see the solution in the thread below and let us know if that works
for you.

Other Threads

1. How to create button with icon and text

> I have a additional question then.

You can't.

At most, as another poster suggested, you can have a different color be in
the background of the topDrawable. Or, put the text and image together as
a bitmap (on-device or offline) and use ImageButton to display the

However, I suspect you do not want to be setting the background of the
button via android:background="#FF0000" in the first place. That should
also remove all of your focus and touch highlighting, as they are part of
the background.

Mark Murphy (a Commons Guy)
Android App Developer Books:


2. Query: Packing resources into an APK

Hii All,

In one of my applications, I am pushing few image files say "xyz.png"
into the device using "adb push " command. And I use these files in my
application by giving their exact filepaths (say if I have pushed them
into /data, I wud say /data/xyz.png).

So to short it down, i wud say," I have a .apk and to run this apk I
would push few files manually using adb commands and I use these files
in my application by giving their full path."

But my requirement is that I should not be pushing the files manually
into the device. Instead I need these images to be a part of my .apk
itself. And I should get their fullpath which are the input parameter
to my method in the application.

Is there any way to do this? Could anybody please help me in this. Any
of your help is highly appreciated!!

Please do suggest.



3. Application upgrade permissions UI

4. my G1 Dev Phone has a serious "Low on Space" problem.

5. Advice for speeding up my drawing

6. asic2 touchscreen

7. Get activity current view