yashsingh1/xdaforums huggingface dataset:
[Galaxy S 4 Q&A, Help & Troubleshooting] aerce:
Hi there,

How do I move games to sd card? Tried to Need for speed which is over 1GB inn size. But when I pressed move to sd card, only few mb were moved. Can someone explain to me, how to do it properly.

Edit: it is not only Need for speed who do not want to move, but other games too.
[Galaxy S 4 Q&A, Help & Troubleshooting] Sammath:
That's because it only moves the app itself to the external sd card, not the data of the game.

For moving those files I'd recommend using foldermount. It does require root tho.

If you are already rooted however, you can find it at the playstore.
[Galaxy S 4 Q&A, Help & Troubleshooting] aerce:
But how do I know where the data of the is located?
[Galaxy S 4 Q&A, Help & Troubleshooting] Sammath:
Most of the times it's either located at /storage/sdcard0/android/obb or at /storage/sdcard0/android/data.

You can use any file Explorer to look where the files are located. :)
[Galaxy S 4 Q&A, Help & Troubleshooting] DevilzGtr:
This app called 'My Device Storage Analyzer' helps nicely in finding where big files and data directories are hidden :good:
[Java for Android App Development] DChar21:
This is I'm guessing a beginner problem but here i go. I have a text game I've been toying around with in c# using the console to output the text of the game. Recently i got an android tablet and downloaded AIDE to see if I could make something similar since Java and C# are similar. So far I've gotten four buttons and made a simple app that outputs a different line of text per button press. What im now having trouble with is using a loop similar to the ones I use in the C# game. I'm trying to avoid creating a different activity for every screen if possible. Its probably easier just to show the code im using. When ran the buttons dont show and it just stalls. Any help would be greatly appreciated.

public class MainActivity extends Activity

{

int choice;

/** Called when the activity is first created. */

[MENTION=439709]override[/MENTION]

public void onCreate(Bundle savedInstanceState)

{

super.onCreate(savedInstanceState);

setContentView(R.layout.main);

Buttons();

Gameloop(choice);

//	super.finish();

}

public void Buttons()

{

Button bt1 = (Button) findViewById(R.id.b1);

Button bt2 = (Button) findViewById(R.id.b2);

Button bt3 = (Button) findViewById(R.id.b3);

Button bt4 = (Button) findViewById(R.id.b4);

bt1.setOnClickListener(new View.OnClickListener(){

public void onClick(View v){

choice = 1;

}

});

bt2.setOnClickListener(new View.OnClickListener(){

public void onClick(View v){

choice = 2;

}

});

bt3.setOnClickListener(new View.OnClickListener(){

public void onClick(View v){

choice = 3;

}

});

bt4.setOnClickListener(new View.OnClickListener(){

public void onClick(View v){

choice = 4;

}

});}

public void Gameloop(int choice)

{

boolean Game = true;

boolean game = true;

TextView gameV = (TextView) findViewById(R.id.game);

gameV.setText("Loop Test");

do

{

do

{

if (choice == 1)

{

gameV.setText("You've Pressed Button 1 Loop 2");

gameV.setTextSize(35);

}

if (choice == 2)

{

gameV.setText("You've Pressed Button 2 Loop 2");

gameV.setTextSize(25);

}

if (choice == 3)

{

gameV.setText("You've Pressed Button 3 Loop 2");

gameV.setTextSize(45);

}

if (choice == 4)

{

game = false;

}

}

while (game == true);

if (choice == 1)

{

gameV.setText("You've Pressed Button 1 Loop 1");

gameV.setTextSize(35);

}

if (choice == 2)

{

gameV.setText("You've Pressed Button 2 Loop 1");

gameV.setTextSize(25);

}

if (choice == 3)

{

gameV.setText("You've Pressed Button 3 Loop 1");

gameV.setTextSize(45);

}

if (choice == 4)

{

Game = false;

}

}

while (Game == true);

}
[Java for Android App Development] out of ideas:
put your code in [.code] brackets so its easier for us to read.

i dont know c#, but java would be more if/else statements, not endless ifs.

and where you have the (onclick, choice=3) sections, take that out and do yous set texts inside each different button click.

and you do have an xml with the buttons layout right?
[Java for Android App Development] SimplicityApks:
You cannot have a loop method like that in Android. It would block the UI Thread and then it wouldn't register a ButtonClick. Android already has a Looper! If you really need to do it like that you can create a second Thread.

But I would just put your .setText(...) in the onClickListeners!
[Java for Android App Development] nikwen:
If you have already developed it for C#, why do you not programm it for Android in C#, too?

Have a look at this post: [GUIDE]C# for Android----for Starters----UPDATED

And this forum with more guides related to the C languages (including C#): http://xdaforums.com/forumdisplay.php?f=2198

Btw, please put your code in

tags for better readability. ;)
[Java for Android App Development] DChar21:
Thanks for the replies. My first attempt at using Android was to simply have each of the four button presses return a line of text in the textview. Such as i press button one and the textview shows "Youve pressed button one". I was trying to attempt something similar but with loops. I do have an xml for the layout, my first attempt was within each onclick method for each button had a single textview setText. Here's the code with the loops.

public class MainActivity extends Activity
{
int choice;
/** Called when the activity is first created. */
[MENTION=439709]override[/MENTION]
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
Buttons();
Gameloop(choice);
//	super.finish();
}
public void Buttons()
{
Button bt1 = (Button) findViewById(R.id.b1);
Button bt2 = (Button) findViewById(R.id.b2);
Button bt3 = (Button) findViewById(R.id.b3);
Button bt4 = (Button) findViewById(R.id.b4);

bt1.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
choice = 1;
}
});
bt2.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
choice = 2;
}
});
bt3.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
choice = 3;
}
});
bt4.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
choice = 4;
}
});}

