Greg Donald wrote:
> On Wed, Oct 21, 2009 at 11:22 AM, Greg Donald <[email protected]> wrote:
>> 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,
> 
> 
> Anyone?   TIA.

Try doing Project > Clean or otherwise nuke your bin/ and gen/
directories. Then, fully uninstall the app off the Hero (e.g., use
Manage Applications). Then, try installing it again and see if the
problem recurs.

Do you get the same behavior in an Android emulator?

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, $35/Year

--~--~---------~--~----~------------~-------~--~----~
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