yashsingh1/xdaforums huggingface dataset:
[myTouch 4G Q&A, Help & Troubleshooting] eliasadrian:
I haven't tested it on this phone, but on my G1 I would almost airways use edge and it would last almost 3 days, but if I left it alone it would barely last a day...I've been wanting to try, but I can't bring myself to hold the phone back, it seems so inhumane :)
[myTouch 4G Q&A, Help & Troubleshooting] pinguo777:
There's not really any difference because when you are on edge speed it takes much longer to download items and browse from one web page to the next. The ultimate result is that the batter is working just as hard if not harder when on edge speed.
[Nexus One Q&A, Help & Troubleshooting] sparkyryan:
Hi guys, anyone got any idea why the official facebook and twitter apps keep signing me out, out seems to be really random and I don't think it's rom related as it has happened with every version of cm7 I've used. Both are on my phone memory not sd as I figured this may be the issue, but that didn't cure it.

Tia. Ryan
[Nexus One Q&A, Help & Troubleshooting] drengur:
I get similar on my stock Desire HD with the twitter client (don't use facebook)

For me, it seems to be whenever there's patchy network coverage.
[Nexus One Q&A, Help & Troubleshooting] franchu29:
Enviado desde mi HTC Desire usando Tapatalk
[Nexus One Q&A, Help & Troubleshooting] 112arjan112:
i got smae problem i dont kno reboot maby?
[Nexus One Q&A, Help & Troubleshooting] ShirazSuleman:
Nevermind.
[Nexus One Q&A, Help & Troubleshooting] sparkyryan:
Still could do with some input on this.
[Nexus One Q&A, Help & Troubleshooting] sparkyryan:
Moved both apps to my phone memory and problem solved.
[Nexus One Q&A, Help & Troubleshooting] alka7a:
I've same problem, sparkyryan how to move to phone memory ?
[Nexus One Q&A, Help & Troubleshooting] sparkyryan:
Menu - settings - applications -manage applications.
[Android Software Development] greydarrah:
In Googles sample Notepad app (the final version using NotepadV3Solution), if you select Add Note (launching the NoteEdit activity), then just hit the back button, a blank line is then inserted into the Notepad activity, and it cannot be deleted. Does anyone know why? Below is the java code for this activity...

package com.android.demo.notepad3;

import android.app.Activity;

import android.database.Cursor;

import android.os.Bundle;

import android.view.View;

import android.widget.Button;

import android.widget.EditText;

public class NoteEdit extends Activity {

private EditText mTitleText;

private EditText mBodyText;

private Long mRowId;

private NotesDbAdapter mDbHelper;

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

mDbHelper = new NotesDbAdapter(this);

mDbHelper.open();

setContentView(R.layout.note_edit);

mTitleText = (EditText) findViewById(R.id.title);

mBodyText = (EditText) findViewById(R.id.body);

Button confirmButton = (Button) findViewById(R.id.confirm);

mRowId = savedInstanceState != null ? savedInstanceState.getLong(NotesDbAdapter.KEY_ROWID)

: null;

if (mRowId == null) {

Bundle extras = getIntent().getExtras();

mRowId = extras != null ? extras.getLong(NotesDbAdapter.KEY_ROWID)

: null;

}

populateFields();

confirmButton.setOnClickListener(new View.OnClickListener() {

public void onClick(View view) {

setResult(RESULT_OK);

finish();

}

});

}

private void populateFields() {

if (mRowId != null) {

Cursor note = mDbHelper.fetchNote(mRowId);

startManagingCursor(note);

mTitleText.setText(note.getString(

note.getColumnIndexOrThrow(NotesDbAdapter.KEY_TITLE)));

mBodyText.setText(note.getString(

note.getColumnIndexOrThrow(NotesDbAdapter.KEY_BODY)));

}

}

@Override

protected void onSaveInstanceState(Bundle outState) {

super.onSaveInstanceState(outState);

outState.putLong(NotesDbAdapter.KEY_ROWID, mRowId);

}

@Override

protected void onPause() {

super.onPause();

saveState();

}

@Override

protected void onResume() {

super.onResume();

populateFields();

}

private void saveState() {

String title = mTitleText.getText().toString();

String body = mBodyText.getText().toString();

if (mRowId == null) {

long id = mDbHelper.createNote(title, body);

if (id > 0) {

mRowId = id;

}

} else {

mDbHelper.updateNote(mRowId, title, body);

}

}

}
[Android Software Development] rigman:
When you hit the back button the onpause function is called which calls savestate. In savestate it doesn't check to see it fields title and body are blank. So it writes a record with blank or null values.

