yashsingh1/xdaforums huggingface dataset:
[Java for Android App Development] Deyaz:
Hi,

I am currently working on an app which sends location updates in an interval. While testing the app there haven't been any problems with it and on one phone it works correctly, while on another phone (both are S4 Mini) it worked until Sunday (while testing) and then stopped out of a sudden. I do not have any clue where the mistake is or why it stopped.

I also checked the location settings which also allow the app using the location.

Here is the code I am using. The function is definitely executed, even though not delivering any results on the second phone.

boolean gps_enabled=false;

boolean network_enabled=false;

//mlocManager = (LocationManager) ((Context) c).getSystemService(Context.LOCATION_SERVICE);

mlocManager.removeUpdates((LocationListener) listener);

mlocManager.removeUpdates(listener);

try{

mlocManager.requestLocationUpdates( LocationManager.NETWORK_PROVIDER, 0, 0, listener);

}catch(Exception ex){}

//exceptions will be thrown if provider is not permitted.

try{gps_enabled=mlocManager.isProviderEnabled(LocationManager.GPS_PROVIDER);}catch(Exception ex){}

try{network_enabled=mlocManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);}catch(Exception ex){}

if(gps_enabled){

mlocManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, listener);

}

if(network_enabled){

mlocManager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, 0, 0, listener);

}

I also reinstalled the app (did not uninstall it, but this should not matter, right?). On Sunday morning the phone went out of battery. However I dont think that this should be the cause for that, because the app still works perfectly besides that problem.
[Java for Android App Development] surlac:
Some virus? Did you try to set current date to the day before "day X" or install the app on another device/emulator?
[Java for Android App Development] Deyaz:
Virus? What exactly do you mean by setting the day before day X? On the other phone it works great, it also did work on the other phone until day X. After that I did not receive any new locations from one device. Now I think I know what you mean like setting the phone date before this day? Cant be the problem, because I still receive location updates on the other phone, even though it s exactly the same app.
[Java for Android App Development] Jonny:
Ok if you can reproduce the bug then please post a stacktrace, makes things easier to pin down ;)

As for re-installing the app... maybe this actually does matter whether you uninstall it because if you don't uninstall it, android "upgrades" the app without wiping the applications data so your data is persisted, I would suggest doing a full re-install - ie, uninstall it first then install it again so you're starting from a clean slate.
[Java for Android App Development] Deyaz:
I deinstalled the app, installed it again. It did not work.

So the bug, which I assumed it caused, was that the phone ran out of battery. I decided to just wait and let it happend again exactly the same way (before I removed the battery, but the app still did not work). So after the phone finally ran out, I put it on a charger and the app somehow works again now. I have no idea why there was the same procedure necessary. However, I will deactivate the services in the app now if the battery is 5% or less.
[Java for Android App Development] Jonny:
Tbh I'd increase that to 10-15% minimum, looking at it from a user perspective the last thing you'd want on low battery is location services running and an app sending your location off at intervals ;)
[Java for Android App Development] surlac:
Jonny, so the Location Service consumes a lot of battery? Is it because GPS module itself consume much energy?
[Java for Android App Development] Deyaz:
Yes it does, so that s why I am using network instead which consumes less battery.

However, I am writing here, because the problem occured again. As there is absolutely no debug log, not any error or anything I put file writers like everywhere which are logging the whole time.

So today I lost the last activity in it at 3:30 my local time at night. There was absolutely no activity on the phone during that time. However, the mistake is that the listener does not work with network anymore. Most likely only GPS works and it is already known that the network location listener does not work after a couple of days (for me between 10 - 14).

I also found another topic here: https://code.google.com/p/android/issues/detail?id=57707

So it seems to be a bug in Android which comes with the current system version. I really hope Google will fix that asap. Well wont happen most likely as this official thread is already from almost one year ago.

Shame on Google!
[Java for Android App Development] MayureshJ:
Location using something other than GPS

Guys I wanted to tag images dynamically using smartphones but the problem is I need to find location coordinates of phones besides each other so that the phones can be tagged ultimately giving the owners names!!!

The issue I'm facing is that I can't use GPS for it as it is giving inaccurate results.

So is there any other method to do it? Like by using the radiations our phone emits or something like that!!!

Please reply ASAP...Thank you so much!!?
[Java for Android App Development] surlac:
You can try to get IP address of the device and send it to some third-party web-service which give you back the location. It will be rough, but cheap for battery.

