yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] Seabottom:
Ok, so now I know how the code should be, but there's just one more thing.

How in the world can anyone program a user interface with text only??? This program is certainly not easy to use, I don't even know where to put the code with all of those different folders.

Do I even need all of those commands/folders? I tried deleting all that stuff and putting in the code but I got lots of errors obviously.

So if you would please tell me:

- Where to put the code

- How to make an interface like this one with radio buttons or something, a switch might be easier

I don't want anything fancy, just a super basic app

I suppose the code would look like this:

package selecm.wwf; //your package name

import android.net.wifi.WifiManager;
import android.os.Bundle;
import android.app.Activity;
import android.content.Context;
import android.view.Menu;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {
WifiManager wm;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

public class ScreenReceiver extends BroadcastReceiver {

// THANKS JASON
public static boolean wasScreenOn = true;

@Override
public void onReceive(Context context, Intent intent) {
if (intent.getAction().equals(Intent.ACTION_SCREEN_OFF)) {
wm.setWifiEnabled(false)
wasScreenOn = false;
} else if (intent.getAction().equals(Intent.ACTION_SCREEN_ON)) {
wm.setWifiEnabled(true)
wasScreenOn = true;
}
}

}

And then make these in the manifest.xml file:

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>

Am I right?
[Java for Android App Development] zalez:
Your user interface is located in the "res/layout" folder. It is most likely called activity_main.xml.

Also, I would recommend keeping your BroadcastReceiver separate from your activity. It makes things cleaner to debug and easier to build on.
[Java for Android App Development] zalez:
After doing some playing and spending more time on this then I planned, using a service does not work reliable with the broadcast receiver. I am not sure how logical google was with the thought process of requiring some intents that can only be registered in code. With that limitation, your activity would need to be running to receive the intent from the screen being turned off or on.
[Asus Transformer TF700] jonny727272:
I have dual booted my tf700 like many have but no longer needed Ubuntu and tried to flash CM. I went to boot into recovery but my device froze. I attempted again and used different methods but nothing seems to work.

I first tried to go into clockwork recovery and the. TWRP but neither worked.

I'm hoping someone can give some insight or knows the root of my problem.

Thanks!
[Asus Transformer TF700] jonny727272:
Bump
[Asus Transformer TF700] _that:
Your description is much too unspecific to know the root of your problem, but you can always install a recovery using fastboot.
[Galaxy Note 3 Q&A, Help & Troubleshooting] darkhunter25:
What's the default color of the LED indicator when you have a new message in viber? Mine's yellow. Isn't it should be blue? Thanks
[Galaxy Note 3 Q&A, Help & Troubleshooting] kabuk1:
Not sure about what color it should be for that app since I don't use it, but if you want to change the color try downloading Light Manager from the market. Allows you to change the color of the LED to basically whatever you want for each app.
[Galaxy Note 3 Q&A, Help & Troubleshooting] iznee:
Off topic question, does viber still wakes up the screen upon reciept of a message? I stop using viber bcoz of that 1 single reason.

Thanks.

Sent from B@d Ass Note III SM-N9005
[Galaxy S 4 Accessories] gsmyth:
Just wanted to check peoples thoughts on this. Had a 32GB Sandisk card corrupt (i think) on me the other day. Woke the phone and seen the SD card icon in the task bar as if it had just mounted the SD but it had unmounted it and said that there wasn't one inserted. Have yet to try it in a PC to see what (if any) files I can recover.

The previous night I had made a nandroid backup (Philz touch), there was something not quite right with the file sizes not showing on screen but it seemed to work the second time around. Can't recall if the card was formatted as FAT32 or exFAT, but if FAT32 could one of the nandroid files caused issues if it was over 4GB? Anyway going to see what I can possibly recover and if it can be reformatted again before possibly purchasing a 16GB Samsung card here: (http://www.7dayshop.com/samsung-plus-microsdhc-uhs-1-16gb-memory-card-class-10). Dont mind the smaller size if its more reliable.
[Galaxy S 4 Accessories] jujuburi:
I quite highly doubt a Samsung SD card will be more reliable. Don't know what's the fuss about SanDisk corrupted but I myself or anyone in my friend/colleague circle have yet to face a problem with SanDisk!

And the first thing you should do is format your card to exFAT, I really don't know how and why people uses FAT32:eek:
[Galaxy S 4 Accessories] gsmyth:
This is the first problem I've had with it to be honest, had it or over a year and was using it in my HTC Sensation previously. I'm trying to remember if it was exFAT or FAT32, I remember a ROM (Google Edition S4 ROM) not being compatible with exFAT and checking mine out of curiosity, but just can't recall what it was and never flashed the ROM. I didn't reformat it coming from my Sensation so it hadn't changed in anyway.

Luckily all my photos were backed up to dropbox so nothing lost of too much importance. Need to get a microSD card reader to see if its completely borked or if files can be retrieved.
[Galaxy S 4 Accessories] Theoriginalgiga:
Someone will correct me if I'm wrong but I'm pretty sure that Nandriod breaks the files down smaller than 4GB if you're running on Fat32 so I doubt that'll be your problem. Mostly because the FAT32 architecture just won't accept a file that big unless the Linux kernel of Android ignores the limitations. I would HIGHLY recommend NOT restoring a nandroid backup if you think the sizes are off or if you're attempting to recover the data without and MD5 checksum. That's all sorts of bad juju.

As for Sandisk vs Samsung, I have both, I've never had a problem with either. My sammy card is in my TF201 and my Sandisk is in my I337 as it's a faster card from my benchmarks. But like I said, no problems with either.

As for data recovery, go check out Recuva, it's supposed to be pretty good especially for being free. Since I'm IT I have professional grade software for data recovery and don't have tons experience with Recuva. A couple tips about data recovery. Once you determine you want to recover data, DO NOT WRITE TO OR FORMAT THE CARD, that'll prove to make the entire process more difficult. it's going to take a good long time, at least an hour for the initial scan. Do all the work on the card from a computer and not through a connection to your phone. Anyway if you have any questions or possibly want some help shoot me a PM, I'm happy to impart my knowledge.
[Galaxy S 4 Accessories] gsmyth:
I thought it should break them down, it was just the /data partition that includes the apps and app cache, if it could be over 4GB stored as a .tar file would that still be broken down as such? Won't be attempting to restore the nandroid (if its even still recoverable) as I have flashed a pre-rooted stock odin firmware and its actually really smooth (maybe thats due to the sd card not being inserted). Although I seem to be having an issue flashing a custom ROM, as even after flashing the firmware via odin then trying to flash a ROM via Philz touch its still bootlooping (even with a wipe/factory reset and clean install format). Haven't attempted a different custom ROM but just havent had the time to test that out. Thinking I would have to download the original firmware files and start from scratch with rooting and adding a recovery to see if that solves it, but think I'm going to sit tight for the moment.

Thanks for the recommendation and the support, much appreciated.
[Galaxy S 4 Accessories] Theoriginalgiga:
Well in general in windows when a FAT32 structure is asked to write a file larger than 4GB it'll flat out deny it (usually saying something like disk is full). If you're writing to a FAT32 structure using something that increments the file as it writes it, when it hits the 4GB file size limit, it'll usually say again disk is full and the file will go corrupt (which can lead to the file being undetectable). I do believe that Nandriod is smart enough to realize when it gets to that 4GB limit it'll break the tar into multiple files or else the linux OS would probably kick back an error. As for your ROM bootloops and things like that, I'd see about another ROM, maaaaybe it could just be that the ROM you flashed doesn't like your phone (I have an i717 that does that with a ROM). If that still doesn't solve it, like you said. Start at the beginning completely clean and just work through the entire process.
[Galaxy S 4 Accessories] gsmyth:
Cheers, I had re-downloaded the previous version of the ROM which I was on before hand and made sure to check the md5s but it still wouldn't boot which was annoying, but a full install from scratch may be the way to go. Never had bootloops before and was just worried after I had wiped and started a fresh and it still happened. I think the real lesson is to make sure to backup ANYTHING that is of value to you! ;)

Luckily I had just happened to use the auto backup for photos to dropbox so got off lightly this time!
[Galaxy S 4 Accessories] AMDPOWERFIST:
I have had the EXACT same issue 2 weeks ago.

I bought 2 x 32gig microSD cards (Sandisk)

1 for my phone and 1 for my digital camera.

Recently the 32gig one in my phone just DIED for no reason at all. Lost all my files, music, everything.

I contacted Sandisk, had it repalced. In the meanwhile i purchased a 64gig Samsung one.

I am yet to have an issue with the Samsung 64gig, but only time will tell.

On a plus note, Sandisk sent me a replacement 32gig card very quickly (infact too quick, i purchased the 64gig Samsung one on the idea that the Sandisk replacement was going to take months... in fact it only took 6 days...)

Cheers
[Galaxy S 4 Accessories] gsmyth:
How did you contact Sandisk, did you need to give a serial number or provide proof of purchase?
[Galaxy S 4 Accessories] Pfeffernuss:
I always use Fat32 on SD-cards. Why? It works on every Rom, with every kernel, every recovery, on every device, every camera, every computer, all the time.

When not in need of files greater than 4GB Fat32 simply is the way to go, compatibilty-wise.
[Galaxy S 4 Accessories] gsmyth:
Tried the card in a reader connected to my laptop but nothing. I've emailed Sandisk support so will see what they say.
[Sony Ericsson Xperia Neo, Pro] rohitbhole69:
i ve tried porting arc s roms to my neo l..and replace lib/bin/modules/hw and other files ..the roms are working fine except wifi..facing same problem in each rom!! any solution?:(
[Sony Ericsson Xperia Neo, Pro] alextheboss96:
have you tried installing the wifi modules for your kernel?

it may be a kernel issue!
[Sony Ericsson Xperia Neo, Pro] rohitbhole69:
yep..ive tried installing wifi modules..but no success:crying:
[Galaxy Note II Q&A, Help & Troubleshooting] Isriam:
Does anyone know what causes this? my MMS worked fine on 4.1.2 but now on 4.3 whenever I attached a 8mp picture it says compressing, then says file too large must be emailed. Nothing has changed with picture quality as it works fine on 8mp when attaching to 4.1.2 mms.

thanks. oh also, i just upgraded my sim and change APN, if that could be an issue.
[Galaxy Note II Q&A, Help & Troubleshooting] Isriam:
No one has this issue on 4.3?
[Galaxy Note II Q&A, Help & Troubleshooting] n3ub33:
I believe I had this same issue with an asop ROM some time ago. A third party SMS app solved/proved that it was something surrounding the native MMS app. Try a different app, then you can dig through what might be the cause from there. Is it leaked Sammy or akop/asop?
[Galaxy Note II Q&A, Help & Troubleshooting] Isriam:
Samsung mi5 4.3 hurricane rom. I seem to be able to send pics under 2mb but anything over fails after compressing.
[General Questions and Answers] Kigsuha:
Hello

I'm trying to install all and I got application not installed..

This is what I get in log cat :

10-28 13:21:52.160 I/ActivityManager(573): START u0 {dat=file:///storage/emulated/0/Download/0BwZSwcafrRvFY0xFbVhVLUZFWG8.apk cmp=com.android.packageinstaller/.InstallAppProgress (has extras)} from pid 5861

10-28 13:21:52.409 W/ActivityManager(573): No content provider found for permission revoke: file:///storage/emulated/0/Download/0BwZSwcafrRvFY0xFbVhVLUZFWG8.apk

10-28 13:21:52.423 W/ActivityManager(573): No content provider found for permission revoke: file:///storage/emulated/0/Download/0BwZSwcafrRvFY0xFbVhVLUZFWG8.apk

10-28 13:21:52.423 I/PackageManager(573): Copying native libraries to /data/app-lib/vmdl1174994880

10-28 13:21:52.572 I/SELinuxMMAC(573): package (xx. Xx. Xx) installed with seinfo=default

10-28 13:21:52.572 W/PackageManager(573): Package couldn't be installed in /data/app/xx. Xx. Xx. Apk

10-28 13:21:52.699 D/InstallAppProgress(5861): Installation error code: -24

10-28 13:21:53.697 I/InstallAppProgress(5861): Finished installing xx. Xx. Xx

I searched on Google and methods don't works

Can some one help me?
[General Questions and Answers] pe3do:
Not compatible with your device maybe,

Whats your android version?
[General Questions and Answers] Kigsuha:
HTC one 4.3.1

It worked before with 4.3 and 4.2.2

The free version of the apk is installed without problems but not the pro version one..
[General Questions and Answers] stinger1:
i've tracked the class, its weird, i could find nothing

as you can see here, the PackageInstaller.java, this is the line u got at log

private int getExplanationFromErrorCode(int errCode) {
Log.d(TAG, "Installation error code: " + errCode);
switch (errCode) {
case PackageManager.INSTALL_FAILED_INVALID_APK:
return R.string.install_failed_invalid_apk;
case PackageManager.INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES:
return R.string.install_failed_inconsistent_certificates;
case PackageManager.INSTALL_FAILED_OLDER_SDK:
return R.string.install_failed_older_sdk;
case PackageManager.INSTALL_FAILED_CPU_ABI_INCOMPATIBLE:
return R.string.install_failed_cpu_abi_incompatible;
default:
return -1;
}
}

the other weird thing is, at PackageManager.java no value equals -24

check this

CTRL+F: INSTALL,

you will get all INSTALL_XX constants and none of them is -24

so i think its something like unhandled exception or error that maybe...

good luck :)
[General Questions and Answers] pe3do:
http://xdaforums.com/showthread.php?t=1992241

Read this, might help you
[General Questions and Answers] stinger1:
nice find :)

no wonders i could not find it in the source code

i think its a bug in the installer
[General Questions and Answers] Kigsuha:
I don't think I can solve the problem, I will search for an alternative to this app on play store
[Galaxy S 4 Q&A, Help & Troubleshooting] Alan-B:
I'm working on a 4.3 rom, but can not change any icon in the apk Sec-Phone or whenever CF! or even not work at all.

The apk 4.3 have it a feature? or a form of signature?

Impossible to make a custom contacts and phone apk!

This works just Verthem but not in the apk directly.

An idea of the problem?

Thank you in advance.

*********************************************************

Hello,

Je travaille sur une rom 4.3, mais impossible de modifier le moindre icone dans l'apk Sec-Phone ou à chaque fois des FC !! ou même ne fonctionne pas du tout.

Les apk de la 4.3 ont' il une particularité ? ou une forme de signature ?

Donc impossible de faire un apk phone et contacts custom !!

Cela fonctionne juste en Verthem mais pas dans l'apk directement.

Une idée du problème ?

Merci d'avance.
[Galaxy S 4 Q&A, Help & Troubleshooting] Alan-B:
!!!!!!

Re...

An idea of the problem?
[JASJAR, XDA Exec, MDA Pro Software Upgrading] effjay:
i'm really keen to upgrade my MDA Pro (running ePlus UMTS flatrate). keep looking at the different posts, but can't find the files that are refered to on the FTP server - especially the .RAR file that is continuously mentioned.

after reading through the posts i'd like to do the XDA coprorate install as it seems to give the best performance and the cleanest install.

BUT if i can't find the files on the FTP server i can't do it...

poor me!

any help would be greatly appreciated!

p.s. i AM looking in the right folder...i see some things I need, but not everything!
[Galaxy Note 10.1 (2014 Edition) General] VCore:
After checking various firmwares and methods I can report that

Universal Root de la Vega originally developed for the Note 3 also works on the Note 10.1.2014 SM-P605. Knox is not tripped and the status remains 0x0.

Please check

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

for details.
[Galaxy Note 10.1 (2014 Edition) General] DeBoX:
I'm a bit of a noob when it comes to rooting and Knox, what does with Knox 0x0 mean? :confused:
[Galaxy Note 10.1 (2014 Edition) General] Mehdy_:
Does it work with the exynos version SMP 600 ?

thank you! :)
[Galaxy Note 10.1 (2014 Edition) General] akxak:
[MENTION=5315777]VCore[/MENTION]