public void Gameloop(int choice)
{
boolean Game = true;
boolean game = true;
TextView gameV = (TextView) findViewById(R.id.game);
gameV.setText("Loop Test");
do
{
do
{
if (choice == 1)
{
gameV.setText("You've Pressed Button 1 Loop 2");
gameV.setTextSize(35);
}
if (choice == 2)
{
gameV.setText("You've Pressed Button 2 Loop 2");
gameV.setTextSize(25);
}
if (choice == 3)
{
gameV.setText("You've Pressed Button 3 Loop 2");
gameV.setTextSize(45);
}
if (choice == 4)
{
game = false;
}
}
while (game == true);

if (choice == 1)
{
gameV.setText("You've Pressed Button 1 Loop 1");
gameV.setTextSize(35);

}
if (choice == 2)
{
gameV.setText("You've Pressed Button 2 Loop 1");
gameV.setTextSize(25);
}
if (choice == 3)
{
gameV.setText("You've Pressed Button 3 Loop 1");
gameV.setTextSize(45);
}
if (choice == 4)
{
Game = false;
}
}
while (Game == true);
}
[Java for Android App Development] xcesco89:
i think you can simplify your code in this way, and should work:

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class MainActivity extends Activity implements OnClickListener {

private Button bt1, bt2, bt3, bt4;
private TextView gameV;
private int choice;
private boolean game;

[MENTION=439709]override[/MENTION]
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

gameV = (TextView) findViewById(R.id.game);

bt1 = (Button) findViewById(R.id.b1);
bt2 = (Button) findViewById(R.id.b2);
bt3 = (Button) findViewById(R.id.b3);
bt4 = (Button) findViewById(R.id.b4);

bt1.setOnClickListener(this);
bt2.setOnClickListener(this);
bt3.setOnClickListener(this);
bt4.setOnClickListener(this);
}

[MENTION=439709]override[/MENTION]
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}

[MENTION=439709]override[/MENTION]
public void onClick(View v) {
// TODO Auto-generated method stub
switch (v.getId()) {
case R.id.b1:
choice = 1;
//do something else on b1 click
gameV.setText("You've Pressed Button 1 Loop 2");
gameV.setTextSize(35);
//if needed add conditional statements or what you want
break;
case R.id.b2:
choice = 2;
gameV.setText("You've Pressed Button 2 Loop 2");
gameV.setTextSize(25);
//other code here
break;
case R.id.b3:
choice = 3;
gameV.setText("You've Pressed Button 3 Loop 2");
gameV.setTextSize(45);
//something else here
break;
case R.id.b4:
choice = 4;
game = false;
//do stuff
break;
}
}
}

hope it helps with your app ;):good:
[Java for Android App Development] hiphop12ism:
I have not been that patient to read your code with full patient. But I think, when you call gameLoop(choice) in onCreate. that value of choice has not been initialized. And when you declare your variables inside the Listeners. The compiler wont loop or go back to the onCreate method. So basically you should call gameLoop() inside your listener method.

Example:

bt2.setOnClickListener(new View.OnClickListener(){
public void onClick(View v){
choice = 2;
Gameloop(choice);
}
});

This code can be made a little more precisely. You can use inner classes and switches... instead of using a buch of if-elses.

Again, I have not been patient enough, to go through the complete code. I may have been mistaken..

