Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
if I run the app in my phone the app stop working when I click the button should I be worry about it ??
please let me know
Got it ...
Have a look at this line in your
Here you're trying to change the colour of the text but haven't called the right method. You need
That should work fine.
What error are you getting? Does it just stop with a warning?
In Android Studio, does anything appear at the botom of the screen in the "Logcat" area? If so, post a copy of those messeages as that will help us work out what is going on.
Also, post your code too - we can see if there's an issue there.
So in the emulator your code works fine but on your phone it stops working?
If you're running the app via Studio and sending the run task to your phone, any error should appear in Logcat - does it not?
What happens on your phone? Does it give some warning like "Unfortunately, your app has stopped working" or does it just not work?
Again, show us your code! We can take that from there.
Let us know the above stuff and we can go from there.
Great - that's what we needed. In your Logcat, the error is saying: "
NotFoundException: String resource ID #0xff53bbb4"
That's one of your colours that's not working. So, I suspect that none of your colours work as I see no reason why that one should fail in isolation.
I've just pulled your code into my environment and am getting the same problem. So, the way the colours are being used in
ColorWheel is causing a problem ... I shall investigate!