yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] alexander7567:
i did what u said, and then i put in textView.setTextColor(929) in the time to test and see if it is actually updating, and i found out it is never running the "task"... Know what could be going on?
[Android Q&A, Help & Troubleshooting] The_R:
Sorry about the old code. I did not test it before posting it.

Anyways I've tested the following code and it works fine for me. The timerTask is called every 30 seconds. You can verify this by looking at LogCat.

public class TestActivity extends Activity
{
private TimeZone timeZone;
private TextView textView;
private Timer timer;
private Handler handler;

@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);

textView = new TextView(this);
timeZone = TimeZone.getDefault();
timer = new Timer();

handler = new Handler()
{
@Override
public void handleMessage(Message msg)
{
textView.setText(timeZone.getDisplayName());
}
};

TimerTask timerTask = new TimerTask()
{

@Override
public void run()
{
handler.sendEmptyMessage(0);
Log.d("TestActivity", "Timer Task Called");
}
};
timer.schedule(timerTask, 0, 30000);
setContentView(textView);
}

@Override
public void onDestroy()
{
super.onDestroy();
timer.cancel();
}
}

Let me know if this works for you
[Android Q&A, Help & Troubleshooting] alexander7567:
What you gave me works. Thank you! I have done a lot of googling on that but there is nothing more helpful than a personalized answer.

So i think i have one last question. when you used "setContentView(textView);", it sets the whole screen to that text. And i realize this is a really noob question. But i am also trying to display other things in this app. It hides everything else.

So here is my sad atempt to fix it::

package com.alexriggs.android.timezoneclock;

import java.util.TimeZone;
import java.util.Timer;
import java.util.TimerTask;
import android.app.Activity;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.widget.TextView;

public class TimeZoneClockActivity extends Activity
{
private TimeZone timeZone;
private TextView t;
private Timer timer;
private Handler handler;

@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
t=new TextView(this);
t=(TextView)findViewById(R.id.textView1);
timeZone = TimeZone.getDefault();
timer = new Timer();

handler = new Handler()
{
@Override
public void handleMessage(Message msg)
{
t.setText(timeZone.getDisplayName());
}
};

TimerTask timerTask = new TimerTask()
{

@Override
public void run()
{
handler.sendEmptyMessage(0);
Log.d("TimeZoneClock", "Timer Task Called");
}
};
timer.schedule(timerTask, 0, 30000);
}

@Override
public void onDestroy()
{
super.onDestroy();
timer.cancel();
}
}

I show no compiler errors, but when i run the app i get a force close. I run it in debug mode and the error is around "t.setText(timeZone.getDisplayName());". I have tried googling but i cant seem to find the answer.

Sorry to keep bugging you, but i learn best by doing and not reading.
[Android Q&A, Help & Troubleshooting] randommmm:
are there hardcode in this?
[Android Q&A, Help & Troubleshooting] The_R:
Well when you want to load up a view from an xml file you must do this:

setContentView(R.layout.main);

Where R.layout.main is the resource id of the xml file you wish to load. Only after that you can get the TextView (or any other component that is a part of that xml) using findViewById. And you don't need to do textView = new TextView(this); cause the TextView is already created when using xml, just grab a reference to it using findViewById.

So your code should look like this:

@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);

setContentView(R.layout.main); // Or whatever your layout xml's name is

t=(TextView)findViewById(R.id.textView1);

timeZone = TimeZone.getDefault();
timer = new Timer();

// The rest remains the same

Try it and let me know.

---------- Post added at 12:18 AM ---------- Previous post was at 12:16 AM ----------

Sorry, but I'm not sure I understand what you mean to ask.
[Android Q&A, Help & Troubleshooting] alexander7567:
wow.. That was so simple i now feel stupid lol.