how did you achieve this with the 605, my 605 has a DBT MJ2 firmware which I do not find on sammobile.

Erstellt mit meinem Note 10.1 2014 LTE
[Galaxy Note 10.1 (2014 Edition) General] VCore:
I'm not sure. In the Universal Root de la Vega thread it says that the Exynos version doesn't have the required hooks.
[Galaxy Note 10.1 (2014 Edition) General] Han Solo 1:
If we've already rooted with the first method and tripped knox, flashing the stock firmware and then rooting with De La Vega wouldn't set it back to 0x0, right?
[Galaxy Note 10.1 (2014 Edition) General] VCore:
DBT MJ2 has been added this morning:

Model: SM-P605

Country: Germany

Version: Android 4.3

Changelist: 1750146

Build date: Tue, 01 Oct 2013 07:49:51 +0000

Product Code: DBT

PDA: P605XXUAMJ2

CSC: P605DBTAMI3

MODEM: P605XXUAMJ1
[Galaxy Note 10.1 (2014 Edition) General] VCore:
If Knox indeed uses an efuse, the status is permanent. Maybe some developer will find a solution in the future. Time will tell.
[Galaxy Note 10.1 (2014 Edition) General] akxak:
[MENTION=5315777]VCore[/MENTION]

Thanks, you made my day, so I will have a look after work. Root without tripping the Knox fuse is in range!

