wood burning stoves*
The moose likes Android and the fly likes Store textview color Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Store textview color" Watch "Store textview color" New topic
Author

Store textview color

Lex van Rijswijk
Greenhorn

Joined: Jul 07, 2012
Posts: 10
Hello,

I'm pretty new to Android development. Little by little I'm learning heaps of new things. After a few tutorials I'm making a program with al kinds of basic features so I know how to do it myself.

One of the features is changing the color of a textview (mWelcomeUser) by input of the user. When he/she pushes on the "SetColor" button, a dialog shows with different colors. This all works fine untill the orientation changes. I want to safe my color in onPause() and retrieve it in onResume(). The colorsettings are set in color.xml.

So If the user selects purple;



So the color isnt stored as an hex number to a variable. Thats what is giving me a hard time. If it was a hex value I could write that to an int (or a string) variable and retrieve it. But thats not the case here.
What should I do to make this works? It should be something like this (imo):



Thank you,
Lex
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Store textview color
 
Similar Threads
Android Grocery Calculator help
android uncaught handler: thread main exiting due to uncaught exception
How to handle input from a Dialog ?
Activity Expired Time Out From BroadcastReceiver (need ASAP solution)
Problem in Obtaining Location using GPS