yashsingh1/xdaforums huggingface dataset:
[Android Software Development] HellPrye:
Im trying to build an RSS feed reader that needs to do some client side SSL authentication.

Ive got, or at least think i have, the certificate and now cannot figure out how to setup a ssl tunnel to send the certificate to the server to authenticate.

here is what i have so far:

public class Authenticator extends Activity {

PrivateKey privateKey = null;

String SavedAlias = "";

private static final String TAG = "AUTHENTICATOR.CLASS";

final HttpParams httpParams = new BasicHttpParams();

private KeyStore mKeyStore = KeyStore.getInstance();

public Handler mHandler = new Handler(Looper.getMainLooper());

public void run()

{

mHandler.post(new Runnable() {

public void run() {

new AliasLoader().execute();

}

});

}

@Override

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

getCertificates("TEST");

}

public class AliasLoader extends AsyncTask<Void, Void, X509Certificate[]>

{

X509Certificate[] chain = null;

@Override protected X509Certificate[] doInBackground(Void... params) {

android.os.Debug.waitForDebugger();

if(!SavedAlias.isEmpty())

{

try {

chain = KeyChain.getCertificateChain(getApplicationContext(),SavedAlias);

} catch (Exception e) {

Log.e(TAG, e.getMessage());

}

}

else

{

this.cancel(true);

}

return chain;

}

@Override

protected void onPostExecute(X509Certificate[] chain)

{

if(chain != null)

{

Toast.makeText(getApplicationContext(), "YAY, Certificate is not empty", Toast.LENGTH_LONG).show();

}

else

{

Toast.makeText(getApplicationContext(), "Certificate is Empty", Toast.LENGTH_LONG).show();

}

/*

if (privateKey != null) {

Signature signature = null;

try {

signature = Signature.getInstance("SHA1withRSA");

} catch (NoSuchAlgorithmException e) {

Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_LONG).show();

}

try {

signature.initSign(privateKey);

} catch (InvalidKeyException e) {

Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_LONG).show();

}

}

*/

}

}

public void getCertificates(String Host)

{

KeyChainAliasCallback callBack = new KeyChainAliasCallback() {

@Override

public void alias(String alias) {

if (alias != null)

{

Looper.prepare();

saveAlias(alias);

run();

Looper.loop();

}

}

};

KeyChain.choosePrivateKeyAlias(this, callBack,

new String[] {"RSA", "DSA"}, // List of acceptable key types. null for any

null, // issuer, null for any

null, // host name of server requesting the cert, null if unavailable

443, // port of server requesting the cert, -1 if unavailable

null); // alias to preselect, null if unavailable

}

public void saveAlias(String alias)

{

SavedAlias = alias;

}

}

Any help on how to do this would be greatly appreciated as i have never done any authentication before and i have found it difficult to find anything on this topic for android 4.0 as 4.0 seems to be different in implementation then the older versions.
[T-Mobile Samsung Galaxy S II SGH-T989] epofhouston:
I am on DS.3 v7 with CWM 5.0.2.7. I cant get to the CWM recovery menu by pushing the power button or the pull down menu. The phone turns off and the screen remains off with the buttons lit. I have to pull the battery to reboot. I can get to the CWM by using ROM manager. I think I accidently deleted the cwm off the internal USB when I was trying to create more space. Right now there is no files underneath the internal USB /clockworkmod except for the .settings files. Do I need to flash the recovery.img again or can I do something simple?
[T-Mobile Samsung Galaxy S II SGH-T989] SiNJiN76:
You can install Quick Boot from the Store.

Sent from my SGH-T999
[T-Mobile Samsung Galaxy S II SGH-T989] Rod3:
Or you could hold the power button + volume buttons down until you feel a vibration. Once it vibrates, keep holding the volume buttons until it boots into CWM.
[T-Mobile Samsung Galaxy S II SGH-T989] doug36:
As above said, & run darkside cache wipe, this is simply the good ol shutdown hang, not an issue with recovery..