GPS accuracy varies from 5 to 50 meters. Isn't it accurate enough?
[Java for Android App Development] Deyaz:
Maybe he wants to track the user up to 1 meter - with a live camera. :D
[Java for Android App Development] surlac:
Then it would be better idea to use cell phone tower triangulation in addition to GPS.
[One (M7) Q&A, Help & Troubleshooting] rimkaa:
Hello guys, I'm french so sorry for my english.

I would like to change the front camera lens cover (plastic), because there's dust stuck on it, and it's impossible to remove it because when I changed the top cover speaker grill, i did the mistake to put glue on it, now i can't take selfie anymore because the plastic is full of glue.

So I would like to find a website, to buy one front camera lens cover, I'm thinking of cutting a screen cover protection in circle to fit.

Can you help me please ? Thank you so much.
[Sony Xperia M] android-turk:
Can someone please give a detailed list of what can be debloated from our lastest 4.3 firmware cause I did debloated like I always did and now walkman, camera and devices force close

I deleted al the unnescesary google apps, and the sony backup app, the facebook and Twitter app Plus the extentions whats did I do wrong?? Please help
[Sony Xperia M] Android Bob:
I just started off removing a few files.

I left most I'd normally remove until I know what resources they're using and there service impact.

I removed the following: [removal at your own risk!!!]

AnonymousData.apk

Chrome.apk

EnchantedForest.apk

Exchange2.apk

Exchange2.odex

FaceLock.apk

FBAndroid.apk

FBCalendarSync.apk

FBIAppShare.apk

FBMediaDiscovery.apk

FBMusicLike.apk

Gmail2.apk

GoogleContactsSyncAdapter.apk

GoogleLyricsPlugin.apk

Hangouts.apk

helpappics.apk

MyXperia.apk

OnOffTools.apk

PlusOne.apk

PMSservice.apk

PMSservice.odex

PMSserviceTrigger.apk

PMSserviceTrigger.odex

PSCertifiedSettings.apk

RetailDemo.apk

SemcCalendar.apk

SemcEmail.apk

SEMCFacebookProxy.apk

SemcWarrantyTime.apk

sneiaccountmanager.apk

SocialEngineCore.apk

SocialEngineFacebookPlugin.apk

SocialEngineFacebookShareFrwkPlugin.apk

SocialEnginePicasaPlugin.apk

SocialEngineTwitterShareFrwkPlugin.apk

SOMCTwitterAccount.apk

sonyselect.apk

SonySelectWidget.apk

textinput-chn.apk

UnsupportedHeadsetNotifier.apk

Velvet.apk

YouTubeKaraokePlugin.apk

YouTubePlugin.apk
[Galaxy Note 3 Q&A, Help & Troubleshooting] Bubbamanlarry:
I like many of you have flashed a couple of ROMS and now I have lost my IMEI number. I know there are several ways to fix this - but I am far too busy to get into that sort of thing. Is there anyone here who can help me step by step via email, phone, or private message, to get my IMEI back? I have flashed back to the stock ROM and then rooted it. I'd be happy to pay someone who can fix this for me.

Thanks,

Larry
[General Questions and Answers] sebek_d:
Hi,

i was wondering if there will be separated Thread for Huawei Ascend P7 device?
[Nexus 4 Q&A, Help & Troubleshooting] oscar7601:
Hello everyone,

I'm coming up with what will surely be read as a noobish question... However, I'd really appreciate if someone could give me that answer (sorry about my english guys I'm not an english native speaker).

Every time (approximately since Android 4.4) I receive a MMS, which would previously (before approx. 4.4) show up in the sender's conversation, it now appears in a conversation including ALL the recipient that the sender has sent the MMS to. Well that could be not such a big issue if when I reply (which I obviously do by reflex in this multi-recipient conversation), ALL these people I maybe don't know get my answer !!!! (like if they're the sender's friends and not mine)

I noticed this occurs especially (if not only) when I am sent a group message from an IPhone user...

That's something that annoys me a lot and I still have not found any option or setting clearly related to this... "thing/issue/problem" I have.

Do you guys have any tip as to how not to get these multi-recipient conversations any more? It would be really helpful.

All constructive ideas welcome.

Thank you in advance.

Oscar
[Nexus 4 Q&A, Help & Troubleshooting] chrisrozon:
That's the way group MMS works.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
Here is another new ROM from the still unreleased Cingular 8525: HTC Hermes (HERM100) branded from U.S. Operator Cingular.

ROM Version: 1.31.502.1

ROM Date: 08/30/06

Radio: 1.13.00.00

Protocol: 32.49.7018.00H

OS build: 14989.2.6.0 (AKU 2.6)

As always, download link on the wiki upgrading page:

http://wiki.xda-developers.com/index.php?pagename=Hermes_Upgrades

If you have questions be sure to read the Hermes wiki first, specially the Upgrading FAQs.

Notes on this ROM:

* See the thread on the previous Cingular ROM (v1.30) for upgrading issues, such as enabling video calls, band selection tab, MMS, ExtROM customizations, etc...

Enjoy ;)

