yashsingh1/xdaforums huggingface dataset:
[Android Software Development] SkzBR:
Hi there, i'm new to developing Android Apps, so i have some questions.

1. I know that always have a chance of breaking security on computer world :)

2. Whats the most secure method to generate a UniqueID? because my app needs to work on china tablets, original tablets, cellphones, hacked phones, etc. I need this for verification of paid things (wait, xda will have a free version ;o)

3. There is any way to encript the program without affecting the performance too much? I'm new to java and comming from C++, so there is any compaction, encrypt, etc? Because if anybody knows the NEW IDA will come with android support.

4. There is any HTML parser on java? Because i need to fetch a html page with httpclient and after i need to parse it to get content... the contect is dynamic (html table with N rows), so i need a parser... or there is any other way?

5. I know how to make a tabed interface, but how is the best way to know the app state? Like it:

App Start -> User Already Logged (Save on SQLite?) ?

Yes = Display app interface and unlock config menu (here is the tabed interface)

No = Display login interface and lock config menu (here is just a relative layout with login bnts)

Thanks in advance.
[Android Software Development] Gene Poole:
1: Number one is not a question.

2: Do you mean most secure possible, or most secure practical? Those concerns should be addressed. Most secure would be to have a courier bring the user one-time-pads for every session, but that's not very practical. That said, what is the nature of your ID? Depending on what you are using it for, I would think a few randomly generated bits from some user entered entropy (like touchpad event timing) should suffice.

3: Again, what is the nature of your need for encryption? Do you want to keep it from being decompiled and analysed? If so, you're pretty much out of luck as there is always a way for a dedicated hacker to disassemble the code that does the decryption unless you use some sort of challenge-handshaking algorithm to load the keys at runtime for every session from some secure source but that requires connectivity and user interaction which necessarily complicates the process.

4: The XML parsers available as part of the Android SDK do a pretty good job of parsing HTML if it is clean compliant HTM> See, i.e. the Sax classes:

http://developer.android.com/reference/org/xml/sax/package-summary.html

5: You can use the API included preference classes to save state between sessions:

http://developer.android.com/reference/android/preference/package-summary.html

Note: for general application cryptography information, you still can't beat the venerated Applied Cryptography by Bruce Schneier.
[Android Software Development] SkzBR:
Thanks for the answers.

I just wanna know how the most used programs like rom manager, power amp, titanium backup and whatsapp protect their paid versions, and how they validate it.

Another question that leaves on it is that some programs have a dedicated paid version, and some have just a key that you download and unlock the free version, how they did it? They just check if key is installed assuming that it was downloaded from market?

My uses is just for two reasons:

1.) protect my app as possible from newbie crackers

2.) transmit user information with a secure method to my server. Its important because my app will be used on open networks.

As for UniqueID generating, i just wanna a "unique world global super id" for each user of my app, and it will be installed on cellphones, tablets without phone, tv with android, and all of this.

Also, what to do if html is not well formated?
[Verizon Droid Incredible 2] littlebo:
Hey guys. Ive recently unlocked gsm in my inc2 with nck and now i have no idea how to switch it to gsm mode. GSM preferences is inactive in wireless networks menu, ive tried to load a corrupted prl to push phone to look for gsm roam but no luck ( Any ideas ? Ive used dialer info code to push it to gsm mode manually but it isnt a deal . I need to switch many times a day ! I previously had HTC imagio, real crap but it was really easy to switch gsm\cdma modes via its menu. Ive even found small app that made it in one touch.

Thanks for any help .
[Verizon Droid Incredible 2] bik2101:
settings --> call --> preferred network
[Verizon Droid Incredible 2] littlebo:
Oh me stupid and blind. Thank you ))
[Verizon Droid Incredible 2] devinhfox:
Why do you need to do it many times per day?
[Verizon Droid Incredible 2] nhtu:
problem

Ive recently unlocked gsm , but can't change to GSM mode ( always show CDMA mode)

change to GSM mode , Incredible 2 show

"there is no Sim Card on your device . Your device will switch to CDMA mode now"

try another Sim card , change to GSM mode ,still show ""there is no Sim Card on your device . Your device will switch to CDMA mode now""

My incredible 2 , new in a box 100%

Unlocked by code