{ Hope it helps !:cowboy: }
[ZTE Grand X V970] WhiteShadow22:
I installed a custom ROM, did factory reset and now the phone enters on CMW for about 3 secs ( appears android icon and loading ) and reboots... :crying::crying:

Is there a way to fix this???
[ZTE Grand X V970] Ri3v|:
You can just reinstall the Rom and wipe cache/dalvik/factory reset

Sent from my HTC Bliss/Rhyme.press thanks please
[ZTE Grand X V970] WhiteShadow22:
Manage to fix it buy flashing chinese rom with SP Flash Tool :good: :victory:

thx for advice
[ZTE Grand X V970] Ri3v|:
welcome:)

Sent from my HTC Bliss/Rhyme
[ZTE Grand X V970] huytran812:
I'm having the same problem as you w/ my v970! Can you pls help me to solve this! Where can I download the Chinese stock ROM from ZTE? Thank you very much!
[ZTE Grand X V970] conectoras:
I am having the same problem but with the difference

that the phone is not recognised by windows so I can not use the sp flash tool..

OR CAN I ?

What can I do?
[LG Optimus G Pro] cxyjordan:
I searched on amazon and there doesn't seem to be a lot of choices. So I am wondering what you guys are using for the ATT version E980. :confused:
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] deviouskind:
Hey could someone help me diagnose whats going on with my Galaxy Tab 10.1?

I haven't used it in a few days. I knew it was dead. So I went to charge it. It turned on

and the screen is showing crazy ****ed up lines and flickering. I cannot get to recovery or download mode.

My wife says its this "Carbon Rom" that I installed. I say bull****. If it was, I would be able to at least see recovery mode.

To me it seems the video card or screen, whatever produced the picture got screwed up. Please take a look at the pic and let me know what you think. Can this be fixed? Whats the cost? Is this something I can fix or do I need to go to a repair shop?

Is there a warranty on these things? Its a year old. If I send it to Samsung, will they be able to tell a custom rom was flashed which will void the warranty? Im guessing so... Someone please help :( im sad :(

The picture is attached.

Thanks for any help. Appreciated
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] deviouskind:
Its been sitting for 5 minutes now and I went to turn on and it shows a White screen now.

This seems like definite damage. The only things I could think it would be is last Saturday I was sitting by the pool reading

and I cover it back up with my flip case, had it sitting on the chair while I was swimming. It was fine after that though.

Last time I used it, it was Tuesday and it was fine. The only other thing is if my daughter got a hold of it... But there's no way to tell

either way if these were the cause. Any thoughts?
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] DefQoN_BE:
I remember someone posting a topic with the same issue like a yezr zgo or so, i can't find this topic anymore, the problem was with the screen or the cable of your screen, i think he had to replace his LCD screen
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] WildfireDEV:
Seems in my opinion that you have a screen fault. Maybe it was caused by you without your knowledge or it is a manufacturing defect. It us really hard to say but a screen replacement should fix the problem.
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] deviouskind:
Thank you for your reply.

So you think its the screen, same here. But im doing some you tubing and see that the screen is pretty much just a piece of clear cover that

goes over the lcd screen. I will need a new lcd screen, correct? Is it worth taking apart and checking the cables?

Theres no cracks or damage to the physical screen so it has to be internal.

If anyone can find a link, please let me know. Thanks for your help!

What do you think it would cost to fix at a repair shop? and / or samsung vs. joe blows repair shop?
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] deviouskind:
Screen replacement or LCD replacement? The screen has no physical or visible cracks/damage.

Thanks for your reply!
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] WildfireDEV:
Maybe it something from the inside so there will be no visible damage.
[Galaxy Tab 10.1 Q&A, Help & Troubleshooting] DefQoN_BE:
Lcd replacement
[Nook Color Q&A, Help & Troubleshooting] keanex:
I have a Nook Color, obviously, and I want to make it a stock Android tablet. Can someone please show me the steps to do this? There's a lot of stuff going on here and it's hard to know as a noobie.

Edit: I have 1.4.3 software version.
[Nook Color Q&A, Help & Troubleshooting] webyrd:
http://xdaforums.com/showthread.php?t=1030227
[Android Q&A, Help & Troubleshooting] flyin9monkie:
Are there any difference between an AT&T HTC One and an unlocked HTC One (bought directly from the HTC website)? Also the HTC One Google Play edition, what's the differences?

I have never used an android phone before so this will be my first one. If there are differences, which one would be "better" (for a noob like me)?