________________________________

http://ron-droid.blogspot.com
[Android Software Development] greydarrah:
I'm still trying to figure all this java out. Any chance you could tell me specifically what I need to add to fix it?
[Android Software Development] Syndacate:
Modify the saveState() function to check to see if the body or titles are empty.

You can do something like:

if (title.isEmpty() || body.isEmpty())
return;

Which will make the save state not needlessly update or add to the db if a field is blank. This disallows you to add blank notes though (ie. notes with only a title, no body). Though I'm OK with that. But the save-state is where you want to start, because that's what's happening.

And for the love of Christ please wrap your code in code tags (select the code, hit the # sign in the top menu bar).
[Android Software Development] rigman:
I'd do something like this;

private void saveState() {

String title = mTitleText.getText().toString();

String body = mBodyText.getText().toString();

If (title == null || title == "") return;

________________________________

http://ron-droid.blogspot.com
[Android Software Development] greydarrah:
I'm sorry for being such an idiot, but when I put:

If (title == null || title == "") return;

in saveState, I get red mark right after the closing paren (just before return;). If I hold my cursor over the red mark, it says syntax error, insert ";" to complete statement. Any idea why Eclipse doesn't like this?

Edit...A little more to the story:

The first error I got was this...

The method fi(boolean) is undefined fo rthe type NoteEdit

Quick fix: create method If(boolean)

So I did the quick fix. Now I'm thinking that I should add a ";" at the end if the if statement and put the return; in the new If(boolean) mentod. It would look like this:

private void saveState() {
String title = mTitleText.getText().toString();
String body = mBodyText.getText().toString();
If (title == null || title == "");

if (mRowId == null) {
long id = mDbHelper.createNote(title, body);
if (id > 0) {
mRowId = id;
}
} else {
mDbHelper.updateNote(mRowId, title, body);
}
}

private void If(boolean b) {
// TODO Auto-generated method stub
return;
}

Is that correct, or am I totally retarded?
[Android Software Development] greydarrah:
Well, I'm not sure what's going on in the code above, but it doesn't work...still inserts blank lines. I wish I knew more about what I'm doing.

If anyone can help me figure this out, I'm ONLY concerned with the note title (if it equals "", don't save the blank line). I don't care if the body has text in it or not.
[Android Software Development] Syndacate:
I'm sorry, I thought isEmpty() was a standard function of the String library in Java.

Aside from that, can I ask what your issue is with my solution?

If you don't want to check to see if the body is empty, don't. If you are only concerned with whether or not the title is empty, use Java's built in string functionality. So in your saveState function, put this after:

String title = mTitleText.getText().toString();
String body = mBodyText.getText().toString();

if (title.length() == 0) // if string length is 0
{
return;
}

What this will do, is if the title is empty (ie. == "") it will return from the saveState function, without updating or adding the note to the database. You CANNOT use the "==" operator, as that will run a comparison of the objects (to see if they're the same string instance), ie.:

String a = "hi";
String b = "hi";
if (a == b); // false
if (a.equals(b)); // true ([I]this calls the comparison operator on the strings, which is built into the String class[/I])
if (a == a); // true (they're the same object)

If you're checking to see if a string is empty, you can do:

if (a.equals("")) ... // checks if it's the equivalent of the empty string
OR
if (a.length() == 0) ... // Checks if size of string is 0

Either will work. Hopefully that clears it up for you, you can check if the String is empty, or you can see if it equals the empty string.

It sounds like you're new to programming in general, is this the case? Or are you just new to Android? If you are more accustomed to another language I can possibly (probably) give you better analogies from there...unless it's some weird language O.o :).
[Android Software Development] greydarrah:
Thanks so much. This worked perfectly. As to my programming, I'm a long time VB programmer (since VB 3), but brand new to java. In these early stages, I'm having issues getting my mind wrapped around it, but I'll get there.

I'm thankful to everyone that responded to this thread. This is how a forum should work.
[Android Software Development] tadzio:
That explains your syntax error problems above. Unlike VB, Java is case-sensitive, and you used an upper-case "If" instead of the correct lower-case "if". The compiler did not recognize this as a keyword and assumed you wanted to use a method called "If(boolean)" but forgot to define it.

So, change all capital letters in all keywords to lower case, and remove the auto-generated "If(boolean)" method again.

Cheers

tadzio
[Android Software Development] Syndacate:
Ah, I see. Haven't used VB in forever, barely remember it, haha. Glad it works for you, though.
[XPERIA X10 Q&A, Help & Troubleshooting] xsardax:
Heya. Since I haven't updated phone for quite some time now (I'm still at 2.0.49), so is it safe to upload to latest version, via SE PC Companion, to still have root access, for xrecovery, flashing etc.. That's question number one.