Solution ??? help
[Verizon Droid Incredible 2] littlebo:
Im overseas, not a US customer and have 2 lines , cdma primary and gsm reserve line, thats why )

As for sim cards that cant be seen - there r lots of old cards that requires more energy to work than new ones. I know this problem very well , lots of my buddies ordered SGS captivates from US , almost all of guys used old sim cards , 3-5 yrs old or so and phones cant see em, no sim card error, they changed em in operators office to new ones and now phones can see new cards normally.

Hope this helps.
[Upgrading, Modifying and Unlocking] oldlights:
Has anyone seen that Gingerbreak 1.2 and its included Superuser are reported as Infected by AV software? I have a Motorola Atrix 4G running 1.83, and every copy of Gingerbreak I find is infected.

Anyone have any uninfected sources?

Thanks! - Oldlights
[Upgrading, Modifying and Unlocking] doktornotor:
Common sense needed when using AV software. Damnit, it is a root exploit. :rolleyes:
[Upgrading, Modifying and Unlocking] oldlights:
Thanks, that sums it up. Common sense applied - Oldlights
[Android Themes] GTASouthPark:
I've been searching for a while (with no luck) on how to install custom icons for your apps on MIUI. I'm talking about individual icons, not icon packs, and not ones in themes.

I've seen this thread but I can't find the locations they are talking about.

Does anyone know how to do this?
[Android Themes] GTASouthPark:
Bump

Can anybody help?

I've tried This and it didn't work either.
[Android Themes] LordManhattan:
Transfer your theme file (the mtz) to your computer, change the file ending from mtz to zip.

Unzip it, open the "icons" folder and then you're ready :)

When finished, zip all the folders again, change it to mtz, and voila!
[Android Themes] GTASouthPark:
Have tried it. I change the .mtz to .zip, extract the files, change an icon in the "icons" folder, zip the file back up, change it to .mtz and it doesn't work.

When I say it doesn't work, I mean, when I do 'import theme', it tries to, but no new themes show up in my 'offline themes'.

Also I've changed the .mtz to .rar and extracted it that way, turned it into a RAR again, and changed it to .mtz. Still nothing. Does anybody know what I'm doing wrong?

Do I need my icons template to be the same size as all of my icons? Is something getting corrupted, or what do you think is going wrong?

I konw that the import themes works for normal themes though because I've done it.
[Nook Color General] I Am Marino:
Forgive me if this is a stupid question.

I've read back on a few threads of people asking something similar to this with similar answers so I was just going to clarify.

Is there any way to port the HC browser with the tabs and such to our NCs not running a HC hack. Like CM7 for example or are we stuck waiting until some kind of source is released?

I ask because I'm a fan of the stock browser honestly so I was curious.
[Galaxy S II Q&A, Help & Troubleshooting] M.N.M:
On my S2 the track i'm listening to jumps from time to time, as if you really quickly paused and unpaused.

This occurs in both stock and PlayerPro.

Anyone else have this issue?
[Galaxy S II Q&A, Help & Troubleshooting] almorsol:
I second this. Is there any solution to it?
[EVO 4G Themes and Apps] dreamgirl2011:
Anyone know where to get black themed market apk? Anyone who can help, i really appreciate. Thanks in advance.
[EVO 4G Themes and Apps] mquinn24:
Check this thread out:

http://xdaforums.com/showthread.php?t=1042506

I'm using this one right now. It's a black transparent market

Or pull the vending.apk from evokings alliance rom- it's black
[EVO 4G Themes and Apps] miguelfp1:
there's also a bunch of other color options in this thread, including full black, only the top part black and even transparent ones...
[EVO 4G Themes and Apps] dreamgirl2011:
Thanks so much, your a life saver. I really appreciate it very much!
[EVO 4G Themes and Apps] dreamgirl2011:
Wont let me open up the link on neither of the post!
[EVO 4G Themes and Apps] dased14:
here try this one. just go to the link above on how to install this!
[Desire HD Q&A, Help & Troubleshooting] anoopverma1:
Hey friends I am using rcmix HD v1.6 in DHD.......i am fully satisfied except one problem there is continuous synchonisation going on.....i have to manually stop it .....but after 15 to 20 min later it again start......it was not happened in previous version of rcmix hd......please help me guys.....i am really tensed as it is eating my battery.....

