Android :: Gps Off Even Though Location Updates Requested / Why Is This?
Nov 5, 2010
All actually I have two problem right now with gps provider. I have samsung spica so maybe this is something in a hardware.
1. location's accuracy is always set to 0 - can anybody explain it, is it phone specific? or something Im doing wrong.
2. I created activity that starts service in same thread and the service requests location updates every 15sec or 20meters so gps are going off for that time and when I have activity in foreground and bound to service I can see location update if I move 20m.
but when I turn my mobile into sleep mode or start another foreground activity it seems like gps is never back so i dont have location updates.
this is strange because before I set 0s while requesting updates and it worked fine - probably because gps was always on.
so again is this something Im doing wrong? should I run service in separate thread? I just run out of ideas!
View 3 Replies
Nov 10, 2010
i am using following code to get GPS location.now i want to get GPS location without automatic updates.for example i want to get latest location on button click only once not all the time.so please tell what value should i use for minTime and Distancewhile getting location updates for once and without intervals and automatic updates?and should i call location updates in that button instead of onResume ?
View 1 Replies
View Related
Jun 9, 2010
I need to update the location through GPS in the background even when the phone is in sleep. I am thinking to use AlarmManager to broadcast an Intent and then a receiver will call requestLocationUpdates() on LocationManager. But I am not sure whether it's guaranteed that the GPS location will be updated when the phone is in sleep and an intent will be broadcasted if I registered a PendingIntent when call requestLocationUpdates()?
View 1 Replies
View Related
Jun 24, 2010
In this code I request location updates from GPS
locMan.requestLocationUpdates(LocationManager.GPS_PROVIDER,20000, 1, gpsListener);
But how can I make sure it listens for Wifi or Cell ID updates too?
View 1 Replies
View Related
Oct 2, 2009
I'm working on a 1.5 Android application. Developing in Eclipse 3.4.2 on Windows XP. I have a MapView, have requested updates, etc.
The problem is that after the first manually injected GPS coordinate, the app stops recognizing that a GPS coord has been sent.
CODE:..........
Then MyLocationListener simply changes the value in a TextView to match the new GPS coordinate.
CODE:..........
I added some logging in the onLocationChanged method and it only ever sees a Location the first time that I attempt to send an update. All subsequent ones don't fire the onLocationChanged method.
Additional info:
The logcat output is as follows:
10-02 17:22:34.423: INFO/gps(6671): Provider gps is has status changed to 1. Extras: Bundle[mParcelledData.dataSize=52]
First GPS update is faked:
CODE:............
According to http://developer.android.com/reference/android/location/LocationProvider.html#AVAILABLE , that 2 maps to "Available".
As soon as that "Available" gets set, no other locations get passed through. Seems a bit counterintuitive.
View 1 Replies
View Related
May 15, 2013
I need to create a location update program which updates my location and send to the latest updated occasionally other named one's which has same application.
View 1 Replies
View Related
Jun 3, 2010
How do I get the weather and location to update more often? Because there was a thunder storm and my Eris told me that I was in the town next to me and that it was partly cloudy. So is there a way to get more frequent weather and location updates?
View 1 Replies
View Related
Nov 23, 2012
I've set Latitude to be updated manually (location set manually) and I update it with Latify.
Every once in a while, I notice my battery draining faster than usual and I check my Latitude settings and there it is. Latitude has changed it's location update settings to "automatically update".
I swap sim cards out quite often as I travel between a few countries for work. Is that the cause?
View 1 Replies
View Related
Jul 27, 2010
I am using Google Latitude and my location updates are very infrequently.
My update reach from half and hour to 7 hours. Often it only updates every 3 hours. My battery is full to 3/4 at this time.
According to Google the updates depend on how often you move and how strong your battery is, but the update will never take longer than 1 hour.
Do you guys experience the same problem?
View 5 Replies
View Related
Aug 8, 2010
While using network provider for location updates, I found that it is the same time that I set on my device. Can it not be that provided by network as it goes when it is GPS. Or if network provider cannot provide time , then atleast location.getTime() should return 0 instead of device time. Is there any way to avoid device time, as I want to distinguish it.
View 1 Replies
View Related
May 27, 2010
For the current application/widget I'm creating I have not set any permissions yet, altough the apk files I have already generated (for example this one: http://code.google.com/p/workregistrationwidget-android/downloads/det...) on install it notifies the users that it requests both SD card access and phone state access. The application source is available here: http://code.google.com/p/workregistrationwidget-android/ Can anyone have a look and tell me what I do wrong or is it just a bug?
View 4 Replies
View Related
Apr 27, 2010
I am trying to get the GPS location of my HTC magic using the following code...
View 2 Replies
View Related
Jun 5, 2009
I have written some app which connects to server and fetches some data. Here is the response I am getting. HTTP/1.1 416 Requested Range Not Satisfiable Content-Type: text/html Content-Length: 0 Expires: Fri, 05 Jun 2009 07:29:49 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Connection: keep-alive X-N: I am not understanding this. I just established a socket connection. I am not understanding is it my coding problem or server problem.
View 2 Replies
View Related
Oct 2, 2010
I am developing on 2.1 and location updates will not resume after removing them and adding them again.Is this an issue with the system?
View 2 Replies
View Related
May 23, 2010
I am using Android emulator with AVD of Android 2.1 and I have the following problem: Trying to load a URL in a WebView using webView.loadUrl causes it to open in the browser instead.Note: I am talking about the initial opening, not the issue in which links from the WebView open in a browser, though, perhaps it is somehow connected.I've tried several things:I've removed <uses-permission android:name="android.permission.INTERNET" /> from the manifest. That actually made it work correctly, i.e, load the html into the webview. However, as one would expect, the only thing it loaded is "unable to connect the internet" error page.I've debugged the project to make sure and indeed at loadUrl function, it opens Android browser. The CatLog at this point is as such:05-23 22:54:06.858: INFO/Activity Manager(51): Starting activity: Intent { act=android.intent.action.VIEW cat=[android. intent. category.BROWSABLE]dat=http://m.walla.co.il/ErrorPage.aspx?ReturnUrl=/Default.aspx
cmp=com.android.browser/.BrowserActivity i've tried downloading a real sample project ("Hello Android" book source files, project - BrowserView). However, it didn't work just the same. I've created a new project and followed the directions at Google's official tutorial of using WebView and got the same result.I haven't find anyone else complaining about it. Why does it happen?
View 3 Replies
View Related
Aug 10, 2010
I have the new Droid X but I love the Weather app that came on his phone, how it updates his location as he moves about as well as the weather updates. This would be greatly beneficial to me as I travel all day and work outside. Anyone know of a weather widget that does this?
View 10 Replies
View Related
Sep 15, 2010
I am new to the android phone. The button settings on my home screen on my Epic have 5 icons. No matter which icon is 2nd to the left, it never opens. It gives me "could not launch the requested activity". Currently it is the "envelope" icon.
View 2 Replies
View Related
Oct 28, 2010
I have been trying to download the onstar app from the market, but my market can't find it. I am able to find it with appbrain, but it says requested item could not be found when I try to download it.
Other people seem to have no problem with it, so I can only figure it has something to do with being rooted. Has anyone else had this problem, or is there a way to get the app without going through the market?
View 4 Replies
View Related
Oct 26, 2010
I'm developing a mapping app using Eclipse 3.5.I'm setting the minimum update period with the LocationManager's requestLocationUpdates method, via a configuration activity. When I set the property I see in Logcat that the system process sets the value OK.When I actually send a new location from the DDMS emulator control and the location changes on the map view, I see that the system process then sets the minimum time to zero.Below is a capture of the system's log messages. You can see that I'm setting the period to 32 seconds, then 16, then, after I've sent a simulated location change the system sets it to zero.The map responds to location changes to location changes instantly even if they are sent only a couple of seconds apart.
View 1 Replies
View Related
Sep 17, 2010
In my application I have to fetch the current location. First it correctly fetches the location. But we are moving from the current location to some other location. It shows the previous address. It is not updating the location. My code is: locManager = (LocationManager)getSystemService(Context.LOCATION_SERVICE); locListener = new MyLocationListener();locManager.requestLocationUpdates(LocationManager .GPS_PROVIDER ,0,0,locListener); location = locManager.getLastKnownLocation(LocationManager.GPS_PROVIDER);if(location != null){latitude = location.getLatitude();longitude = location.getLongitude();} Please find the mistake and when i launch first time it is not working on second time itself it is working so check this thing also.
View 1 Replies
View Related
Jan 27, 2010
I have an application which uses the network as the location provider (rather than GPS eg.), however I can't seem to figure out how to send the emulator test coordinates. In DDMS I would usually send coordinates in the Emulator Control tab.Is there a place to simulate coordinates derived from the cell phone network provider?
View 6 Replies
View Related
Mar 4, 2010
I want to override the method enableMyLocation() in MyLocationOverlay class, in order to implement my own positioning algorithm to get latitude/longitude, and then plot them onto a MapView. I figured out how to do that, but now I'm stuck because I dont know what Canvas to pass when I call the method drawMyLocation().
Here is the MyLocationOverlay class
View 4 Replies
View Related
Jun 25, 2009
The way we are retrieving locations from our Android phones is to 1st get a Coarse Location followed by a Fine Location. This is for the case where the user may be inside a building initially and unable to track satellites. After we get our coarse location we transition to a fine location to track satellites. This method has been working fine for several months. We recently upgraded to 1.5 and our mapping application, to my recollection continued to work.For the past couple of days we have not been able to get a coarse location and we are receiving a status message in the onStatusChange callback of.We have re- installed previous versions our code that used 1.1 and we are receiving the same status message of .TEMPORARILY_UNAVAILABLE. Other than the obvious description of the constant, we can find no meaningful information.
View 2 Replies
View Related
Mar 15, 2013
Recently all my android devices think they are in Spain when I am at home in Toronto.
I think this was caused when I ran a location spoofing program on only one of my devices, one of the locations I set it to was Spain (among others).
I've tried clearing the data for the Network Location apps, changing the SSID on my router with no luck.
The only way it shows the correct location is when I go outside and run Google maps long enough to get a GPS fix. But when I go back inside I am back in Spain!
The devices this is affectingGalaxy Nexus with my google account
Nexus 7 with my google account
Galaxy S3 with my google account
Galaxy S2 without my google account
View 2 Replies
View Related
Apr 2, 2010
Is there any way to specify the time intervals that the Location Manager broadcasts the current location?
I am using a method called startListening:
CODE:.....................
View 5 Replies
View Related
Aug 12, 2010
I've found bits and pieces of this answer scattered through other posts, but I wanted to record it here for others.How can I simply request the user's GPS and/or Network location and, if they haven't enabled the service, prompt them to do so?
View 1 Replies
View Related
Nov 14, 2010
How could I fix the location which appears on the clock on the home screen and serves as weather forecast location? I am not living near a big city listed on the weather location list and when at home, the current location usually is indicated some dozen miles away from my home. This could be a cosmetic problem, but in the Alps (where I am living) weather a short distance away can be quite different from where you are.
Besides that, it would be nice to know the weather at home while beeing abroad.
View 3 Replies
View Related
Jul 2, 2010
i've had my phone about 3 weeks now. up until last week, the htc weather widget would update to my current location. when i was home, it would show the town i live in. i also had the google internet option to use my location and this would also work perfectly until last sunday.now, the weather location was stuck on miami no matter where i went (as far north as west palm beach) and the internet shows up 'location unavailable'. i have found out that the gps is picking up where i am in goggle maps but it seems that the cell towers are not as far as weather and internet location are concerned. i have tried all of the obvious settings.i did a factory reset and now my weather says ft lauderdale which is closer to me but still not my town. it does not update (manually either) as i move. the internet location still says location unavailable although for a fleeting minute after the factory reset, it DID locate me....then it was gone so i called verizon, they didn't have a clue. then i took it to the store and it turns out EVERY phone the tech tried in the store had the same problem, including his. he told me it was a google problem and there was nothing he could do about it. i felt if i tried explaining how that would make it a verizon problem as well, it would be a losing battle
View 7 Replies
View Related
Jun 7, 2010
I am having problems with the quick search feature. I did a random search for Mcdonalds and a map pulls up that is no where around me. I clicked update location but it says my location is unavailable. I have GPS enabled and my navigation app works just fine.
View 1 Replies
View Related
May 10, 2013
today i was trying to open my old workspace projects by Eclipse but the old projects used old SDK path n so when i try to change my SDK location the eclipse not allow me tho submit my new location how i can solve this problem
View 1 Replies
View Related