@OP, The CWM folder is simply for storing backups lmao it doesn't store the actual recovery.. how smart would that be..
[T-Mobile Samsung Galaxy S II SGH-T989] yoft1:
Your recovery is loaded on a separate recovery partition to prevent you specifically from accidentally deleting it :) Other users have listed alternatives for you to access recovery
[T-Mobile Samsung Galaxy S II SGH-T989] epofhouston:
wipe the cache fixed it. Thanks for the help.
[Nexus 7 General] tarnar:
Saw a cute girl on the train today reading a book on her N7. Didn't feel creepy enough to ask about the GPS debacle or what model it was.

Have you seen an N7 in the wild yet?
[Nexus 7 General] evonc:
Nope. Then again i'm in canada but using the subway daily in Downtown Toronto on my commute to work but still i'm the only N7 user from the looks of it.
[Nexus 7 General] sharp2G:
actually that was me reading a book on the train with my N7...
[Nexus 7 General] th3drow:
I think we need to start a new nexus 7 hookup thread
[Nexus 7 General] kind3rgarten:
Yesh.
[Nexus 7 General] danifunker:
i guess I haven't seen you yet on the subway lol. I got mine from Canada computers on Tuesday
[Nexus 7 General] evonc:
Haha too many apple users on the subway usually. I once saw a girl using her ipad to read while listening to music on her ipod touch while replying to a msg on her iphone. Had to try not to laugh.

Sent from my Nexus 7
[Nexus 7 General] danifunker:
My favourite riders are the ones with a Blackberry and an iPod. I always try not to cringe...
[Nexus 7 General] LostInNorth805:
Jesus I'm surprised she hasn't had a operation to add another arm to her to make life easier for her lol
[Nexus 7 General] kind3rgarten:
Yeah, at my University you will see people texting and listening to music on their iPhone, playing a game on their iPad, and browsing the internet(or whatever you do on those things) on their MacBook.

;)
[Nexus 7 General] tide88:
That's funny
[Nexus 7 General] doctahjeph:
Nope just in captivity
[Nexus 7 General] Valerianus:
Not yet in my neck of the woods.
[Nexus 7 General] redmonke255:
Nope, I have one of the three nexus 7s sold (in store) in my area.
[Nexus 7 General] soldeus:
I have it out and on all day at work since I bought it at sam's on 7/14. Everyone keeps asking me if its the 'mini-ipad' they keep hearing about. People are dumb. Oh and I work in a hospital so you should already know its an apple fanboi community.
[Nexus 7 General] tarnar:
(insert "not sure if serious" meme here)
[Nexus 7 General] jptech:
What GPS debacle?
[Nexus 7 General] Shano56:
Only public sightings I have seen android users, was some guy on a bus with the same phone as me, a droid incredible, he was on stock froyo/gingerbread, I cringed
[Nexus 7 General] skyyrocket:
Havent seen anyone in the south FL area yet with an N7.... a lot of apple fanboys tho
[Nexus 7 General] TheWenger:
I got the only one pre-ordered in my area. I took it on vacation to Vegas and didn't see one there at all. I did see a ton of people holding up their iPads to take pictures, looking like complete asshats.
[Nexus 7 General] CooLoserTech:
You should of went up to her and said "hey baby, i got a nexus 7 too. Wanna go out?" then you get married and your nexus and hers share a case

---------- Post added at 03:24 PM ---------- Previous post was at 03:22 PM ----------

I was the only one in my area to pre-order the nexus and yet to see any sightings in our small world
[Nexus 7 General] EmilVee:
The ****? That's definitely overkill.

Lmao no no, he should've been all "hey baby why dont you come over here and beam yo digits onto my phone ;)"
[Nexus 7 General] tarnar:
GPS = Google Play Store

That should be all the explanation needed.
[Nexus 7 General] tremblingwater:
London, UK -