Erstellt mit meinem Note 10.1 2014 LTE
[Galaxy Note 10.1 (2014 Edition) General] DeBoX:
Does that mean that this will trip the efuse?
[Galaxy Note 10.1 (2014 Edition) General] Han Solo 1:
I'm seriously thinking of just flashing the stock firmware and returning it, then waiting. The Best Buy employees I've come across either don't care or aren't aware of how to check tablets for root status, knox, etc. I don't think I will have a problem.
[Galaxy Note 10.1 (2014 Edition) General] akxak:
As far as I understood the thread linked by VCore, the Knox efuse is not tripped. Have a look at the thread linked in post 1 and VCore's statement about successful rooting of a 605 LTE model.

Erstellt mit meinem Note 10.1 2014 LTE
[Galaxy Note 10.1 (2014 Edition) General] VCore:
If the CSC matches, it should not trip Knox. On my 605 it worked without tripping Knox.
[Galaxy Note 10.1 (2014 Edition) General] aungthummu@gmail.com:
Please help on cmd for Universal Root

Can you please show me how to do in cmd to use Universal Root? Because I never use cmd before and I don't know how to use. I don't know what to write in cmd.

So, can you please write step by step procedure in details. I will very thanks to you. I really want to root my SM P605.

Thanks.

Aung Thu.:o
[Galaxy Note 10.1 (2014 Edition) General] VCore:
I guess the best way to get familiar with the windows command prompt is to watch some tutorials.