WARNING: This ROM has bootloader version 1.06 where only RUU updates specifying the same CID as your device has will be permitted to run. You will need to DOWNGRADE to a ROM

matching your CID

with bootloader 1.04 to be able to bypass the vendorID check again.

UPDATE: New ROM v1.34
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] goestoeleven:
I think you're releasing this one just to terrorize everyone that has just jumped through hoops over the past few days with the last ROM... ;)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] axiom:
Firstly, Thank you.

Second. Is a hard reset necessary if you're already on the cingular rom?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
yes... you have to flash it again, so it will be in default settings as after a hard reset.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] netboy:
the OS version is incorrect on the wiki! on wiki, it shows OS version 14955.2.3.0, i just flashed to the latest cingular RON, it showing OS version 14989.2.6.0
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
ooopps... copy paste problems :P

Thanks for the correction, and yes, this is an AKU 2.6 ROM :)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] netboy:
sorry for jumping the gun. i already fixed it on wiki. os version and protocol version been updated..
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Sleuth255:
aku 2.6 :shock:.... damn!

... so many roms... so little time...
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] aquanaut88:
My imagination or are contact ringtones missing from this build? Were present in the i-mate ROM. Pof didn't give me enough time to check out the 1st Cingular ROM ;-)

Cheers
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Sleuth255:
I'm going for this one I think. If HTC releases their TyTN specific ROM update tomorrow, you'll have me and the deity Murphy to thank.....

edits as the upgrade progresses:

08:21 AM CDT

Upgrade start time. First impression... boy is this ever slow. I guess they're not kidding when they say "Remember, the operation will take about 25 minutes". This is significantly slower than my 8125 flash process was.

08:30 AM CDT

22% complete. Let's see, a little math shows a 45 minute flash time if the same rate progresses. I've turned off my screen saver and am closing all unused apps on my desktop. Fortunately, the battery on my TyTN was fully charged before I started...

08:35 AM CDT

25% complete. 25 minutes is looking more like an hour at this rate...

08:42 AM CDT

Flash rate just jumped up I'm now at 61% complete.... Patience is the buzzword to remember when flashing TyTNs it would seem.

08:44AM CDT

Flash complete. 23 minutes elapsed time. The warning is correct! I just heard the Initial setup chime on my TyTN :D

Now its off to extrom customization. I've pre-loaded the most current TyTN Extrom on my sd card so I'll be cancelling out of Cingular's default startup and loading this instead...

08:47AM CDT

Nice little Cingular splash screen with a flaming 3G ball of fire on it... :roll:
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] jasonmoe:
anyone using this rom yet? What do you think
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] aquanaut88:
As Pof points out at the beginning of this thread, the AKU2.6 version of the Cingular ROM inherits the same troublesome limitatations as this one AKU2.3:

* Extended-ROM is locked from writing. You can read, but not write;

* Video camera must be added 'manually' using alternative extended ROM (e.g., HTC 1.06)

* Button 5 (press and hold) functions have been locked to PTT (push-to-talk is not working in this ROM version)

There are no existing work-arounds to:

- unlocking the extended ROM, so you have 10mb less program storage space with this ROM;

- map button five (PTT is hard-coded).

Following pof's earlier post instructing how to manually install the HTC ROM, you will end up with the HTC "Green" dialer and CommManager.

CommManager can be replaced with the blue one (search threads for download). Dialer can be replaced with several different dialers (see wiki).

Cheers
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
In other HTC devices the upgrade image was decrypted by the upgrade software and sent unencrypted to the device. With the Hermes, HTC has changed this and the upgrade image is sent encrypted to the device. Now the Hermes has to take the encrypted data sent by the upgrade utility and decrypt it before actually flashing it. That's why it takes more time.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] austin_boy:
ROM 1.34 will be uploaded soon
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] goestoeleven:
Is this a Cingular or an HTC ROM?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Sleuth255:
HTC no doubt... :roll:
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] nickcerda:
1. are you joking or serious?

