View Single Post
Old April 8th, 2012, 05:10 PM   #1 (permalink)
alexander7567
New Member
Thread Author (OP)
 
Join Date: Apr 2012
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default Convert TimeZone to Text

Im trying to convert the results of timezone to text for use in textView. I am new ro android devloping, so i need some help.

Here is my current code:

Code:
TimeZone tz = TimeZone.getDefault();
        TextView tv = new TextView(this);
        tv.setText(tz);
but it gives me this error:

Code:
The method setText(CharSequence) in the type TextView is not applicable for the arguments (TimeZone)
.

I understand the error, but I do not know how to convert the Timezone to "Eastern Standard Time" or "Pacific Standard Time" or whatever the case may be.


remember im a noob.. so please make it easy and actually show me the code. (im also new to java)
alexander7567 is offline  
Reply With Quote