yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] vijai2011:
Service lets you have your activity run in background irrespective of your UI activity. You can make a service by extends service and declare it explicitly in manifest with this:

<service android:enabled="true"
android:name=".ServiceActivityName"/>

Or you can also make changes to code to register for broadcast receive on battery state change and completely avoid using service. Also later would be less work on light on resources IMO.

P.S: Just a note that you cannot register for batter change in manifest but have to explicitly register in java. Source
[Java for Android App Development] Jasveen Singh:
Thank you Sir. Sir it would be very helpful if you can provide me with the complete code from starting to end. Also, please guide me where to include this code i.e. in which file .src file or manifest file. Sir i am using ADT bundle for app development. Also, i am from non computer science background, so don't know java. Please guide me from starting to end. Sir, will the battery percentage be shown in icon. It would be nice if the battery percentage is displayed like samsung running jellybean i.e. the percentage besides the battery icon.

Currently using:

Samsung galaxy fit

os: gingerbread 2.3.6 dxkt7
[Java for Android App Development] vijai2011:
Well....if you don't know java, you either have to learn java and then android app development (easy after learning java) or hire a developer for a fee to make the app for you.
[Galaxy S 4 General] D™:
Guys,

As Google has released the latest version of Android i.e. JB 4.3. Still we haven't fully aware what does it have.?

So i have collected few information about the same & sharing with you guys. Please help me to share more about the Android 4.3.:highfive:

This thread can be used as General Discussion Thread of Android 4.3.;)

- Android 4.3 restricted profiles explained

- What is virtual surround sound in Android 4.3?

- Improved photo-spheres will make their way to Android 4.3

- will add as and when receive any new about Android 4.3
[Galaxy S 4 General] chickentuna:
There are new stuffs not mentioned on the recent press event:

"Faster, Smoother, More Responsive

Android 4.3 builds on the performance improvements already included in Jelly Bean — vsync timing, triple buffering, reduced touch latency, CPU input boost, and hardware-accelerated 2D rendering — and adds new optimizations that make Android even faster.

For a graphics performance boost, the hardware-accelerated 2D renderer now optimizes the stream of drawing commands, transforming it into a more efficient GPU format by rearranging and merging draw operations. For multithreaded processing, the renderer can also now use multithreading across multiple CPU cores to perform certain tasks."

Source:http://developer.android.com/about/versions/jelly-bean.html

Do take note that it's the developer page and most changes listed are under the hood stuffs for developers. But yeah we're on xda so..
[Galaxy S 4 General] D™:
Hidden Android 4.3 Jelly Bean codes reveal possible permissions manager and 4K video support in the future​

Earlier this week, Google announced Android 4.3 Jelly Bean and as developers have spent time with it, they have come across hidden features that might be a sign of what could arrive in future iterations of the OS. The folks at AndroidPolice report about two such features, one which lets users control app permissions and the other is 4K video support.

The first feature is called ‘App Ops’, which essentially will allow users to control what settings or information a particular app will have access to. It sounds similar to the granular app controls available on iOS for some time, but the report says that Google’s version of permissions manager is far better.

Additionally, the report also talks about a couple of lines of codes that indicate possible support for XXXHDPI (640ppi) settings and assets in the near future. Now it is unlikely that tablets or smartphones which look good enough on 480ppi displays will get require XXXHDPI support. But it is good to see Google readying itself for next-generation HD displays.

Thanks to AP
[Galaxy S 4 General] D™:
So what other security enhancements does Google have in store for Android 4.3?

So what other security enhancements does Google have in store for Android 4.3?

We are glad you asked. According to JR Raphael, Google has been working on these security features for years. We’ll do a quick breakdown.

Starting with Android 4.2, there was a feature called Verify Apps that was added. This scans phones both downloaded and side-loaded to make sure they didn’t contain malware or pose a threat.

Verify Apps was eventually made available to all devices from 2.3 onward. According to JR Raphael, that’s 95% of Android devices running currently.

This now works in tandem with another older feature, the app scanner in the Google Play Store that scans apps as they’re submitted to Google Play to make sure they aren’t malicious. This is why you can always download from Google Play without worries.

All of these features are currently on Android devices right now.

But wait, there’s more. In Android 4.3 specifically, they have added yet another security feature called SELinux. This stands for Security-Enhanced Linux and it essentially keeps the important parts of your phone safe. Most notably the operating system. So there is protection everywhere.