You can try to search "windows cmd" on YouTube. For details on how to use Universal Root de la Vega you should check the

Universal Root de la Vega thread.
[Galaxy Note 10.1 (2014 Edition) General] sakiin:
I followed the instructions to the letter but not getting root:

I use this: URDLV csc C:\P605XXUAMJ2_P605DBTAMI3_P605XXUAMJ1_HOME.tar.md5 to generate a file of 17Mb

I then use this on csc in odin, it does it's thing and restart

I copy the files in the root of the tablet then restart

I delete the files above and restart

And nothing has happened, done twice already!

Am I missing something?
[Galaxy Note 10.1 (2014 Edition) General] akxak:
What's your knox status?
[Galaxy Note 10.1 (2014 Edition) General] sakiin:
0x0
[Galaxy Note 10.1 (2014 Edition) General] akxak:
I'm currently waiting for the firmware download to finish and will then try.
[Galaxy Note 10.1 (2014 Edition) General] VCore:
I think you have to use URDLV full because the patch is done in the system.img.
[Galaxy Note 10.1 (2014 Edition) General] sakiin:
Is that what you used?
[Galaxy Note 10.1 (2014 Edition) General] VCore:
Yes.
[Galaxy Note 10.1 (2014 Edition) General] sakiin:
Ok I got a large file 2GB+ where does that go? AP or CSC?
[Galaxy Note 10.1 (2014 Edition) General] akxak:
Using the batch, I get

