In my project, in the res/drawable directory I have:

icon.png
go_bg.png
go_bg2.png
go.xml

The contents of the go.xml:

<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android";>
  <item android:state_pressed="true" android:drawable="@drawable/go_bg" />
  <item android:drawable="@drawable/go_bg2" />
</selector>

When I put the app on my HTC Hero, it works fine.  But if I reboot the
phone, the application icon stops using the icon.png, and instead
begins to use the go_bg.png.  The button that uses the go.xml no
longer works either.  Rebooting the phone basically breaks the app.  I
can reinstall the app and it again works fine all up until I reboot.

I know of two ways to get the app on the phone, first using Eclipse
and second using the HTC Sync software that came with the phone.
Installing the app either way produces the same issues in the end.

I've tried renaming the button image names and the xml file.  Nothing
helps there.

My phone is the HTC Hero.  In Eclipse I'm building using the 1.5 SDK.

Any idea why rebooting my phone breaks my app?

Thanks,

-- 
Greg Donald
http://destiney.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to