Thanks
[Android Q&A, Help & Troubleshooting] Trozzul:
The regular HTC one (in your case AT&T the one from the htc website has a unlocked bootloader to be able to flash custom roms and root easier) Comes with not a normal android ui but HTC's own little thing Called sense. most of htc devices have sense the HTC one has the highest version of sense right now most company's have their own custom android ui. samsungs touchwiz, and motorola motoblur. the HTC one you buy from carrier does not have a unlocked bootloader. the google play editon comes with a unlocked bootloader , but does not come with Sense. it is a pure android jelly bean Stock ui which i prefer most, i would say the google play editions is more for developers or people who want to root it and flash custom roms but the normal everyday person can still use it :)
[Android Q&A, Help & Troubleshooting] zelendel:
It is not pure jelly bean. It still contains HTC frameworks that over write the stock Android ones.

Wayne Tech Nexus
[Android Q&A, Help & Troubleshooting] Trozzul:
Really? I did not know that thanks for correcting me!
[Android Q&A, Help & Troubleshooting] zelendel:
Yup thats how they got the camera to work so well for being a 4mp camera. Without HTC closed drivers and such it would never be more then a 4mp camera. The Samsung has it as well.
[General Questions and Answers] popoyaya:
Anyone know if there's any custom roms for this stick? Seems a pretty cheap and powerful dual core, but sadly not much development.
[General Questions and Answers] Daniel120201:
Hej,

I'd try to check this rom out: http://www.slatedroid.com/topic/762...or-various-zenithink-amlogic-8726-mx-devices/

It has got the same CPU so maybe it will work.
[Nexus 4 Q&A, Help & Troubleshooting] gabriel31012:
hey can anyone help me by telling me and possibly provide links to ROMs that have themes pre-installed with them? thanks
[Nexus 4 Q&A, Help & Troubleshooting] truth1675:
themed roma

Here are some

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

http://xdaforums.com/showthread.php?t=2145269 this is the one I'm running and its pretty stable based on cm good bat life