Thanks to AP
[Galaxy S 4 General] override182:
https://plus.google.com/114519877662741226877/posts/Eay4Y5ikYcc

This is not written anywhere but JBQ was the one mentioned it.

Sent using GT-i9505~
[Galaxy S 4 General] chickentuna:
Yes, the significant performance boost in 4.3 is probably bec. of this:

Source: http://www.anandtech.com/show/7176/nexus-7-2013-mini-review/4

Review was about the 2013 Nexus 7 but the TRIM support is not just for that device but probably 4.3 itself. I have a Galaxy Nexus as well but haven't had the time to update it(wife has it), based on user feedbacks that I've been reading from the Gnex forums, 4.3 made it like it's JB 4.1.2 again and if you have a galaxy nexus you'll know that 4.2 made the device lag at some point. Having tested 4.3 leaks for about a day on the S4 I'm starting to think that the update really made significant boost in performance and definitely not placebo :good:
[Galaxy S 4 General] debnath:
Thanks for all of the information :)

One thing is bugging me though.. I created a user profile and switched to it. Later I am not able to go back to the primary profile.
[Galaxy S 4 General] nasvi:
Is App OPS only available in Google Play edition on the HTC One?

Because I have 4.3 Dev edition and cant seem to find activities in the settings menu.
[JAM, MDA Compact, S100 General] furball:
Dear all,

My O2 Mini is dead after the power when off during the course of recovering the data.

The screen is not lighted up although the phone is on. The only thing that is visible is "Serial" on the top and "Ver 1.0" at below of the screen. Tried everything but was not able to reflash my ROM and bring my phone back to life again.

Can any expert help me with this?

Please advise.

Waiting urgently.

Regards,

Ken
[JAM, MDA Compact, S100 General] Matterhorn:
Did you try taking the battery out for several seconds to get it out of that mode?
[JAM, MDA Compact, S100 General] georgexoasi:
That means your bootloader works then your fone aint dead, try doing this ...

Anansky's BigStorage ROM
[Galaxy Note II Accessories] snapz54:
double post sorry.
[Galaxy Note II Accessories] samprocat:
I do definitely agree with you I use them on all my vehicles and motorcycle. ..and there is only one thing to say.....it will rock your network in many places that are miles and miles from network

SGH-S959G
[One (M7) Q&A, Help & Troubleshooting] Nawzlew:
Hey guys, I've been having some data issues with my HTC One and straight talk.

I seem to always be stuck on the Edge network. My sister is using Net10 and when our phones are both in the same location, her mobile type says HSDPA while I'm still on Edge.

My APN settings are as follows:

APN: wap.tracfone

Port: 8080

MMSC: http://mms.tracfone.com
[One (M7) Q&A, Help & Troubleshooting] ballaz:
What variant of the one do you have? T-mobile US, ATT, or international? I ask because unless you have the tmobile variant, you will only get edge speeds because the other variants do not support the 1700mhz frequency
[One (M7) Q&A, Help & Troubleshooting] Nawzlew:
Damn, really? That's unfortunate ...

I have the China Unicom version.

Thanks.
[One (M7) Q&A, Help & Troubleshooting] Vadrieldur:
Hello folks can i fully convert my "Sense HTC One" to "Google Edition HTC One" to get OTA updates? If so how can i do it? I checked some of the threats but haven't found any real answer. Thanks for your time.
[One (M7) Q&A, Help & Troubleshooting] Guich:
atm we can't convert the sense One into a GE One.

We have to wait :)
[One (M7) Q&A, Help & Troubleshooting] cc999:
Yes you can

I have mine at 100% GE. Follow the link below.

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

CC
[One (M7) Q&A, Help & Troubleshooting] redbull123:
Yeah I thought they had done it over on that thread and were just waiting on an OTA to prove it..
[General Questions and Answers] 17kimd:
I have a Korean Galaxy S III. When I see the phone section I only see north american Galaxy S3s. Should I just randomly pick a section or is there another section that I do not know about?

Thanks
[General Questions and Answers] Bishal Pranto Roy:
Post In Android Genrel or Q&A.
[General Questions and Answers] 17kimd:
Thanks dude
[AT&T Samsung Galaxy S 4 General] Aou:
reserved...
[AT&T Samsung Galaxy S 4 General] iB4STiD:
First .. :p ..... Hey guess u got ur phone up and running huh ?
[AT&T Samsung Galaxy S 4 General] jeboo:
Nice post man! I still have hope for your recovery process :)

Here's another way to remove that annoying message without killing the entire APK:

http://xdaforums.com/showthread.php?p=41794748#post41794748
[AT&T Samsung Galaxy S 4 General] SaltyFoam:
as expected...

The result was what was expected.

Keeping my fingers crossed for other solutions...
[AT&T Samsung Galaxy S 4 General] Aou:
Nope! Ended up needing to replace it, unfortunately. The original is a 100% hard brick. It won't even take the MF3 firmware via JTAG.

Awesome - thanks! I'll add that to the list of options. Also, thanks again for your awesome Kernel. v1.4 is exactly what I need for my phone.

This is really unfortunate, but somewhat expected (as you've said). Have you tried the Odin-flooding again (even with the MDL or MF3 Recovery) yet? That was a very interesting accidental discovery you made. I'm going to have to try that myself too! It might have been a fluke, but still worth investigating.

As an update: The last file (mf3-factoryfs.tar.md5) has finished uploading, so I'm adding the link to the OP now.
[AT&T Samsung Galaxy S 4 General] Jah0n:
FINALLY, someone else that respects untouched firmware. Glad to see this. :)
[AT&T Samsung Galaxy S 4 General] SaltyFoam:
The odin flooding is not working at this point.

apparently one of the features of the new odin mode (aboot?) is that once it gets the 'failed auth' it stops responding to further pushes. It does not even allow the connection to be setup until a power down and restart.

As you can see in the other thread I submitted a warranty claim and they are replacing the device: as I have no backup device and a family that needs to get in touch with me (i.e. my wife and mother scolding me for not having a phone) I ran out of time...

I still have a few days with the old device before the replacement arrives...

I any case I am off to work.
[AT&T Samsung Galaxy S 4 General] Aou:
If anyone wants to help create a flashable-zip that would disable the OTA updates without touching /system, I'm working on it here:

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

I just need someone to write something up in a bash script that will make modifications to a file in /data. Should work without rooting the system.
[AT&T Samsung Galaxy S 4 General] Aou:
One thing I've seen in many "stock" roms is: "Completely stock, except for this.... and this.... and this mod I made here.... and this...."

-_-
[AT&T Samsung Galaxy S 4 General] mocsab:
I was curious - wanted to see what a true stock would feel like after all this time I have been rooted and using custom roms - anyway -I flashed this - everything seemed to work ok - but after restoring a nandroid - I lost data completely - I tried flashing a new rom and I got an error when trying to set it up saying that I needed to install my SIM - I tried to go into settings to add my APN and that error about the SIM came up again and would not let me add APN.

I could not get data to work on any nandroid or new flash and I ended up using odin to flash back to stock and then re-rooted.

I don't know if it was related to this rom -but it seems to be the only thing that could have caused it - unless you have an idea?
[AT&T Samsung Galaxy S 4 General] Jah0n:
We should really team up on something sometime. I just created a hybrid stock UCUAMF3 kernel with the international (i9505) newest XXUBMGA image ROM. I removed the bloat but kept everything that is needed for all the settings to function. It runs so smooth, I'm not sure I want to go back to Google Edition... To release, or not to release. Okay, I'm done rambling. Great work so far from what I see here. Keep em clean!
[AT&T Samsung Galaxy S 4 General] Aou:
It sounds like the other rom you flashed did not have a kernel. Easiest way to check is to open the zip file and check for a "boot.img" - that's the kernel (not the bootloader).

That's strange that your nandroid would not backup Data - did you check that option when you made the backup?
[AT&T Samsung Galaxy S 4 General] Aou:
Awesome! If the kernel turns out alright, we could add it to the list in the OP. ;)
[AT&T Samsung Galaxy S 4 General] mocsab:
The other rom had a kernel, but it doesn't matter because I flashed a different kernel with the other rom - the kernel was not the problem. If it didn't have a kernel, the rom never would have booted in the first place.

The problem is that mobile data did not work - at all. PLUS When I tried to add manually add an APN - it told me that I needed to add my SIM CARD. My SIm Card was fine - I never uninstalled it -

I have flashed and restored hundreds of roms and never had this happen before.

Something happened when I flashed your rom - that wiped out something related to my sim card.

I don't know what that would be - but as a result of flashing this rom - it happened. Just to verify, I redownloaded the rom - flashed it - and the same thing happened the 2nd time.

The phone booted fine and started the setup process - wifi worked fine - but the data bars showed NO DATA. I tried to manually add an APN and I got the same SIM CARD ERROR -so - when I tried to restore a nandroid - I got the same SIM CARD ERROR- I tried flashing a new rom - and got the same error - - the ONLY way I could fix it was to use ODIN and return to stock.