Thought i would see at least some but sometimes i do honestly feel like standing up for the Android front all on my own (i know its still early days), but when i do see people with Android devices, they're mostly on froyo/gingerbread ha. In the morning, i count a minimum of 15 iphones/ipads on route to work, its thoroughly annoying.
[Nexus 7 General] techferret:
I was surprised to bump into a utilities worker at my local Office Depot looking for a case for their N7 as well. We had a small chat about the device and how we couldn't find a case yet. Wasn't expecting that at all in the Inland Empire of all place, OC and LA maybe but in my neck of the woods? Small world indeed.
[Nexus 7 General] phonic:
Nah. Your forgetting one of the key features. I think

"Hey baby. Wanna bump our NFCs together to see if we click?"

Would be better.
[Nexus 7 General] bisto321:
Sat on train to work today (Aylesbury to London Marylebone) 3 ipad and 2 iphone users within arms length of me, had just woken from a snooze and couldn't be bothered to try and free my arms from the clamped position after a 'big fella' sat next to me.

Will get it out on my next journey to see if it prompts some questions.

If you are on my train, look out for my tether hotspot - SSID is 'icrapsucks' :)
[Nexus 7 General] CooLoserTech:
tru dat
[Nexus 7 General] Xenoproctologist:
*head-desk*

Acronyms have meanings. Please don't abuse them; they're fragile. -_-
[HTC One S] davwman:
In build prop fast dormancy is set to 2 in axiom where in other roms it might be 1 or 0. What does changing this number do? And would it help connectivity issues?
[HTC One S] frdd:
1 is on, 2 is some undocumented level of fast dormancy for some carriers IIRC, don't remember where I read that but it was here on the xda one s forums maybe april-may. Try 0 if you have issues this should disable it and let the radio stay in hspa mode a bit longer, only cost could be a bit more battery use.
[HTC One S] davwman:
Does T-Mobile use fast dormancy?
[HTC One S] fstmstngs:
Ditto. My signal was all over the place until they sent me a cel-fi booster. It still waivers a little, but it's from 5 bars to 3 at the least, versus 3 bars to no signal.

-Mike
[HTC One S] frdd:
I have no idea but check in build.prop on stock rom from branded phone from the carrier
[HTC One S] davwman:
heres my research so far on fast dormancy. Stock build prop shows a 2, not sure why. im running the europe radio and with it off using axiom im getting bad cell standy drain at 39%. With it set to 2 on axiom using the same radio im at 2% cell standby. I would say leave it at two if you are experiencing bad battery drain. ill keep looking into it as I still dont really understand fast dormancy and why its set to 2, considering a 0 is off and 1 is on. I am also using wcdma preferred which is also stock across all roms including the factory tmobile image.
[HTC One S] Samugai:
Mine was on 3, no idea why but that's what I saw after rooting. Signal was very jumpy so I changed it to 2 and the signal seems a little bit more stable. I'm tempted to try switching it to 1 but not sure how that goes. Anyone saw any difference on 1? I'm on Tmo US.

Sent from the One.
[HTC One S] davwman:
Nvm, figured out the signal problem. Antenna on the one s is at the lower left hand side. Grip it down there in a low signal area, say good bye to reception. Knowing his the signal has been solid. Not sure if the whole thing with fast dormancy was the problem to begin with. I'll do a comparative battery test now to see what gets better results.
[HTC One X] kami2k:
Is there any JKAY implementation for status bar shortcuts, i really miss them from s2

thanks

Kami
[Nexus 7 Q&A, Help & Troubleshooting] SoldierOfCatan:
I received my Nexus 7 yesterday from google play. I played with it all night and everything was great. No manufacturing defaults that I can detect. I charged it up when I went to bed. I woke up this morning and played with it for about ten minutes and everything was cool. Now I'm at work and it starts rebooting every 20 seconds or so. I'm using Nova launcher so I enabled the default launcher. No good. I factory reset and its still boot looping. I was tethering to my phone so I disabled wifi. No change. Turned off GPS...no change. Can anyone think of anything else I can do? I really don't want to wait on hold with Google.