Question number two would be - if phone, x10i keeps random restarting, mostly while browsing websites via stock browser (usually, screen just "freezes" for few seconds (6-8 at most), and phone just reboots, showing that SE boot logo). If it's software related - would update, that I mentioned above fix that, if not... Phone is still under warranty (at least I hope :P ).
[XPERIA X10 Q&A, Help & Troubleshooting] Mister J:
Yes, Update definitely. That should fix your software related problems.
[XPERIA X10 Q&A, Help & Troubleshooting] xsardax:
And I'll still be able to root it, and flash ?
[XPERIA X10 Q&A, Help & Troubleshooting] lesath76:
yes you will still be able to root, just download latest flasher, plug your phone and root it, optimize, install xrec and many more
[HTC Aria General] iX_MANDO_Xi:
Hello, I just want to know how can I remove te quick office app that comes with the htc aria. Thanks.
[HTC Aria General] lsusparky621:
Try ADB pulling the apk
[Desire HD Q&A, Help & Troubleshooting] Howatron:
This will all probably sound extremely nooby but just want to make sure I dont do anything to break my new DHD!

I've previously had experience rooting and flashing ROMS on a Htc Hero and that seemed much simpler.

Basically what I want to know is, if I have a branded Orange DHD do i need to use a goldcard in order to flash ROMS like Android Revolution or is a gold card just if I want to a flash a HTC stock ROM? I've tried reading up on this but I'm still unsure...

And also, does rooting and flashing Roms and Radios affect the sim card at all or does it just affect the device itself?
[Desire HD Q&A, Help & Troubleshooting] Andy:
Your similar card is fine no matter what you do, unless you try and bend it!

The process of flashing ROMs is exactly the same as the HTC Hero, my old phone, however some processes need to be run before you can flash.

If you have a branded Orange handset and firmware 1.72/1.84 you will need to downgrade to 1.32 before you can root and start these processes, ENG S-OFF & Radio S-OFF (Optional).

I will link an excellent guide that has all the info you need.
[Desire HD Q&A, Help & Troubleshooting] Andy:
Here are the excellent guides

Downgrading --> [GUIDE] How to downgrade 1.7x/1.8x/2.x to 1.32.405.6 - Includes goldcard creation.

ENG S-OFF --> [TOOL] One click ENG S-OFF

Radio S-OFF --> [TOOL][VIDEO] One click Radio S-OFF, SimUnlock (Easy Root & S-OFF Guide)