2. define soon (today, tomorrow, a week, etc)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] austin_boy:
No major improvment on 1.31:

Release notes attached
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] gravejoker:
Dude .. I think austin_boy is referring to the Cingular ROM .. and looks like he's a Cingular developer... look at the release notes :D
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] fun_key:
Since I upgraded to this ROM I am unable to flash to another rom anymore. Each time it says me that my vender ID doesnt match. As I was used to, I relaunched the ROMUpgradeUt.exe but the problem still remain.

I tried many roms before this one without trouble...
[HTC One X] aromerblz:
I was just looking into my system files and came across this folder sys/firmware/fuse. In the folder it has some files that cannot be opened or viewed. one that caught my attention the most is this file by the name secure_boot_key. Now how can be extracted? is that the HTC SBK file? Has anyone ever looked at that file. did a google search and nothing much came on it. A thread for the LG Optimus 4X HD came up, which that phone i believe has the same SoC family as out HOX?
[Galaxy Note 3 Q&A, Help & Troubleshooting] ant2555:
Hi guys,

Found that I had awful battery life today, using Galaxy Pack live wallpaper, and autobrightness (+5)

Is this due to the live wallpaper or why else would I get this problem?

Battery stats posted

https://www.dropbox.com/s/11pe6ozrkhuqvi7/2014-06-11 17.20.21.png

https://www.dropbox.com/s/4gma8puz48ixa88/2014-06-11 17.20.15.png

not looking for solutions, just explanations,

Thanks!!
[Galaxy Note 3 Q&A, Help & Troubleshooting] verny94:
Task killer, clean master, antivirus??? Or batery should be old or broken.

Its battery live shorter than one day?
[Galaxy Note 3 Q&A, Help & Troubleshooting] ant2555:
Not using any of these. New phone so doubt battery responsible. Do you think its the wallpaper? Just made it through one day at college.
[Galaxy Note 3 Q&A, Help & Troubleshooting] 4aces:
That must be a really hard battery sucking wallpaper you got there mate. With only 2 h screen on I could last at least 2 days without charging.

Do you have s-voice on and wake up command? These were the only apps that consumed that much as I remember. Or did you run any battery consuming apps? It shouldn't be the wallpaper but you can still try yourself.

If you are on stock rom it could also be the KitKat update. I read a lot about it being pretty battery unfriendly.
[Galaxy Note 3 Q&A, Help & Troubleshooting] ant2555:
Im using https://play.google.com/store/apps/details?id=com.maxelus.galaxypacklivewallpaper

Dont use s- voice or wake up command, but may have left apps running in RAM maybe. Battery has been 3 hours screen on most days so I dont know whats happened!
[Galaxy Note 3 Q&A, Help & Troubleshooting] 4aces:
Can you go one day without it and post your Battery stats? It's kinda hard to believe it is the wallpaper because:

1. Your screen was only on for 2-3 hours

2. The screen consumption is lower than Android OS and System

Does the wallpaper have any extra features?

Edit. Did you play or stay in the internet?
[Galaxy Note 3 Q&A, Help & Troubleshooting] ant2555:
There are extra features, but I have turned these off.

Did use internet but not for long

I will try changing the wallpaper. Can't think what else it could be - my phone was warming up in my pocket, with nothing in recent apps. Also wouldn't a live wallpaper be included in OS and System rather than anywhere else?
[Galaxy Note 3 Q&A, Help & Troubleshooting] 4aces:
It shouldn't be consuming when screen is off. Just checked mine:

4 hours on with screen consuming 47% and still 80% charged locked my phone consumes like 1% in 6 hours