Thanks.
[Nexus 7 Q&A, Help & Troubleshooting] dr3wster:
My Nexus 7 is on pre-order here in Australia, but I do have an Asus Transformer tab which reboots to no end.. I was kind of hoping the reboot issues wouldn't exist in the newer Asus-manufactured tabs .. this is not encouraging!

11 months after buying the TF101 and 3 RMAs and several OTA firmware updates and countless hard-resets, the random reboots are occurring.

My advice to you is bite the bullet and send it back ASAP and argue for a replacement. Don't think that you can just put up with it for a bit and wait for firmware updates, because trust me, it will drive u nuts!~
[Nexus 7 Q&A, Help & Troubleshooting] SoldierOfCatan:
Yeah, I'm on hold now and have been for about an hour. I have to get this thing replaced as its useless. Its funny that if idle it is fine but as soon as I do anything it reboots. I was really looking forward to playing with it this weekend. I just hope they can ship a new one quickly.
[Nexus 7 Q&A, Help & Troubleshooting] SoldierOfCatan:
84 minutes on hold and finally spoke with a Rep. They will email me within 48 hours for RMA. Its a shame since this is a beautiful tablet.
[Nexus 7 Q&A, Help & Troubleshooting] just lou:
If you're tethering, doesn't that mean you also rooted too? Did you change anything else?
[Nexus 7 Q&A, Help & Troubleshooting] SoldierOfCatan:
Let me clarify. My phone is rooted and had wifi hotspot on. My tab is not rooted. Completely stock. I am still getting reboots after factory reset with wifi GPS and syncs turned off.
[Nexus 7 Q&A, Help & Troubleshooting] popinadam:
I'm starting to have rebooting issues too. It's not as often but it is happening and is very random. Hopefully it's nothing with the hardware.
[Nexus 7 Q&A, Help & Troubleshooting] mi7chy:
Restore stock ROM before to ensure rooting didn't introduce any issues before wasting anyone's time with RMA.
[Nexus 7 Q&A, Help & Troubleshooting] popinadam:
I wish mine was something that simple. I've only had mine for 4 days so far and haven't done any mods to it. I'm going to try a factory wipe though to see if that helps.
[Nexus 7 Q&A, Help & Troubleshooting] SoldierOfCatan:
Order placed for RMA for the reboot issue. Its currently not even booting. Its just giving me the boot animation. Very odd especially since I didn't root it. Anyone know if it will ship next day?
[Samsung Galaxy Nexus] Nightwish sgsl:
Hi all nexus users..i am planning to buy a new phone.. i am looking towards Galaxy Nexus) i would like to know can i use this in heavy graphical tasks?is it smooth in games and full hd videos?.. one thing is stopping me from buying it. No sd card problem. is there any differencies between 16 and 32 GB version? google supports the 32Gb one?

Sorry for such many questions)..Thanks in advance :)
[Samsung Galaxy Nexus] Zepius:
32GB is limited to the vzw and sprint nexus versions

16Gb is the GSM one and the one sold at the google play store (assuming you're in the US)
[Samsung Galaxy Nexus] Taboobat:
The only time I've ever seen any lag or had to adjust graphical settings was in the game Dungeon Defenders: Second Wave. It ran really smoothly at about 30% graphics (which still looked good), but bumping it up much above that made it laggy when there was a lot going on on the screen. Every other game I've ever played and every video I've ever watched worked just fine.

I have the 16GB version and come close to the size pretty frequently so I would recommend the 32GB one if you can afford it. If you're interested in flashing ROMs and things you'll want the extra space so you can keep nandroid backups and things around without worrying about it.
[Samsung Galaxy Nexus] Nightwish sgsl:
I am not in america.. does 32gb supports Gsm?..thanks for.reply
[Samsung Galaxy Nexus] Nightwish sgsl:
Nice reply bro)..is it possible to play heavy game like modern combat 3 smoothly?..32gb version is Nexus LTE??
[Samsung Galaxy Nexus] Zepius:
You can't use the LTE version on any other carrier other than sprint or Verizon. You only have the 16gb GSM version
[Samsung Galaxy Nexus] animal24:
I'm pretty sure the only gsm nexus's released were 16gb. google now has lots of cloud options. G+ instantly uploads pictures, Google play music keeps music in the cloud, videos from play can be streamed or downloaded. Google drive can take care of everything else. 16 is usually sufficient.
[Samsung Galaxy Nexus] netbuzz:
32GB is CDMA. You get it from Sprint or Verizon.