Yes that fixed it. Thank you so much for your help.
[Android Q&A, Help & Troubleshooting] alexander7567:
Ok.. new question for that same program.. I am now attempting to create a widget for this that simply displays a text view that shows the timezone. My problem is it simply show 'Large Text". It is not updating the text view to the timezone. Here is my code in AppWidget.java.

package com.alexriggs.android.timezoneclock;

import java.util.TimeZone;
import java.util.Timer;
import java.util.TimerTask;

import android.appwidget.AppWidgetManager;
import android.appwidget.AppWidgetProvider;
import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.widget.TextView;

public class AppWidget extends AppWidgetProvider {
private TimeZone timeZone;
private TextView t;
private Timer timer;
private Handler handler;
public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
t=new TextView(context);
timeZone = TimeZone.getDefault();
timer = new Timer();

handler = new Handler()
{
@Override
public void handleMessage(Message msg)
{
t.setText(timeZone.getDisplayName());
}
};

TimerTask timerTask = new TimerTask()
{

@Override
public void run()
{
handler.sendEmptyMessage(0);
Log.d("TestActivity", "Timer Task Called");
}
};
timer.schedule(timerTask, 0, 30000);
}
}

BTW... Seems like this is the hardest language I have ever tried to learn.
[Android Q&A, Help & Troubleshooting] alexander7567:
I realize im missing setContentView(R.layout.widget), but everytime i set it i get "The method setContentView(int) is undefined for the type AppWidget". Could that be thte issue?
[Android Q&A, Help & Troubleshooting] The_R:
Hello again :)

I'm not really familiar with making widgets myself, so I cannot really say what you are doing wrong. I found a link to this tutorial on making a simple widget. I think you should try and follow it and see if you can get something out of it.

Let me know if it is helpful for you or not

http://www.vogella.com/articles/AndroidWidgets/article.html
[Android Q&A, Help & Troubleshooting] alexander7567:
It was a lot more helpful than most things out there.

But i still am not able to understand it the best.

What i am wanting to accomplish is simply make a text view widget that displays the timezone (I.E. EST, CST, PST) and make it refresh every 30 seconds.

It isn't very hard to do in a normal app, but a widget seems impossible to me.

Is there anyone that can help me with This?:confused:
[HTC Sensation] Sinistah_:
Chat with people using the front facing camera? Skype was what i was using til i updated to ics... Now it isnt working like it did...
[HTC Sensation] jab74101:
you can try tango.
[HTC Sensation] davebugyi:
Skype needs an update - I use GTalk for now.
[HTC Sensation] janarioo:
u can use yahoo too , gtalk is nice though
[Samsung Galaxy Nexus] ILLHYHL:
hello,

i need to get my GSM GNex to complete stock so i could send it back to expansys to get an exchange (screen issues) :P

anyway, i unlocked bootloader, flashed CWM, rooted my phone via galaxy nexus toolkit v5.6

i was wondering if anyone could check if what i'm planning to do is correct way to turn my phone in to complete stock (just out of the box) state.

1. lock my bootloader

2. reflash stock recovery

3. extract and flash google factory stock rom

is this order correct?

if not, can someone correct me?

or if this is not what i'm supposed to do, how do i turn it back to the complete stock?

i'm not sure, but i'm seeing an option in GNex toolkit to backup and restore the phone.

i don't remember if it was mandatory to make a backup right after you install the drivers for the GNex in the toolkit.

should i use backup and restore option in toolkit instead? would it remove SU and turn everything into stock like fresh out of the box?

thank you in advance.

please help!
[Samsung Galaxy Nexus] Zepius:
order should be

2, 3, 1

locking the bootloader will be last.
[Samsung Galaxy Nexus] ILLHYHL:
thank you for the answer.

by the way,

i just found out that i have made the backup files before i did anything.

restoring those files should do the trick too right? :D
[Samsung Galaxy Nexus] msedek:
Dude just download a official Google image for your phone and use the fastboot option 8 in the toolkit to flash the official file it will get your phone back to stock will lock the bootloader and everything by itself
[Samsung Galaxy Nexus] ILLHYHL:
i'm all new to this...