Also there are a couple of miui ports around
[Nexus 4 Q&A, Help & Troubleshooting] gabriel31012:
thanks really good stuff. :D
[Sprint Samsung Galaxy Note II] weijoin:
hello,everyone. I bought L900 from ebay,then when i got it, i began to change it,i use the i605's sim chip to take place the default,then i began to use note2 tool kit to flash the insecure stock lj1 to the phone,then the recovery,and i use the recovery to flash the ljc moden and an avkp8's rom,now I use dfs to set the ruim config to ruim only and the set the data pap an ppp account,last change the mobile ip.then reboot the phone (I have successfully change the five l900s to adjust our country's mobile network,this time i do the same job) but i found it could recognize the gsm and wcdma‘s network, i counldn't see the cdma's signal only when i insert the cdma uim card,the signal display like a circle and rod.but in phone's info i found the esn and sid prl could be read out( i have set the network automatic),just like sth prevent it to connect the mobile network.

then I use the root66's stock alj1's rom to restore the phone use ##786#, then i use cdmaworkshop to write cdma parameter to the phone,still no cdma network, the signal display like before, I have check the TOP Q&A,and sb no network connection’s way they always say stock rom restore,but it doesn't work,what can i do now?:crying::crying::crying::crying:
[Sprint Samsung Galaxy Note II] reinaldistic:
1. this is illegal and cannot be discussed on xda.

2. why dont you just buy i605s in eBay instead of a phone that isn't designed for international use nor sim card use
[Sprint Samsung Galaxy Note II] weijoin:
l900 cheaper than i605 but configuration is same.so the reason is very simply.
[Sprint Samsung Galaxy Note II] weijoin:
may i ask how can i reset all NV item. and why i see sb say change the meid and phone lock?
[Sprint Samsung Galaxy Note II] billard412:
No promises on whether or not it'll work for your situation but you can try ##72786# in the dialer. And this isnt illegal. And I'm pretty sure sewing as how there are guides here showing u how to do this that its allowed to be discussed
[Sprint Samsung Galaxy Note II] chuko303:
Unlocking bootloader (rooting phones) is actually illegal. Since last year. So we all kinda "broke the law" by unlocking our device's. Read itt on flipboard last year. I dont know if it still applies
[Sprint Samsung Galaxy Note II] patrao_n:
I have read nothing saying rooting saw illegal. Only unlocking. Unlocking being carrier unlocking.
[Sprint Samsung Galaxy Note II] weijoin:
hi,I don't want to talk about how to hack the phone,I just want my phone normal using. so i really want to know how to recovery the nv item ,i just want the network connection come back when i use cdma frequence （800-900 mhz）. And why the mobile network gone,even if i write back the first parameter.
[MDA III, XDA III, PDA2k, 9090 General] Wiz:
On your PDA go to activesync and uncheck "use mobile schedule" ... that may be the culprate, automatically trying to find your PC via your GPRS connection.
[MDA III, XDA III, PDA2k, 9090 General] h4x0r:
Thanks Wiz! Seems to be working... Let's see if it carries on. And how about a freeware for measuring GPRS traffic?
[General Questions and Answers] eharada:
no way... this phone is... craaaaap
[Nexus 7 Q&A, Help & Troubleshooting] Fidyyuan:
I've noticed that when I have my Nexus 7 in portrait mode, it uses the top mic to pick up sound. When I have my Nexus 7 in landscape mode, it uses the side mic. The problem is that when I have my tablet propped up in landscape mode for a chat, it's almost always covered by the case. Is there any way to set it to pick up from both mics?
[Nexus 7 Q&A, Help & Troubleshooting] graydiggy:
I believe it uses only one mic all the time to pick up sound. The other mic is for background noise reduction.
[Nexus 7 Q&A, Help & Troubleshooting] Fidyyuan:
The strange thing is that it changes the primary mic depending in the orientation. Is there a way to change that?
[Nexus 7 Q&A, Help & Troubleshooting] chismay:
i believe you and above poster are right.

from what i know it uses one mic for recording and one for noise cancellation,. then above switching orientation it switches what each mic is used for . to cancel the switch however i do not know.
[8.9" Kindle Fire HD Q&A, Help & Troubleshooting] Brandonrz:
Uggg.... I just want cm10.1 but I have no idea on how to install 2nd bootloader and twrp without bricking :( Has anyone installed twrp and 2nd bootloader successfully on 8.4.3 I know the methods, but they don't work on 8.4.3... But everyone who tries on 8.4.3 bricks. I need help!:mad:

Sent from my Kindle Fire 8.9 HD via T-T Hd
[8.9" Kindle Fire HD Q&A, Help & Troubleshooting] Brandonrz:
Bump

Sent from my Kindle Fire 8.9 HD via T-T Hd
[8.9" Kindle Fire HD Q&A, Help & Troubleshooting] pitcrawler:
I can confirm for sure that it does work.

A little background first: I got my Kindle Fire HD recently and it was on version 8.4.1. I managed to root it fine using the Bin4ry root v30 method (Recent guide - http://xdaforums.com/showthread.php?t=2337634)

I was then updated to 8.4.3 via an OTA update, so I had to root again using the same Bin4ry v30 method.

After that I waited and read the forums daily to see if anyone had managed to successfully install the second bootloader and TWRP on 8.4.3. Eventually I saw a post from the user: GenghisKhan67 kind of mentioning that he'd done it, but without much further detail. Soon after that I worked up the courage to try it myself. Then came the easy part...

I simply followed hashcode's original thread (http://xdaforums.com/showthread.php?t=2128175 ) WORD FOR WORD, including the essential step 4.5. Along the way I made sure every file I downloaded had the correct md5 checksum (I just downloaded some md5 checker I found on Google). And I had previously backed up my Kindle's stock rom using KFFirstAide, but essentially it was the same process as in step one of hashcode's tutorial.

Basically, it worked as it was supposed to without any issues. I successfully got the blue logo. I had the cm 10.1 rom downloaded as a zip file onto my kindle, I booted into TWRP by holding the power and volume up buttons while the kindle was booting. I did all the required wiping via TWRP. Then in TWRP, I clicked the install button, selected the cm 10.1 zip file that was already on my kindle and it installed just fine. I rebooted into the custom rom.

After a short time though, I found that the custom rom had a few bugs and didn't work with every app. (Some games didn't work. Camera didn't work.) so I restored my original stock rom via KFFirstAide using the backup I had already made on there.

I did run into a slight problem when restoring my original rom though. The Kindle was no longer recognized as an adb device on my laptop. To fix that I simply uninstalled and reinstalled the official Kindle Fire adb driver and it worked fine.
[8.9" Kindle Fire HD Q&A, Help & Troubleshooting] Brandonrz:
Lol that bin4ry root. Was my thread, I will install 2nd bootloader as soon as cm10.1 is stable.

Sent from my Kindle Fire 8.9 HD via T-T Hd
[8.9" Kindle Fire HD Q&A, Help & Troubleshooting] pitcrawler:
And it's a handy guide as well. :) Hopefully it'll help others.
[8.9" Kindle Fire HD Q&A, Help & Troubleshooting] Brandonrz:
Ty. But I take no credit. :))))

Sent from my Kindle Fire 8.9 HD via T-T Hd