Thanks in advance
[Desire HD Q&A, Help & Troubleshooting] anoopverma1:
Please help me guys.......i am really tensed.......
[Desire HD Q&A, Help & Troubleshooting] ToneyEricsson:
What's syncing exactly?

Tried unchecking sync background data at any time/auto sync?

P.S no need to get stressed over syncing lool
[HTC Sensation] moh6299:
Is it possible to chat with someone on yahoo messenger, using the front camera like a webcam? That would be awesome
[HTC Sensation] xnifex:
my brother does it with his MyTouch4G so I assume we can as well
[HTC Sensation] moh6299:
Cant seem to figure it out
[HTC Sensation] bosanci28:
yes,i am after the same question!

the messenger works fine with the rear camera,but how to make it work

for the front camera to come on...instead of the rear?!!?

thank you!
[HTC Sensation] n8dwgphx:
I had this same problem too and after researching it I found out that this is a problem with yahoo's software. Have you tried skype2.0 or tango ?
[HTC Sensation] bosanci28:
no i did not try "tango"

and yes i try skype,but the video sometime it stops,freezes up...

is tango have video enable for front camera? and where to get it?,

will do some research..

thanks,
[HTC Sensation] n8dwgphx:
I have only tried Tango to my friends Iphone4 in the same city and it work good. I tried yahoo messenger to my wifes laptop when we found the front facing camera issue. And I only tried skype before 2.0 version, no video. Tango is on the android market or type this in google if you want to download it, (-inurl:htm -inurl:html intitle:”index of” apk tango)
[HTC Sensation] bosanci28:
ya,i will try tango also..

thank you
[HTC Sensation] NICEGYPT:
I contact Yahoo like 2 weeks ago about this issue. They told me they know this issue and are very close to release the new update for this issue. But they don't tell me the time. I think it will be sometimes this summer. Give it like a month or so.
[HTC Sensation] bosanci28:
ya,that will be nice,

thanks for that info
[HTC Inspire 4G] DVA4890:
I think my phone is impossible to root. I can never use the format tool that came with the simpleGoldCard I have done it with HP format I can never get CID so I have come to a conclusion my phone is impossible to root
[HTC Inspire 4G] Four-Fifty-X:
What? Try punctuation and maybe someone can actually help you.
[HTC Inspire 4G] malicenfz:
Yeah I'm having a hard time as well. I had already rooted an inspire before but I can't do my own
[HTC Inspire 4G] DVA4890:
I just have no idead what i am missing. i have watched buddys 1 click video and think i am doing it like he says but nope does not work. I might try the other way but it seems a little more in depth but we will see.
[HTC Inspire 4G] jc2470:
Don't be a douche! Like this?
[HTC Inspire 4G] fernandezhjr:
I used a new two gig Sandisk card and formatted it in my phone, then used the Gold Card Maker, and then used the Ace hack kit picking up on number two in the menu. This downgraded the rom and then you just forward thru setup and enable debugging again and run number three in the menu. This gives you root and s-off. Then you repeat enable debugging and go to the options menu and flash the stock radio. Once it reboots, you are ready to place your renamed rom on the root of the sd card and restart in bootloader and flash away. Don't forget to disconnect the usb cable after moving the rom to the sd card. After reboot you are home free. If you flash a custom rom, you may need to flash a new radio. The key is having a good gold card, turning off antivirus, and remembering to put the phone on charge only and enabling debugging before each step.
[HTC Inspire 4G] eramming:
Not to be a jerk but if you can't even figure out how to root the phone using one of the easiest tools around then maybe its best you just leave it alone all together.
[HTC Inspire 4G] malicenfz:
I've rooted my father in laws inspire but now I cant root mine, Im not a total noob with Android but its not working for some reason I guess ill try to find another sd to try it with
[HTC Inspire 4G] OMGMatrix:
You Did make a new goldcard for yours, right?
[HTC Inspire 4G] malicenfz:
Yes, I made one for mine. Thanks for all the help guys it wasnt me being a noob it was the sd card not working, i tried a different one and it worked, thanks for all the help again guys.
[HTC Inspire 4G] OMGMatrix:
Right on, sometimes the obvious questions just don't get asked.
[HTC Inspire 4G] P00t:
Use hack kit tool v11 and read the effenmanual. You will root your phone.
[HTC Inspire 4G] malicenfz:
lol nvm it still didn't work now when its checking PD98IMG.zip it almost finishes then it stops and it says "Model ID incorrect!" "Update Fail!!" "Press <POWER> to reboot"