16GB is GSM. You can get the American version from Google Play. There are some baseband differences between this and world models, best described here: http://xdaforums.com/showthread.php?t=1405345

---------- Post added at 02:44 PM ---------- Previous post was at 02:38 PM ----------

The 32GB version would require an expensive plan from Sprint or Verizon. (It wouldn't work in his country anyway). The 16GB version can be used on prepaid plans as little as $30/mo. This particular plan includes unlimited data, so as long as you're in a city and can stream media then it eliminates the need for storing it on the SD Card. That makes the GSM a much cheaper option, even though yes, 16GB sucks. I have a few nandroid backups on mine and it's almost always 80%+ full and I have to shuffle some stuff off to my computer.
[Samsung Galaxy Nexus] Nightwish sgsl:
Hmm.then i can buy only gsm 16gb version...and if i locate all my videos music in clouds then it will charge data when i play them?
[Samsung Galaxy Nexus] netbuzz:
Yes, streaming from the cloud will count against data usage. Or free with wifi, if available. Sorry, I kind of assumed most people get either a large or unlimited data plan.

Either way, this is the only model available to buy in the USA that has a chance of working in your country.
[Samsung Galaxy Nexus] Nightwish sgsl:
Ehm. Okay bro.thanks. i hace another question)if i buy from amazone will i get warranty? If no then what will i do if i get it bricked or some hardware problem ? Will the native samsung centre solve the issue?
[HTC One X] butters149:
I remember playing around with the HTC one x at the aT&T store and dont remember if the weather widget had a roll-down animation where it showed additional weather information, such as weekly or hourly updates? i don't seem to be getting that sort of animation when I touch the widget. Can anyone confirm?
[Nexus S Q&A, Help & Troubleshooting] Denn77:
Hi everybody

I've been so stupid:(

I tried to flash Jelly Bean to my nexus s,

I forgot to root, restarted, it didn't start, I went into stock recovery, deleted system by accident, now it won't boot anymore.

Can I do something about it or is it really dead?:(

Dennis
[Nexus S Q&A, Help & Troubleshooting] Android-Junky:
If the phone turns on and fastboot works then no it is not dead.Follow the instructions below to install CWM on your phone and then you can flash stock/custom rom using CWM.

If you have lost recovery then install pdanet on your computer.(It will also install Nexus S USB Drivers) then put your phone into fastboot mode by holding down both Volume Up and Power buttons together. When you are in fastboot mode connect your phone to your PC using USB cable.Download ADB and recovery you want to flash put it in your C:/recovery (Put adb and recovery image in this folder)

Then open cmd and type

1)CD C:/recovery

2)fastboot flash recovery recoveryname.img (replace recoveryname with actual file name of the recovery image).

You can download recovery from here

Or you can avoid all this and just use this

http://xdaforums.com/showthread.php?t=1544940&highlight=recovery
[Nexus S Q&A, Help & Troubleshooting] Denn77:
Thank you for you reply. I have adb installed and it worked, but now my laptop won't recognize my device anymore:S
[Nexus S Q&A, Help & Troubleshooting] nikeman513:
Lol, forgot to root? That made me literally laugh out loud. Are you the same guy that posted this on Engadget.com? Some guy just explained on there of how he did the exact same thing...

Make sure you are running as admin on your computer. Right click on whatever program you are using and click "run as admin". That can solve most of the problems with your computer not recognizing the device. Good thing you messed up on the nexus. It's a pretty good phone for fixing newb mistakes.
[Nexus S Q&A, Help & Troubleshooting] Denn77:
Well, i forgot to flash the root as I first wanted to see if Jelly Bean worked at all.. And it wasn't me on Engadget.com:p