Guides by jkoljo

Once you have done everything, simply install ROM Manager from the market, flash Recovery from within there, Download your chosen ROM, flash from Recovery.

One point to note,

If you intend to flash a 2.2 (Froyo) ROM use a 2.x.x.x Recovery

If you intend to flash a 2.3 (Gingerbread) ROM use 3.x.x.x
[Desire HD Q&A, Help & Troubleshooting] Howatron:
thanks a lot, sorry to be a pain but the thing I'm really unclear about is if my DHD is Orange branded, but my firmware is 1.40.61.2 do i still need to downgrade to 1.32?
[Desire HD Q&A, Help & Troubleshooting] Andy:
I don't know to be honest. Try running Visionary+ and see if you can root. If you can, then you don't need to downgrade.
[Desire HD Q&A, Help & Troubleshooting] Flussen:
Your firmware seems.to be rootable ;)

Tapatalked with Tapatalk from my Desire HD using Tapatalk.
[Desire HD Q&A, Help & Troubleshooting] jkoljo:
And I can confirm it, no need to downgrade :)
[Desire HD Q&A, Help & Troubleshooting] dayze0:
good info

well - just got myself a DHD today - should be with me soon !!! Nice !!!,

Thanks for the little Q & A on this matter, really helpful, As of yet I dont know what is on the phone - but Ill study the guides and see how I go. Ive previously toyed with last 2 HTC's ( Orbit & Polaris/Orbit 2 ) - that was fairly easy - but was a while ago so Im a little out of touch with these matters.

LoL - ill probabbly be back soon firing questions at you guys for help and guidance

Any guides for the pure DHD noob ??, explanation of phrases ect , As im a total virgin to the Android world
[Desire HD Q&A, Help & Troubleshooting] I'm TheQuest:
Hi dayze0

You should find most of the link you should need here:-

DHD Development Sticky Roll-Up Thread

Take Care

TheQuest :cool:
[Desire HD Q&A, Help & Troubleshooting] motearviv:
thhx :D:D:D:D
[HD2 Android NAND Development] 1chris89:
I just wanted help creating optimized nand partitions so i can have more storage space and setting cache smaller or removing it all together. How do I go about creating custom sizes and how to do it using Android SDK, and the AVD etc...

Thanks

BTW - I will

NOT

be using the sd card for any storage

EXCEPT

DCIM (Camera Save Folder). I want only 2 folders on my SD card. My personal created "Multimedia" folder and "DCIM". I don't want all the other worthless crap automatically being written to the sd card. I want the maximum amount of nand for my apps. I will be storing all my apps and games on the nand. I also want to make sure my 3d performance is good as well. If the nand cache size has to do with performance.

I want an ideal size for system partition for maximum space efficiency. I want the largest possible data partition for my apps. I then want to make the cache about 30-40MB. Just big enough to avoid Market app issues. Or as much cache as you guy's think the device needs.

WHAT ARE THE FACTORY NAND PARTITION SIZES FOR THE USA 1024MB HTC HD2?
[myTouch 4G Q&A, Help & Troubleshooting] xXy3kXx:
just moved the wife to cm7 from stock and she cant take pix with the front facing camera with the camera app for cm7 i need camera app that will let her use the front facing camers and cm7
[myTouch 4G Q&A, Help & Troubleshooting] Tazzaras:
The stock CM Camera app allows you to switch cameras on there so you shouldn't need any other apps
[myTouch 4G Q&A, Help & Troubleshooting] camalus:
Ffc works fine on CM7.
[myTouch 4G Q&A, Help & Troubleshooting] camalus:
Oh yea... thanks for the PM you sent me a while back.
[myTouch 4G Q&A, Help & Troubleshooting] xXy3kXx:
Yea I'm frigging moron....
[myTouch 4G Q&A, Help & Troubleshooting] colbyrainey:
What was your issue?
[myTouch 4G Q&A, Help & Troubleshooting] camalus:
He had it set to back camera.... not front.
[myTouch 4G Q&A, Help & Troubleshooting] colbyrainey:
The icons were a bit confusing without labels at first...
[myTouch 4G Q&A, Help & Troubleshooting] athakur999:
The icon is definitely confusing. A picture with some mountains on it pretty much universally means "landscape mode" in the camera world. It's not really obvious that this is the button to switch from back to front camera.