help?
[HTC Inspire 4G] MartyLK:
Reading stuff like this makes me ever more genuinely glad I don't care to root my Inspire. :) In my case I know that if it can mess up it will mess up. But the whole process seems so convoluted and messy. Using a "Goldcard" seems like a burden to me...like you have to carry around addition weight with you wherever you go just to have a rooted phone. It all seems so super-duper messy. That's the biggest turn-off for me...like I would be trying to make something work unnaturally...like this is something that isn't designed for the device...stuff like that. By the way, I know someone will misunderstand what I meant by "weight" so I will preempt them by saying I know there is no "weight"...lol
[HTC Inspire 4G] malicenfz:
Im just trying to use the wifi hotspot without getting charged on my already unlimited data plan, do i even need to root to do that? besides i just wanna have it rooted but it keeps failing. ive done it like 4 times.
[HTC Inspire 4G] MartyLK:
From what I've read in the past, AT&T detects tethering on rooted phones and will charge the specific account for the cost of the feature.
[HTC Inspire 4G] henrybravo:
BTW the goldcard is not needed once you're done rooting. I haven't had a goldcard in my phone for months - it's the oiriginal 8GB that I keep it in my desk drawer should I ever need it again. Using a regular 32GB card now.

Rooting's not that hard but there is a small hurdle at first, but the rewards make it worthwhile. Some people prefer stock, some people like to tweak until the cows come home. :D
[HTC Inspire 4G] malicenfz:
Does anyone know what I'm doing wrong for it to say model ID incorrect?
[HTC Inspire 4G] ST3ALTHPSYCH0:
You can set up an apn that allows hotspot without a tethering plan.

Sent from the computer I carry in my pocket.
[HTC Inspire 4G] Hunt3r.j2:
Tethering is usually free on rooted phones.

I'm pretty sure that AT&T doesn't do deep packet inspection on their traffic yet, so you should be able to easily get away with tethering as long as you don't have significantly higher data usage than usual.
[HTC Inspire 4G] fernandezhjr:
Bad gold card.
[HTC Inspire 4G] malicenfz:
I'm rooted now thanks everyone!
[HTC Inspire 4G] Scott_S:
After all that, you might as well follow up and tell us what the problem was... :p

gold card, no?
[HTC Inspire 4G] malicenfz:
Yes it was the gold card. Apparently my 16GB card is a POS LOL.
[HTC Inspire 4G] di11igaf:
No phone is really 'meant' to be rooted. After all were using an exploit in the os to get root. Just so happens our exploit is a little harder to get to the point we have permanent rw to system than with some phones. But, you only root one time, then never again do you need to mess with goldcards or downgrading. After your rooted, its not like it causes ANYTHING negative.

I think the inspire stock is kinda horrible really. Bad battery, slow, clunky, ram hogging sense that you can NOT get rid of.

What's the downside, besides the initial process that is fairly easy if you follow the guide.

faster, double the battery life, completely get rid of sense if you want, etc
[HTC Inspire 4G] MartyLK:
I can't say that about mine. My stock Inspire is absolutely awesome. It truly impresses me beyond what any other phone has ever impressed me. The smoothness of Sense 2.0 and the speed and zippiness of it is just fantastical for a stock phone. Maybe you had something wrong with yours, but mine is utter pleasure...and I do know all about custom ROMs. The way my Inspire runs is one of the main reasons why I don't have any desire to root it. And when AT&T puts out the rumored Gingerbread update...supposedly later this month...I think I will stroke out from the shear delight of how my Inspire inspires me...hehe :D
[HTC Inspire 4G] Scott_S:
Keep in mind, the comment you quoted came from a dev, a darn good one, so his bar might be set a little higher. ;)

You're both right... It's a great phone out of the box, especially compared to others... Snappy, stuff works. But...

The battery on stock really is rather sucky, and custom roms vastly improve it, and sense, though it's cute at first, is a little much, I'm beginning to think. A lean phone is a fast, efficient phone.

I remember when the phone first came out, several people commenting on how they didn't have as much initial urge to start modding the phone as they had with previous phones.

I felt that way too, for a long time.