SO - Not sure why I seem to be the only one this has happened to - luck of the draw or something -
[AT&T Samsung Galaxy S 4 General] Aou:
Makes a lot more sense now - thought you meant your data partition. >_<

And by another rom not having a kernel, it's still possible for roms to not include a kernel and work - the kernel lies in a separate partition and would remain untouched if the new rom didn't flash this.

I'll add this situation to the bugs list - thank you for the report!
[AT&T Samsung Galaxy S 4 General] :
The kernel lies in a separate partition but twrp wipes it away by default so you'd have to unmount the boot partition
[AT&T Samsung Galaxy S 4 General] jortex:
Is boot.img a compressed file?
[AT&T Samsung Galaxy S 4 General] Aou:
I did not compress it at all. However it is not a full 10MB either. It's the exact file that came from the MF3 update package. The way that the OTA update .zip installs it is by doing this:

package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");

If you need a full 10MB partition dump (i.e. using dd or a nandroid), I can upload those if you need them for any reason.

UPDATE: I just did a binary comparison of the boot.img that came from the OTA .zip (the one I uploaded), and a nandroid backup I made. It was 100% identical, except the nandroid was padded with zeros at the end (a couple megabytes of zeros...)
[AT&T Samsung Galaxy S 4 General] Aou:
Added another kernel to the list:

[MENTION=1823993]Jamison904[/MENTION]'s Bioshock Kernel - available on the Infamous Development Website. This kernel is working great for me - no issues to report at this time. It also includes BusyBox v1.19.3, which was particularly useful for me.
[AT&T Samsung Galaxy S 4 General] PMDColeslaw:
If I'm using a custom MF3 rom such as ShoStock and I already have the custom padlock bootscreen showing, would it be possible to flash this .zip and revert to the stock bootscreen and official status? If not, would simply wiping & flashing this rom with the sysScope removal zip get rid of the padlock and allow me to go back to ShoStock with official status?

Hope that makes since :confused:
[AT&T Samsung Galaxy S 4 General] Aou:
If nothing in the SecSettings.apk has been modified in the ShoStock rom, then you should be able to use ShoStock and the SysScope removal to permanently get rid of the logo:

Backup stuff - nandroid works well (not a bad idea to keep current nandroid on your PC too, btw)

Wipe data

Get back to MDL stock using Odin to get your Official status back

Root, don't reboot, and install recovery

Reboot directly into recovery