The icon in the stock camera app was far more intuitive.
[myTouch 4G Q&A, Help & Troubleshooting] erakat1:
They are a little confusing...I wonder why they chose it like that. Anyway, CM7 all the way baby!!
[Defy General] ljpeddy:
Hey everybody,

i habe give an update to my defy with this manual.

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

Everything is(was) fine... in germany!

Now i´m in Shanghai und with a new Sim card i couldn´t go in the internet...

so i wanted to try a new version.

this one:

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

First i wanted to make a backup, but wiped(factory reset) it! :(

now i have a naked android with blur... but i can´t create a motoblur account!

and i also can´t bring a new sbf file on the defy!

What can i do?

regards and thanks,

Patrick
[Defy General] zencoran:
i dont really understand the part of putting the sbf, but if you wanna flash a different sbf, turn off the defy, then hold volume up and power to go into bootloader i think its called? then connect your phone to comp and flash a different sbf with rsdlite.
[Defy General] ABC_Universal:
Do you mean rsdlite can't detect your phone or you have other problems flashing sbf?
[Defy General] ljpeddy:
RDS Lite will find te Defy, wenn choose a sbf file and press start. There comes this massage:

Failed flashing process. Unable to retrieve initialization values from ini file(0x7029)

I tryed following files:

-korefinalfix.sbf

-002_DEBLUR_SIGN_SIGNED_UCAJRDNEMARAB1B80AA03A.0R_PDS03C_USAJRDNFRYORTCEE_P011_A010_HWp3_Service1FF.sbf

-3.4.3_11-Stock.UKTmobile_BLUR.sbf

thanks for your help!
[Defy General] antony.ps:
The internet does not function because you didn't configure your APN (from your provider) in settings.

If rdslite can't find your defy or give this error, uninstall all your motorola drivers, rds lite, all motorola crap, ccleaner and clean all temporary files and registry, reboot, install drivers and rds lite, reboot, then try again.

If the SBF you tried doesn't function, try other SBF's. 3.4.3-11 and 3.4.2-155-02 are the ones that always work for me.
[Defy General] ljpeddy:
thanks antony.ps,

for information about apn... i never heard before, and never need it before...

clean up my computer and reinstall rds lite, but i get always this error massage...

any other ideas? THANKS!
[Defy General] ljpeddy:
coooooooooooooooll.... i got it!!!!!!!!!!!! wrong version of RDS lite!!!! now, with version 4.9 everthing is fine!!!!!!!!!!! :))))))))))))))))))))
[General Questions and Answers] mohitsapru:
Hi Guys,

I am planning to move to android phone and have zeroed on to some phones, i would love to hear your suggestion on these phones and which one should I prefer.

I would like to have a near future proof version both in h/w and update capability spec...(I am a HTC fan :o but willing to move to other manufacturer)

Ur suggestion are warmly welcome.

1. HTC Incredible S

2. Samsung Nexus S

3. HTC Desire S

4. HTC Desire Z
[General Questions and Answers] bagongs:
My Choice

All of them look awesome devices, but if I were you I would discard the HTC Desires and the Incredible: as to my know, none of them has a camera zoom, and, since I want my mobile to be a portable camera, this would be a huge problem for me. Therefore, the Desire Z's HSDPA and HSUPA speed are pretty low. The Incredible has a 8 megapixel camera, that, in my opinion, you can't completely exploit since you don't have a zoom.

