I am fairly new to Android development, and I'm running into a strange issue with an app I'm trying to develop to get up-to-speed. Sometimes this app seems to work fine, but most of the times it does not. I'm trying to simply set the GPS lat/long…
How to find user updated location after every 30 minutes but there is no requirement to draw the map... The requirement is just to find the location and send it to any server after every 30 minutes.???
Thanks in advance...
I have gone through many posts on SO regarding this issue:
Tried everything in Here,
Here and Here Nothing works. Everytime location is null. On device and on emulator :(. My GPS is on,internet is on and my manifest has following…
I would like to know what is the best way of saving the latitude and longitude from the onLocationChanged() method.
Is it by using SharedPreferences, or an I*ntent/BroadcastReceiver*?
Thanks.
I am trying to get latitude and longitude of user. I created a basic app. When I run it and feed latitude and longitude it restarts the OS in emulator. How can I fix this?
Here is my code
public class MGeolocationActivity extends Activity {
TextView…
I have a foreground service which implements LocationListener. When the Service is killed, it keeps on getting a fix. However this is what I call in the onDestroy()
@Override
public void onDestroy() {
Log.e(getPackageName(), "Destroying…
I want my code to wait for mGPS.GotLocaton to be true (set when the onLocationChanged event is fired)
public class GPSManager {
Context MyContext;
boolean GotLocation = false;
Location CurrentLocation;
LocationManager…
Im working on google maps app, the problem is when i placed a marker for the latitude and longitude (i manually entered the gps co-ordinates), the marker shows some what correct place but not the exact one, it was placed some far distance to that…
I am using Timer and TimerTask in my Service and I am scheduling GPS to check periodically using this method @ Service - onCreate()
scheduleAllGPST.scheduleAtFixedRate(new AllGPSTimer(), 0,
…
I have one problem in my application,
The GPS satellite icon on the title bar keeps coming on and off . Even when I have no connection to internet?How to disable this icon when internet is disconnected?
I need a little help with some information/help about LocationManager in Android. I'm using this code to get user's specific information depending on his location,but in some situations I get provider=null (I'm not pretty sure when,because that…
Here is the Problem
NearbyFragment.class:
@Override
public void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode ==…
Hi guys I am new to the game and am currently trying to develop a weather app for my portfolio, however I have encountered a few problems. Apparently the locationrequest method is deprecated and I would like to know how to alternatively request…
Often when I request the latitude/longitude I receive an approximate value (around 300m of my actual position) and sometime it's also take a very long time to retrieve the latitude/longitude. but when I open google map my position is always very…
I have received an email from google that one of my apps needs to change the location permission from background to foreground....
I took a look at the app and it seems that is already on foreground... my permissions on my manifest…