so what ur saying is to download the official image, flash it, then run #8 in toolkit, correct?
[Samsung Galaxy Nexus] msedek:
You will use #8 option from toolkit to flash the official image from Google that will put ur phone back to stock
[Samsung Galaxy Nexus] ILLHYHL:
oh so basically #8 in toolkit would do everything for you.

got it. thanks!! :D
[Samsung Galaxy Nexus] msedek:
No problem... Thats whats this forum about :)
[Samsung Galaxy Nexus] ubernode54:
Everything but lock the boot loader. The Toolkit does a pretty good job of explaining the process.
[Samsung Galaxy Nexus] jjzah:
Same scenario here. The toolkit will do everything for you, download and all. Just click restore to stock and follow the directions. Worked flawlessly for me.

---------- Post added at 11:51 PM ---------- Previous post was at 11:49 PM ----------

Yeah, you have to relock it when finished
[HTC One X] potblack2win:
How loud is the speaker volume on the HTC One X in comparison to the HTC Sensation.

I find HTC sensation to be very low in terms of loudness especially when playing music

As I am getting a upgrade in coming months I need to know
[HTC One X] zerozoneice:
very loud

i have problems turning the alarm sound down, somehow it doesn't stick....

more like it's the same volume regardless of what the volume bar shows :(
[HTC One X] KRiZ-R:
I played a song on both at the same time and the volume was the same, so not loud enough in my opinion.
[HTC One X] trickyhenry:
Its louder than most phones and the speaker is of a good standard. Its not quite as loud as Samsung note or gs2 it nearly. Volume+ boosts it a bit too.

I would consider it one of the best I have tried for android. You'll not be disappointed.
[HTC One X] djpav:
Oh crap... I actually bought a Samsung Note from Amazon Germany a couple of months ago and had to return it *specifically* because the speaker volume on that phone is ******. I seriously can't tell from your comment if you have ever used a phone with a good speaker that is clean and loud. And what's up with the "you can increase the volume with Volume+"? Is this some kind of joke or are you the master of stating the obvious? Should I assume that pressing Volume- reduces the volume as well? And pressing the power button turns the phone off?

In any case, if you are telling me that the One X is "good", but "not as good as the Note", and, as I said the Note is a piece of crap to begin with, then I am staying clear of the One X. A loud, clear speaker is absolutely essential in my book
[HTC One X] kylec:
volume+ is an app
[HTC One X] 1902:
i have the note and the one x, the note speaker is a bit louder, feel a bit jealous from my wife's motorola razer, it's speaker is very loud and the voice is very clean.
[HTC One X] tomqman:
i couldnt here my one x , standing next to a Gatlinggun. so its useless in war times.
[HTC One X] trickyhenry:
If you want a good speaker go buy a Motorola defy. That's the best loud speaker on any phone IMHO.

Yes volume+ is an app.

Notes speaker is better than most. Maybe you have a dud. Try volume+ to increase volume.

HTC one x speaker is not as loud as notes.
[HTC One X] Smintz:
i used to have a Sensation and now own a One X.

The speaker is muchz better imo, which i really like!
[HTC One X] jag233:
You have just made a complete arse of yourself, wind your neck in.
[HTC One X] Sushifiend:
Speaker volume and clarity is my number one issue when choosing a phone, followed by battery life and screen resolution. I've used a Motorola Milestone (Euro version of original Droid) for years. Recently I won an HTC Sensation in a prize draw. It's a better phone than the Milestone in every way, bar the lack of a hardware keyboard and the terrible speaker.