(But I'm rooted and fully modded to your phones defense)

Edit. Unless you can say that it doesn't consume that much when not having the wallpaper I would guess it is a KitKat issue or your battery really has a problem

Final Question:

[MENTION=4784271]ant2555[/MENTION] sorry I don't know since I was rooted since jelly bean I never had the chance to look into that. I just read a lot about it being a known 4.4.2 issue. The 4.4.3 update is said to get rid of that
[Galaxy Note 3 Q&A, Help & Troubleshooting] ant2555:
Ok, I'll get back to you either tomorrow or the day after depending on results.

Final question for now, do you know what the common causes of "android system" using that much battery are?
[Galaxy Note 3 Q&A, Help & Troubleshooting] ShadowLea:
I've been using that wallpaper for almost 4 months without a drain issue. It's not the wallpaper. (maxelus.net is one of the better wallpaper devs. You need not worry about these causing a drain.)

The wallpaper does have a setting for battery saving in its settings (all the way at the bottom as 'Battery. Wallpaper Speed'). Try turning that on.

From the looks of it, you have Sync turned on. Turn if off. (drag down the notidication bar and scroll to the Sync toggle.)

Also, turn off all location services (In settings and in Google Settings(that's an app)).

And try disabling all sounds under settings --> device --> Sounds --> system. (You can elave haptic feedback on if you want.)
[Galaxy Note 3 Q&A, Help & Troubleshooting] columbo:
Do you have an SD card in your phone?

I found that my Note 3 lasts longer without one. It might just be a problem with certain brands, but mine would heat up considerably and cause the indexing service to go into overdrive.

If you have an SD card, try running your phone without it for a little while and see if that makes a difference.
[Galaxy Note 3 Q&A, Help & Troubleshooting] darkshaft:
I discovered that after charging my phone a couple of times I get a false charge which can imitate battery drain, try this code *#0228# after hitting it click Quick Start, hope that helps, if not do a complete wipe for all apps and only download trusted ones. Good luck
[Galaxy Note 3 Q&A, Help & Troubleshooting] gobraves00:
Android is and kernel killing my battery. Don't know what has changed in last few days but I'm getting 5 to 8 hours on a full charge
[Galaxy Note 3 Q&A, Help & Troubleshooting] ant2555:
Sorry for a few days, delay been doing some extensive testing. I tried without the SD card and my battery stats became even worse! See picture!

https://www.dropbox.com/s/2tq6tqrm0z7klkr/2014-06-18 17.29.14.png

Yeah, Sync was turned on and I'll try turning it, and location services off (location was on power saver mode before)

However take a look at some of my battery stats they seem very odd.

One day they seem perfectly normal: https://www.dropbox.com/s/0pprase2tqiwcq8/2014-06-12 22.38.17.png

https://www.dropbox.com/s/11pe6ozrkhuqvi7/2014-06-11 17.20.21.png

and the next they seem awful with odd draining issues, and heating up in my pocket during the day. One possible cause I thought of was because the phone was on "increased touch sensitivity mode" so may have been turning itself on in my pocket all day.

Here are some bad days:

https://www.dropbox.com/s/h0kmo7ppj0n1vc0/2014-06-17 20.13.24.png

https://www.dropbox.com/s/vlmsxhr3v6z2vl4/2014-06-17 20.29.34.png

and on a separate day: the previously mentioned: https://www.dropbox.com/s/2tq6tqrm0z7klkr/2014-06-18 17.29.14.png

https://www.dropbox.com/s/q2r5hyc5ji2ez32/2014-06-18 17.30.54.png
[Galaxy Note 3 Q&A, Help & Troubleshooting] ShadowLea:
Ahh, Google Services. That annoying bugger again. It's been causing problems on several devices.

What you can try:

Google Settings > Ads > turn on "Opt out of interest-based ads"

Disable back up under Settings > Backup & reset > uncheck "Back up my data".

Turn off Google Now.

And you can try uninstalling the recent updates to Google Play Services under settings > Applicationmanager > All > Google Play Services. Force stop, clear data, clear cache and uninstall updates (be sure to turn off auto update apps in Google Play Store first or it'll come back nearly instantly).
[General Questions and Answers] Liamalone:
Right, going to work so I plugged my car charger into my HTC One X but it didn't work. After a bit of footering it seems that with just the charger in the cigarette it seems fine, the htc sign lights up on the charger, but when I connect the phone the htc sign goes out and it doesn't charge. Turned the phone off and on, rebooted phone but no difference.

On arriving at work I checked it in another guy's car with my phone and got the same issue but when we connected his android phone it charged no problem - so it seems the issue is with my phone.

Plugged it into a wall charger and it no charge either. Still think it is strange that with the car charger it turns the light off on the actual charger. Any ideas folks?
[General Questions and Answers] banjara:
Might be an issue with your USB port. Try cleaning it once.

If you are still unable to charge using different chargers, USB cables etc then its time to visit service center or a local mobile repair shop.