So, my choice is Samsung Nexus S, it runs Android 2.3 (that looks awesome) has a very good camera and connection speed, and, last but not least, a huge amount of internal memory, that is pretty useful to store many applications. In this way, you could also avoid to partition your SD card (as I had to) in order to have space for big apps.
[General Questions and Answers] mohitsapru:
Thanks a lot for providing the information on each set. My brother bought Nexus S, an awesome device but again it does not have a camera zoom!! which i think you missed that :). and found some issues in its GPS, was comparing it with an Iphone4. I have researched more and planning for Desire S(not yet reached the retailers here in India), as it is almost simmilar to Incredible except the camera and it Desire S has Android2.3

What do you people suggest about DesireHD?

Thanks again bagongs for you time :)
[General Questions and Answers] Logiic:
I personally love my Incredible but it's definitely a matter of personal opinion and research. If picture taking (especially the zoom feature) is really important to you, I may not choose the Incredible.

If you plan on rooting and messing with custom ROMs, I have loved my Incredible for this purpose. The touch screen is very responsive and I've never had problems with my GPS. A problem that I have had however is with battery life.

The Samsung has excellent battery life and a much more vibrant screen, so if this is an important factor you may consider the Samsung.

Unfortunately I am not very familiar with the Desire line of Android phones. I've never been disappointed with any HTC phone that I've owned though. Just do your research and if you get a chance, try and play around with a couple of them if you have a retailer that carries them. You can also look up some videos of how they perform on YouTube and cnet as well as read some more customer reviews on each.
[General Questions and Answers] mohitsapru:
Thanks guys for your suggestions and now I am a proud owner of a desire S :) loving it....
[myTouch 3G, Magic General] neonshad0w:
MODS PLEASE REMOVE...THANK YOU

Hello,

I have read many of the guides here on XDA, but I am still confused.

Which method, preferably the easiest, can I use to root my T-Mobile MyTouch 3G 3.5mm jack version, which has been updated to 2.2.1 officially? Thanks for your help. Here is the information from the phone:

SAPPHIRE PVT 32A SHIP S-ON G

HBOOT-1.33.0013 (SAPP31000)

CPLD-13

RADIO-2.22.28.25

Oct 21 2009
[myTouch 3G, Magic General] ac3ofspad3z:
So, which did you use?

I was able to temp root before with z4root, but that doesn't work anymore...so, looking now for easy perm root but I haven't found a guide that is for our phone...can anyone help guide me? Thanks!
[myTouch 3G, Magic General] cellsafemode:
make a gold card, follow the guides. It's not hard really. Just remember that it can take 15-20 minutes to boot. So dont consider the phone locked and try to pull the battery or anything unless you've waited 30 minutes.
[G Tablet Q&A, Help & Troubleshooting] Russm:
So I was trying to change the logged in user inthe Skype app today. Could not find an option so I decided to remove it and reinstall so I could enter new login info.

Uninstalled without incident. Installing the app again it gives me theerror: "Insufficient Storage Available"

I've Seen threads with this same problem for other devices here in xda, but I am not familair enough with this device on whatto do here.

Running TNT Lite 4.4.0

Thanks:)

eta: format and reflash is always an option. dont have anything terribly important on it.
[G Tablet Q&A, Help & Troubleshooting] thebadfrog:
did you repartition your sdcard to anything other than 2048 and 0?
[G Tablet Q&A, Help & Troubleshooting] Russm:
No. All is set up exactly as it is in the guide thread.

I went ahead and wiped it clean and put a new ROM on.

Going to see how I like Vegan. :)
[HTC Inspire 4G] pavaccar:
Pretty basic question im getting this phone from captivate but I just was wondering on this? Kinda a noob question but im a noob on this stuff
[HTC Inspire 4G] klquicksall:
Well the inspire is hsdpa+ not lte. So its more like 3.5 g. When lte phones come out you will need a 4g sim card.
[HTC Inspire 4G] mattmiller:
No a 4g card is a marketing bullish*t way of making a quick buck. Your standard sim will work for 4g once backhaul takes place