The keyboard I can just about live without, but the speaker on the HTC was what killed it for me. I went back to my trusty Milestone after a week, because the speaker is so much better! The Milestone wakes me up every day (and I'm a very heavy sleeper) and the HTC failed every day with its feeble volume. Having some some research into this, I think Motorola phones have by far the best speakers in the industry. Otherwise, they are not quite as cutting edge as the likes of Samsung or HTC. Personally, I'm looking to the new Razr Maxx HD as my next phone, which hopefully will tick all three of my boxes.

SF
[Samsung Galaxy S (4G Model)] mtran1516:
First poster here.

Hi I flashed a kernel from this link here

http://xdaforums.com/archive/index.php/t-1513287.html

At first boot it had some of my apps, so I tried to reboot to get back the other apps, and it looked like a factory reset for my apps and home screen. So I did a nandroid restore for the backup I had right when I flashed the kernel. Now the screen is stuck at the boot, and it won't go into recovery. Any help please?
[Samsung Galaxy S (4G Model)] hechoen:
What kernel where you on before? If it was CWM 3.0 then 5.0 won't be able to restore.

How are you trying to get into recovery? What ROM?
[Samsung Galaxy S (4G Model)] mtran1516:
Uhh I was on the stock kernel and gingerbread, i was on cwm 5 pretty sure, I got cwm from flashing that kernel

I'm trying to get into recovery by holding the volume buttons and the power button
[Samsung Galaxy S (4G Model)] hechoen:
How did you flash the kernel? It's a CWM flash which stock does not have. Did you heimdell it?
[Samsung Galaxy S (4G Model)] lumin30:
Not to interrupt hecheon - but follow the guide in the second link in my signature to restore your phone. And read it all for your benefit. Don't restore a backup. We can talk about that after you fix your phone.
[Samsung Galaxy S (4G Model)] hechoen:
lumin

No interruption here. Just trying to figure out what this guy did and how he did it. Could be a really simple fix. And I was gonna toss a coin to decide whether to link him your guide or juls.
[Samsung Galaxy S (4G Model)] lumin30:
Anytime time I read nandroid restore - better to start fresh. Link him to Juls' guide. He may find an easier read. I'm on the app.
[Samsung Galaxy S (4G Model)] mtran1516:
I flashed it with sgs kernel flasher, I'm not home at the moment, I'll try the links asap
[Samsung Galaxy S (4G Model)] hechoen:
OK. Brainfart on my end. I forgot about that little tool. Follow lumins guide and you should be golden. Good luck.
[Samsung Galaxy S (4G Model)] mtran1516:
Hey, I tried the second guide in your signature, I did everything right up to where I use Heimdall to flash. However, when I use Zadig to select my driver, and then flash, it prompts me to install my driver and open Zadig again. When I close it to try and just skip it, it just makes me wait, without any changes. I've been waiting for at least 30 minutes, how long am I supposed to wait for it to flash?
[Samsung Galaxy S (4G Model)] lumin30:
Let me know if you were able to get One-Click going. If not - try a fresh USB port that you have not plugged your phone in to yet if possible and start over.
[Samsung Galaxy S (4G Model)] mtran1516:
Nvm, I worked my way with Zadig, it worked

Thanks a lot man, and thanks to all the posters in this thread. You guys are great!
[Samsung Galaxy S (4G Model)] eollie:
What did you have to do? It might help other people that have a similar issue.
[G Tablet Q&A, Help & Troubleshooting] Otreblada:
Are there any rom able to play at bat 12 live video?
[Xperia Arc Q&A, Help & Troubleshooting] shallumabijah:
can anybody confirmed if Im successfull with supercharge base on my result.

im having problem with script manager which I downloaded from the market, I think its latest .
[Xperia Arc Q&A, Help & Troubleshooting] vblongtodc:
your image is broken...
[Xperia Arc Q&A, Help & Troubleshooting] xtacy!:
Nope, you're not 100% supercharged. The changes are not sticking.

Swyped from my SE Xperia arc (LT15i) using Tapatalk 2
[Samsung Galaxy Nexus] SNaReX:
I sent an email to Expansys regarding Galaxy Nexus car dock. This is the response that I received

So I need a car dock now. I really get bored off waiting for it.

Which dock do you suggest?

PS: I have GSM Galaxy Nexus
[Samsung Galaxy Nexus] kvizz:
if your bored you can make your own.

there's a thread on here somewhere

oh wait...

it like a few threads down
[Samsung Galaxy Nexus] descendency:
Is this a joke?

Samsung is trying their hardest to kill the Nexus line, not that it was that big of a brand anyways.
[Samsung Galaxy Nexus] E15i:
http://xdaforums.com/showpost.php?p=24626815&postcount=118

As you know the car dock also use the pogo pins, so maybe that also true for that dock, and again the OTA stopped from what I understand till the fix for signal issue in sleep mode.

*I don't know what about the HDMI dock, as it's use MHL fuctionality, but work only for video :eek:, better buy MHL adapter.
[Samsung Galaxy Nexus] SKYLINESSUCK:
http://www.ebay.com/itm/Windscreen-...Accessories&hash=item33714fad14#ht_1976wt_922

No pogo charging, but I've got two and they are by far the best dock I've used so far. Also cheaper than dirt.
[Samsung Galaxy Nexus] Shady Gambino:
Arkon's Mobile grip is a good choice for the GNEX, they have a variety of mount bases (dash, windshield, lighter socket, cupholder, etc) and they're reasonably priced.

http://www.arkon.com/mobile-grip/mobile-grip-dashboard-mount-mg178.html

[YOUTUBE]PsJ5alwniZo[/YOUTUBE]
[Samsung Galaxy Nexus] njcobra10tha:
Magnet Mount

Magnet mount. I can't post an outside link but search for magnet mount at harbor freight to see it.

$4.99 at Harbor Freight. Small, Unobtrusive and works great. You can even put the little metal phone piece in between the phone and a case.

I hate those bulky plastic things.
[Samsung Galaxy Nexus] ShannonPricePhoto:
I got the one from Verizon store and love it! Its perfect, fit and design. It don't vibrate when driving like all the ones I had in the past.
[Samsung Galaxy Nexus] svtfmook:
will that work with a case on the phone?
[Samsung Galaxy Nexus] URPREY:
I have (and love) the ProClips powered car mount. Excellent quality although a bit pricey.
[Samsung Galaxy Nexus] SKYLINESSUCK:
Nope. It only kinda halfway works with the 2000mAH extended battery for GSM. It's pretty tight custom fit for the factory GSM phone. Not sure about CDMA.
[Samsung Galaxy Nexus] jboonstra90:
I was thinking about buying one of these, didn't order one yet because i'm worried about instability when using the camera while driving. Could you shoot a video using your mount? If it's just as stable as the genuine mount this one will suit my purposes. :D
[Samsung Galaxy Nexus] nomisunrider:
Too bad they don't work with a case (or make a charging, width adjustable model like for the iphone)

---------- Post added at 01:46 PM ---------- Previous post was at 01:43 PM ----------

I'm considering modifying this so there are pogo pins in the right clamp and it charges when I put my phone (with diztronic case) in it.
[Samsung Galaxy Nexus] SKYLINESSUCK:
I'll try and get a video today. It's pretty sturdy so I don't think it'll be an issue even in my rough riding off road vehicle, but we'll see. I had concerns before I ordered it, but I figured for around $10, it was worth a shot.
[Samsung Galaxy Nexus] jimbok:
How's the build quality? I bought a random car mount from a chinese website, after 2 weeks of usage, the suction cup broke off the car mount. :mad:
[Samsung Galaxy Nexus] SKYLINESSUCK:
Very pleased with it. I bought two versions; the "short" one and the "long" one. If you poke around the sellers store you'll see. The short one is better IMHO. The long one can jiggle just a little do to the way the arm adjusts. The short one is pretty solid. Suction cup part is beefy and not going anywhere. I did break the little tab off the top/side you are supposed to push to help get the phone out, but that's because I was being unreasonable on how hard I was pushing it. I tried shaving the crap out of the holder to make it fit the extended battery, then shoe-horned it in there. Then it was stuck LOL. I broke the tab getting it out, but it's still very usable, and I was pushing too hard.
[Samsung Galaxy Nexus] MattSkeet:
http://www.ebay.com/itm/ws/eBayISAPI.dll?ViewItem&item=130674625659

Arrived yesterday and waiting for me at the post office will update later :-)
[Samsung Galaxy Nexus] svtfmook:
i have an arkon mount now, it's just a little too small for the gnex in a case, but it fits. it's a PITA to get in and out of the mount, but, i will say that the suction cup and mount itself are excellent quality and work great. i have had this mount for about a year and it has fit 3 different devices now, been through a few harsh seasons and i have never had it fall off. the arkon mounts are very much worth it. i think i paid $14 for my mount.
[Samsung Galaxy Nexus] matthewtyson:
i have the diztronic case and arkon flat mount and it is snug but works great. a pogo pin mod for this setup would be awesome. please share if you get it done!
[Samsung Galaxy Nexus] Ridel:
I'm using Mountek, which attaches through a CD slot and is really unobtrusive. No POGO, works with my Nexus in case.