/usr/bin/tar: value 4294967295 out of uid_t range 0..2097151

/usr/bin/tar: value 4294967295 out of uid_t range 0..2097151

/usr/bin/tar: Exiting with failure status due to previous errors
[Galaxy Note 10.1 (2014 Edition) General] VCore:
AP
[Galaxy Note 10.1 (2014 Edition) General] VCore:
I'm not sure. Could be a Windows 8 issue. This is discussed in the original Universal Root de la Vega thread.
[Galaxy Note 10.1 (2014 Edition) General] sakiin:
Cheers mate the full did it!

Do you know how to get rid of security messages, am not sure but remember something about renaming knox files.
[Galaxy Note 10.1 (2014 Edition) General] VCore:
I have not done this so far, but there is some discussion on page two of the P600 root thread.
[Galaxy Note 10.1 (2014 Edition) General] akxak:
Any chance to put the result file for download?

You use a P-605?

---------- Post added at 11:44 PM ---------- Previous post was at 11:35 PM ----------

It is obviously a problem with Win 7/64, I just tried it on my Win 7/32 laptop and there, the batch works.
[Galaxy Note 10.1 (2014 Edition) General] VCore:
The Universal Root de la Vega author says

Do NOT distribute files created with Universal Root de la Vega! That would defeat the purpose of this script.