Now, I want more out of it. :D
[HTC Inspire 4G] calebpw:
Easy

Guys,

it is so simple all you have to do is read. I am a total noob and got it done in under 30 min. You dont have to format your card or anything. You are making it harder than it is. Really....
[HTC Inspire 4G] MartyLK:
Thanks for the heads-up on the dev. Those guys, especially here at XDA, are fantastic. I use a lot of custom ROMs on my HD2 and am always impressed with their work.

Yeah, the battery isn't all it could be on my Inspire. But I'm accepting it the best I can.

I'm sure it's easy. My deal is I just don't want to bother with rooting. No matter how easy anything is, there is always stress involved that I just don't feel the slightest bit compelled to suffer rooting my glorious Inspire. However, if AT&T doesn't dish out the Gingerbread update, I will root ...out of anger. So far I have played it AT&T's way and have accepted their way of doing things on their service and with this Inspire, which I have zero issues doing...I'm an iPhone kinda guy...lol ;)...and have read article after article about other phones in the market getting GB updates and such. If AT&T can't oblige us loyal and faithful customers, I will no longer feel obliged to remain loyal and faithful to them. And even though my Inspire is flawless, I do want GB and will find a way of getting it. If that involves rooting, so be it.
[HTC Inspire 4G] randomprecision:
Man I couldn't stand the phone before I rooted it. It was okay but the bloatware that was added to the thing was aggravating, not to mention not being able to back anything up. However, once I rooted my phone (it really is quite easy if you don't make a bunk goldcard) I tried a myriad of different ROMs, kernels and radios and while they all had their merits, the only one I could stick with in the end was a rooted stock ROM because the sound on everything else I tried was just miserable no matter what I did (I rely on my phone for sound in le car.)

However, my biggest complaint about the Inspire is not the rooting process or the trouble with the sound on custom ROMs, but it's the design flaw of the battery compartment door. My battery compartment door, like many others, was very difficult to get open. The volume toggle broke off so badly when I opened the compartment earlier today and I couldn't reattach it. The phone doesn't boot without the battery toggle switch apparently. A frustrating $125 claim, that's for sure. Almost said screw it and bought an Atrix, if not for my intense hatred of moto android phones.
[HTC Inspire 4G] Scott_S:
If you're going to wait on ATT, you may end up finding cob webs under your arms... ;)

I wouldn't wait for anything from ATT. Playing nice customer with them won't get you very far, in terms of timely updates.

Maybe this phone will be different, but I owned a captivate before this, so I'm a little jaded. . . the fiasco involved with getting froyo on that phone is a prime example of why I now no longer wait on manufacturer/carrier updates.

I do understand your reluctance to root. If it ain't broke, don't fix it, right? Well, I started out that way, until the things I was able to tolerate at first eventually started driving me crazy.

Everyone's "breaking point" is different.
[HTC Inspire 4G] MartyLK:
I'll give till the end of August and if the GB update doesn't materialize from AT&T, it will from an XDA dev :D

The thing with my Inspire is, there's really nothing that is bothering me. The battery life is common among the phones I have except for my iPhone 4. The iPhone 4 is nothing short of spectacular for battery life. I sometimes go for days forgetting to put it in the charger overnight and when I do finally look at it, it still has about 80% battery life...lol

I can't do that with any of my other phones, the WP7 included. The battery life among them all seems to be very similar and familiar. I always put them on charge each night. I'm just used to it. I have 3 batteries for for my HD2 and when it goes low during a day, I switch it out. I have yet to remove the battery from my Inspire and won't because the door is too difficult to remove. I'm not saying I can't remove it, just that I don't want to mar it up by removing it. I just make sure I keep it charged. If I use the nav, I plug it into the car charger.

I rarely ever use my Focus these days. WP7 is just way too boring at this point to even bother with it. It's a super slick and clean OS and I love it, but my Inspire is so sweet I just don't want to run around without it. And I can't justify carrying more than 2 phones with me. I tend to leave the sim card in my Inspire and take it and my main phone, my iPhone 4, around with me. Whenever I mess around with a new ROM for my HD2, I usually pull the sim from my Inspire and use it in my HD2 until I get bored with it. Then I will put it back into my Inspire and love every moment of its 4G goodness. But my Inspire is used much more than any other phone I have.