http://www.amazon.com/Mountek-MT5000-C-Universal-Satellite-Devices/dp/B004E5W3D4
[Samsung Galaxy Nexus] ARchamps:
I use this and it works great, even with my Diztronic case and OEM extended battery. I have it on my dash and it is quite sturdy.

http://www.ebay.com/itm/110786379810?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1497.l2649
[Samsung Galaxy Nexus] ballbusta:
I have to agree best mount by far
[Samsung Galaxy Nexus] nmprodan:
If you do modify this one, post the results.
[Samsung Galaxy Nexus] empirescrumble:
Tetrax XWAY or FIXWAY, without a doubt! Search Amazon for it. It'd great, I absolutely love mine.
[Samsung Galaxy Nexus] mailstop7:
Say, on this fixway - there is a metal "button" that goes on the phone - correct? Can this be placed underneath a slim case and still work?
[Xperia Play Q&A, Help & Troubleshooting] xkeita:
Should I unlock my bootloader using Official Sony Ericsson way?

What do I really lose (aside from DRM)?

I was trying with SE TOOL but in the service menu appears "Bootloader Unlock allowed: NO" (My mobile is an r800a).

Does exist any other way to do it?
[Xperia Play Q&A, Help & Troubleshooting] CTU_Loscombe:
I don't think you can unlock yours unfortunately

Testpoint method might work but I'm not certain. Testpoint costs money as well.

Sent from my sexy, sultry, suave Xperia Play sporting this season's Ice Cream Sony swimwear
[Xperia Play Q&A, Help & Troubleshooting] Spectre51:
Testpoint will work an omnius has it free for a couple days. Check the omnius thread in the general category for more info.
[HTC Sensation] skittleys:
I've just won a used HTC Sensation z710a (Bell) on eBay! I've been using an Acer Liquid E for 1.5 years, so I've never had to deal with any of this confusion with these "submodels".

As I understand it, the T-Mobile phone is the z710e, and the Bell one is the z710a, and these phones are exactly the same except for the HSDPA frequencies. Are there certain mods that can only be used with one submodel and not the other? I'd love a specific answer for each of ROMs, kernels, radios, etc.

I've also seen some posts about "firmware". With respect to the Sensation (and maybe all Android phones), is this referring to something different than the ROM? If so, again, is it submodel-specific?

If the answer to the above Q's is NO (i.e., z710a vs. z710e doesn't matter), what about mods for the Sensation XE?

Thanks for the help!

Edit: I know about SuperCID, I'm asking if there'll be any problems even with SuperCID.