I really really really hope I can fix it, as I don't want to lose my nexus s, it's a great phone!

If i can fix it, I'll be more carefull in the future:)

thanks for your replies!
[Nexus S Q&A, Help & Troubleshooting] Denn77:
PdaNet hangs on 'installing PdaNet to your phone:('
[Nexus S Q&A, Help & Troubleshooting] Denn77:
Solved

He's alive again:p (My phone wasn't dead, I know:))

Thank you so much!
[Nexus S Q&A, Help & Troubleshooting] nikeman513:
Good! We learn from mistakes! Rooting is fun and has many benefits! Hard parts done, flash away!
[Sprint Samsung Galaxy S III] jasnmb:
cross post from member-found deals...

Seems like a good deal. $139 for new customers, $149 for upgrades, and $589 with no contract.

Samsung Galaxy S III 4G Android Phone, Blue 16GB (Sprint)
[Sprint Samsung Galaxy S III] DroidBabe:
Why dont they ever have white in these deals? They always have a blue one. Lol
[Sprint Samsung Galaxy S III] jasnmb:
what's strange is that Amazon is selling the white GS3 for Verizon, and also the white one for At&t, but they don't appear to be selling the white version for Sprint at all.
[Sprint Samsung Galaxy S III] DroidBabe:
Yes even letstalk.com and wirefly.com doesnt have the white one. And radioshack.com too Weird.
[Sprint Samsung Galaxy S III] Iphony89:
Wouldn't be surprised if sprint wanted it that way
[Sprint Samsung Galaxy S III] netkgb:
Thanks for the info

The Sprint store price for this phone is $199. They give you 14 days to return and today was day 14. I literally had 1 hour before the Sprint Store closed so I called them up and said, Amazon is selling this for $149 - same plan and all. Can you match the price, saving me the return? They gave me a credit for the difference in price. Thanks for the info, man.
[Sprint Samsung Galaxy S III] gtuansdiamm:
Is is exclusive for best buy and sprint

So you won't find the white version anywhere else
[Sprint Samsung Galaxy S III] DroidBabe:
Thats where I bought my white one. Best buy.
[Sprint Samsung Galaxy S III] seabhac:
I just called sprint and asked about the same.. they just tranferred me to a supervisor who proceeded to argue with me when I was being nice. I explained that's fine I'm within my 14 days. I'll look into cancelling and going to another carrier if they aren't willing to credit the difference. So far I love the phone, but sprint's customer service is really pathetic. They won't do anything for you and the techs they hire are little more than high school grads if that.
[Sprint Samsung Galaxy S III] ycats:
I got my Sprint GSIII (blue 16gb) at Radio Shack two weeks ago, $149.99.................sold my EVO 3D for $175.
[Sprint Samsung Galaxy S III] edufur:
So true... in fact, it seems that our phone support services for any company these days consists of either people IN India, or high school rejects. Hell, here in Oregon, they farm DMV (department of motor vehicles) phone calls to the prisoner inmate system. And yes, they can access your records.
[Sprint Samsung Galaxy S III] banzaiwolfe:
Used to be able to get Sprint to bend over backwards for you, but not anymore.
[Sprint Samsung Galaxy S III] seabhac:
While I like the phone and am ok with the service...sprints customer service is a huge joke.
[Sprint Samsung Galaxy S III] chazglenn3:
Have you tried AT&T or Verizon? You may be surprised at how good Sprint Customer Service really is...
[Nexus 7 Q&A, Help & Troubleshooting] Guardsix:
My Nexus 7 wants to read everything out loud in my browser. How do I shut it up? I've tried disabling text to speech but that doesn't want to turn off either!
[Nexus 7 Q&A, Help & Troubleshooting] wyattyoss:
Uninstall talkback. Or disable in accessibility settings.