And he is right because the resulting firmware files are different for each AP/CSC combination. The whole idea about "Universal Root de la Vega" is to patch the original firmware to preserve the Knox status.
[Galaxy Note 10.1 (2014 Edition) General] akxak:
I did read that... but we would not have been talking about a general download or different PDA/CSC. The batch or better the tar-tool is obviously having problems under Win 7/64.

I solved the problem because I have a laptop with 7/32...
[Galaxy Note 10.1 (2014 Edition) General] VCore:
It's definitively not a Windows 7 / 64bit issue in general. I used the script on a Windows 7 / 64bit system without problems.
[Galaxy Note 10.1 (2014 Edition) General] akxak:
It also worked for me, Knox was not triggered... but System Status is Custom and not Original, let's see how this affects the Screen Mirroring via WLAN Hub.

---------- Post added at 12:34 AM ---------- Previous post was at 12:06 AM ----------

I can only tell what I see here... on the Win 7/64 system reproduceable the errors, on the Win 7/32 at once sucessful.
[Galaxy Note 10.1 (2014 Edition) General] MartiCode:
Worked for me too! Trying to debloat the system but there's so much :(
[Galaxy Note 10.1 (2014 Edition) General] xXrammXx:
Thanks a lot! It worked for me too, knox 0x0. win8x64

original firmware file which was need for, was moved to C: directory (otherwise get errors in batch and a file about 11kbyte) and it worked with creation without problems in batch, so i can confirm this is not a x64 issue!
[Galaxy Note 10.1 (2014 Edition) General] BooBoo_el_Locco:
Will it work in mine note (p600). In the future.Thank you