Install ShoStock (don't reboot)

Install the remove-SysScope mod

Restore data

Wipe cache/dalvik for good measure

Reboot

Alternatively, you could perform these steps instead:

Backup stuff (nandroid)

Wipe data

Flash the Unadulterated MF3 rom

Reboot, allow it to fully boot and run the SysScope scan (just let it sit at the homescreen for a minute or two)

Reboot and check for "Official" boot logo

Reboot into recovery

Install ShoStock (don't reboot)

Install the remove-SysScope mod

Restore data

Wipe cache/dalvik for good measure

Reboot
[AT&T Samsung Galaxy S 4 General] PMDColeslaw:
The second set of instructions doesn't seem to be working. It still shows custom after full wipe and flash of this rom. I'll try the first set of instructions and report back.
[AT&T Samsung Galaxy S 4 General] Aou:
Interesting. Did you let it boot fully into the OS? Also, what did it say under Settings -> More... -> About Device -> Status -> Device status... ?

Also, I'm assuming that when you installed this rom, you didn't install any addons, correct (like root, or remove SysScope, etc.)?
[AT&T Samsung Galaxy S 4 General] RK:
Aou, to keep things stock, is it possible to run the stock MDL kernel with this ROM?
[AT&T Samsung Galaxy S 4 General] Aou:
I did actually try this recently. It still breaks WiFi, just as the MF3 stock kernel does. Otherwise I can't remember if it had any other side effects. It's somehow related to the Modem and NON-HLOS, but I don't know if there's any combination that would allow us to retain 100% stock MF3 and keep WiFi working (unless someone can make a flashable mod, which would be cool) - at least not without having MF3 bootloaders...

I've tried tried a couple different combinations of MDL anf MF3 in terms of Kernel, Modem, and NON-HLOS Modem, but couldn't find one that works. If you would like to try for yourself, I have a nice present for you:

mdl-kernel-only.zip & mf3-kernel-only.zip - exactly as they sound. They both will wipe the Cache and Dalvik Cache. Not sure if this is required.

mdl-kernel-only-no-wipe.zip & mf3-kernel-only-no-wipe.zip - You guessed it, these are the same as above, without the wipe.

mdl-modem-apnlos.zip & mf3-modem-apnlos.zip - these will flash the modem partition and the "NON-HLOS Modem". The MF3 update flashed both of these, and there's no e-fuses on these partitions (they can be flashed back to MDL fine it seems).

mdl-modem-only.zip & mf3-modem-only.zip - these will only flash the modem partition.

All these are packaged into one file: mdl-experiments-unzip-1st.zip

As the file name suggests, unzip it all first :P
[AT&T Samsung Galaxy S 4 General] PMDColeslaw:
Yes I let it boot fully and skipped through the initial setup stuff. I let it sit for a few and then checked the device status which still showed custom. I still rebooted just in case and it did show the padlock as well. I flashed only the rom using twrp and I declined the twrp request to add root after flash. No add ons and a full wipe.

Incidentally, Why did this get moved to the general forum? Took me forever to find it on my phone, lol
[AT&T Samsung Galaxy S 4 General] Aou:
I wonder what it was picking up that was "custom". Very strange. I've managed to keep an "official" status with stock rom/kernel and kept my custom recovery... but perhaps if you already have the "custom" you might have to start fresh (odin). Just be careful while you are on MDL and stock - dont' accidentally download that MF3 if it's available. ;)

Here's what I got in my Inbox earlier today:
[AT&T Samsung Galaxy S 4 General] RK:
Aou, I don't know if you noticed this but this ROM with mf3 modem breaks streaming video (flash and html5) on my device even with a custom kernel. If I use MDL modem, everything works..
[AT&T Samsung Galaxy S 4 General] ben.nesheim:
just thought i'd mention that scroslers "mf3" rom and the bioshock link you have posted are working great together. no wifi issues or sound issues... none at all as of yet. Using fauxclock to keep all the settings under control. actually using jamison's setup from the infamous forum he has with the bioshock kernel thread. i did not try the kernel posted on that forum ... assuming you would just have to flash loki doki after but :confused: anyways thanks for the tip :) and now anyone on scrosler's can have a little confirmation of at least a different kernel (jeboo's shostock kernel worked just fine as well. but no uv annnd less gov's)

currently: badass with 270 -1890 and -50 uv. i/o = row and 1024 zram on plus a few tweaks from infamous forums but thats the gist of it. great battery smooth ui
[AT&T Samsung Galaxy S 4 General] Aou:
Added this as a bug, thanks. I think I've read on some of the kernel's where the authors are expecting you to have an MDL baseband, so this isn't too surprising. ;)

Glad I could provide some help! :)

--------------------------------

I recently installed the Infamous S4 kernel, and it's working very well for me so far on this rom. With BioShock, I noticed the boot animation would play twice for some reason (probably something I screwed up), but with Infamous, it doesn't do so. Here's the addition to the kernels list:

[MENTION=1823993]Jamison904[/mention]'s Infamous Kernel works really well, it seems. It also has BusyBox v1.19.3. I'm currently using v4.0, but there are newer versions available on his Dev-Host folder. These are for the M919, so flash Loki-Doki afterwards if you're on I337!
[AT&T Samsung Galaxy S 4 General] ben.nesheim:
cool man. Do you happen to know anything about the infamous kernel? lol i have poked around both forums and i guess i can assume whats kernel releated and whats not obviously but if you have noticed anything. I think im gonna let bio shock settle in some more im running a good balance of power and battery. solid 20 hr runs since flashed with 2 -3 hr screen on time
[AT&T Samsung Galaxy S 4 General] sd_N:
I flashed this...then flashed stock MDL kernel...everythings working. Including streaming video (flash and html5) just a heads up. Might wanna include stock MDL kernel in OP :) thank u so much for this...smooth
[AT&T Samsung Galaxy S 4 General] RK:
What about WiFi and sound?
[AT&T Samsung Galaxy S 4 General] sd_N:
Yes....wifi...sound...everything.
[AT&T Samsung Galaxy S 4 General] Aou:
I swear, I tried this combination... o_O

What baseband?
[AT&T Samsung Galaxy S 4 General] sd_N:
MF3...I was on the deodexed MF3 from scrosler. But I prefer odex. So I wiped everything flashed this then flashed MDL kernel. Works perfect. I never have any FC's.