Android - My app can get location information until opening Google Maps although it has related permissions












1















I am new in Android development. So my question may be too basic. Sorry for this. Now I am maintaining a previously written code.



This application use the location services of the phone. In the manifest file it is written:



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


But although users give permisson for using location services, in most cases by application can not get location directly.



For example while my app can not get location information, after opening Google Maps application, my application can always get the location information. Then I have no problem with location.But firstly I have to trigger with Google Maps.



What could cause this? Why my app can get location after opening Google Maps? Do I need another permission in my manifest file?



My code block is like the following ,



private static final int LOCATION_SERVICES_RESOLUTION_REQUEST = 9001;

private void initMainActivity() {

int fineAccessGranted = ContextCompat.checkSelfPermission(this,
Manifest.permission.ACCESS_FINE_LOCATION);
int coarseAccessGranted = ContextCompat.checkSelfPermission(this,
Manifest.permission.ACCESS_COARSE_LOCATION);
int externalWrite = ContextCompat.checkSelfPermission(this,
Manifest.permission.WRITE_EXTERNAL_STORAGE);
int externalRead = ContextCompat.checkSelfPermission(this,
Manifest.permission.READ_EXTERNAL_STORAGE);
int camera = ContextCompat.checkSelfPermission(this,
Manifest.permission.CAMERA);

ArrayList<String> permissionsNeeded = new ArrayList<String>();

if (fineAccessGranted == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.ACCESS_FINE_LOCATION);
if (coarseAccessGranted == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.ACCESS_COARSE_LOCATION);
if (externalWrite == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);
if (externalRead == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.READ_EXTERNAL_STORAGE);
if (camera == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.CAMERA);

if (permissionsNeeded.size() == 0) {
this.initMainActivityAfterPermissions();
} else {
ActivityCompat.requestPermissions(this, permissionsNeeded.toArray(new String[0]), LOCATION_SERVICES_RESOLUTION_REQUEST);
}
}


public void onRequestPermissionsResult(int requestCode, @NonNull String permissions, @NonNull int grantResults) {
// super.onRequestPermissionsResult(requestCode, permissions, grantResults);
switch (requestCode) {
case LOCATION_SERVICES_RESOLUTION_REQUEST: {
// If request is cancelled, the result arrays are empty.
if (grantResults.length > 0
&& grantResults[0] == PackageManager.PERMISSION_GRANTED) {

this.initMainActivityAfterPermissions();

} else {

}
return;
}


Code fragment that gets the location;



result =  LocationServices.FusedLocationApi.getLastLocation(instance.mGoogleApiClient);









share|improve this question




















  • 1





    How are you retrieving the location information? Do you have some code to show?

    – Giovanni Terlingen
    Nov 13 '18 at 8:26











  • @GiovanniTerlingen I added to code to my question detail

    – mhendek
    Nov 13 '18 at 8:41











  • Show the code for fetching location. What you've provided is just the permission check

    – Harish Jose
    Nov 13 '18 at 9:48











  • @HarishJose added at the end of question

    – mhendek
    Nov 13 '18 at 11:09
















1















I am new in Android development. So my question may be too basic. Sorry for this. Now I am maintaining a previously written code.



This application use the location services of the phone. In the manifest file it is written:



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


But although users give permisson for using location services, in most cases by application can not get location directly.



For example while my app can not get location information, after opening Google Maps application, my application can always get the location information. Then I have no problem with location.But firstly I have to trigger with Google Maps.



What could cause this? Why my app can get location after opening Google Maps? Do I need another permission in my manifest file?



My code block is like the following ,



private static final int LOCATION_SERVICES_RESOLUTION_REQUEST = 9001;

private void initMainActivity() {

int fineAccessGranted = ContextCompat.checkSelfPermission(this,
Manifest.permission.ACCESS_FINE_LOCATION);
int coarseAccessGranted = ContextCompat.checkSelfPermission(this,
Manifest.permission.ACCESS_COARSE_LOCATION);
int externalWrite = ContextCompat.checkSelfPermission(this,
Manifest.permission.WRITE_EXTERNAL_STORAGE);
int externalRead = ContextCompat.checkSelfPermission(this,
Manifest.permission.READ_EXTERNAL_STORAGE);
int camera = ContextCompat.checkSelfPermission(this,
Manifest.permission.CAMERA);

ArrayList<String> permissionsNeeded = new ArrayList<String>();

if (fineAccessGranted == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.ACCESS_FINE_LOCATION);
if (coarseAccessGranted == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.ACCESS_COARSE_LOCATION);
if (externalWrite == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);
if (externalRead == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.READ_EXTERNAL_STORAGE);
if (camera == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.CAMERA);

if (permissionsNeeded.size() == 0) {
this.initMainActivityAfterPermissions();
} else {
ActivityCompat.requestPermissions(this, permissionsNeeded.toArray(new String[0]), LOCATION_SERVICES_RESOLUTION_REQUEST);
}
}


public void onRequestPermissionsResult(int requestCode, @NonNull String permissions, @NonNull int grantResults) {
// super.onRequestPermissionsResult(requestCode, permissions, grantResults);
switch (requestCode) {
case LOCATION_SERVICES_RESOLUTION_REQUEST: {
// If request is cancelled, the result arrays are empty.
if (grantResults.length > 0
&& grantResults[0] == PackageManager.PERMISSION_GRANTED) {

this.initMainActivityAfterPermissions();

} else {

}
return;
}


Code fragment that gets the location;



result =  LocationServices.FusedLocationApi.getLastLocation(instance.mGoogleApiClient);









share|improve this question




















  • 1





    How are you retrieving the location information? Do you have some code to show?

    – Giovanni Terlingen
    Nov 13 '18 at 8:26











  • @GiovanniTerlingen I added to code to my question detail

    – mhendek
    Nov 13 '18 at 8:41











  • Show the code for fetching location. What you've provided is just the permission check

    – Harish Jose
    Nov 13 '18 at 9:48











  • @HarishJose added at the end of question

    – mhendek
    Nov 13 '18 at 11:09














1












1








1








I am new in Android development. So my question may be too basic. Sorry for this. Now I am maintaining a previously written code.



This application use the location services of the phone. In the manifest file it is written:



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


But although users give permisson for using location services, in most cases by application can not get location directly.



For example while my app can not get location information, after opening Google Maps application, my application can always get the location information. Then I have no problem with location.But firstly I have to trigger with Google Maps.



What could cause this? Why my app can get location after opening Google Maps? Do I need another permission in my manifest file?



My code block is like the following ,



private static final int LOCATION_SERVICES_RESOLUTION_REQUEST = 9001;

private void initMainActivity() {

int fineAccessGranted = ContextCompat.checkSelfPermission(this,
Manifest.permission.ACCESS_FINE_LOCATION);
int coarseAccessGranted = ContextCompat.checkSelfPermission(this,
Manifest.permission.ACCESS_COARSE_LOCATION);
int externalWrite = ContextCompat.checkSelfPermission(this,
Manifest.permission.WRITE_EXTERNAL_STORAGE);
int externalRead = ContextCompat.checkSelfPermission(this,
Manifest.permission.READ_EXTERNAL_STORAGE);
int camera = ContextCompat.checkSelfPermission(this,
Manifest.permission.CAMERA);

ArrayList<String> permissionsNeeded = new ArrayList<String>();

if (fineAccessGranted == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.ACCESS_FINE_LOCATION);
if (coarseAccessGranted == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.ACCESS_COARSE_LOCATION);
if (externalWrite == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);
if (externalRead == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.READ_EXTERNAL_STORAGE);
if (camera == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.CAMERA);

if (permissionsNeeded.size() == 0) {
this.initMainActivityAfterPermissions();
} else {
ActivityCompat.requestPermissions(this, permissionsNeeded.toArray(new String[0]), LOCATION_SERVICES_RESOLUTION_REQUEST);
}
}


public void onRequestPermissionsResult(int requestCode, @NonNull String permissions, @NonNull int grantResults) {
// super.onRequestPermissionsResult(requestCode, permissions, grantResults);
switch (requestCode) {
case LOCATION_SERVICES_RESOLUTION_REQUEST: {
// If request is cancelled, the result arrays are empty.
if (grantResults.length > 0
&& grantResults[0] == PackageManager.PERMISSION_GRANTED) {

this.initMainActivityAfterPermissions();

} else {

}
return;
}


Code fragment that gets the location;



result =  LocationServices.FusedLocationApi.getLastLocation(instance.mGoogleApiClient);









share|improve this question
















I am new in Android development. So my question may be too basic. Sorry for this. Now I am maintaining a previously written code.



This application use the location services of the phone. In the manifest file it is written:



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


But although users give permisson for using location services, in most cases by application can not get location directly.



For example while my app can not get location information, after opening Google Maps application, my application can always get the location information. Then I have no problem with location.But firstly I have to trigger with Google Maps.



What could cause this? Why my app can get location after opening Google Maps? Do I need another permission in my manifest file?



My code block is like the following ,



private static final int LOCATION_SERVICES_RESOLUTION_REQUEST = 9001;

private void initMainActivity() {

int fineAccessGranted = ContextCompat.checkSelfPermission(this,
Manifest.permission.ACCESS_FINE_LOCATION);
int coarseAccessGranted = ContextCompat.checkSelfPermission(this,
Manifest.permission.ACCESS_COARSE_LOCATION);
int externalWrite = ContextCompat.checkSelfPermission(this,
Manifest.permission.WRITE_EXTERNAL_STORAGE);
int externalRead = ContextCompat.checkSelfPermission(this,
Manifest.permission.READ_EXTERNAL_STORAGE);
int camera = ContextCompat.checkSelfPermission(this,
Manifest.permission.CAMERA);

ArrayList<String> permissionsNeeded = new ArrayList<String>();

if (fineAccessGranted == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.ACCESS_FINE_LOCATION);
if (coarseAccessGranted == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.ACCESS_COARSE_LOCATION);
if (externalWrite == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);
if (externalRead == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.READ_EXTERNAL_STORAGE);
if (camera == PackageManager.PERMISSION_DENIED)
permissionsNeeded.add(Manifest.permission.CAMERA);

if (permissionsNeeded.size() == 0) {
this.initMainActivityAfterPermissions();
} else {
ActivityCompat.requestPermissions(this, permissionsNeeded.toArray(new String[0]), LOCATION_SERVICES_RESOLUTION_REQUEST);
}
}


public void onRequestPermissionsResult(int requestCode, @NonNull String permissions, @NonNull int grantResults) {
// super.onRequestPermissionsResult(requestCode, permissions, grantResults);
switch (requestCode) {
case LOCATION_SERVICES_RESOLUTION_REQUEST: {
// If request is cancelled, the result arrays are empty.
if (grantResults.length > 0
&& grantResults[0] == PackageManager.PERMISSION_GRANTED) {

this.initMainActivityAfterPermissions();

} else {

}
return;
}


Code fragment that gets the location;



result =  LocationServices.FusedLocationApi.getLastLocation(instance.mGoogleApiClient);






android android-manifest






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 13 '18 at 11:09







mhendek

















asked Nov 13 '18 at 8:24









mhendekmhendek

54110




54110








  • 1





    How are you retrieving the location information? Do you have some code to show?

    – Giovanni Terlingen
    Nov 13 '18 at 8:26











  • @GiovanniTerlingen I added to code to my question detail

    – mhendek
    Nov 13 '18 at 8:41











  • Show the code for fetching location. What you've provided is just the permission check

    – Harish Jose
    Nov 13 '18 at 9:48











  • @HarishJose added at the end of question

    – mhendek
    Nov 13 '18 at 11:09














  • 1





    How are you retrieving the location information? Do you have some code to show?

    – Giovanni Terlingen
    Nov 13 '18 at 8:26











  • @GiovanniTerlingen I added to code to my question detail

    – mhendek
    Nov 13 '18 at 8:41











  • Show the code for fetching location. What you've provided is just the permission check

    – Harish Jose
    Nov 13 '18 at 9:48











  • @HarishJose added at the end of question

    – mhendek
    Nov 13 '18 at 11:09








1




1





How are you retrieving the location information? Do you have some code to show?

– Giovanni Terlingen
Nov 13 '18 at 8:26





How are you retrieving the location information? Do you have some code to show?

– Giovanni Terlingen
Nov 13 '18 at 8:26













@GiovanniTerlingen I added to code to my question detail

– mhendek
Nov 13 '18 at 8:41





@GiovanniTerlingen I added to code to my question detail

– mhendek
Nov 13 '18 at 8:41













Show the code for fetching location. What you've provided is just the permission check

– Harish Jose
Nov 13 '18 at 9:48





Show the code for fetching location. What you've provided is just the permission check

– Harish Jose
Nov 13 '18 at 9:48













@HarishJose added at the end of question

– mhendek
Nov 13 '18 at 11:09





@HarishJose added at the end of question

– mhendek
Nov 13 '18 at 11:09












1 Answer
1






active

oldest

votes


















3














Basically it means that you try to retrieve location via mFusedLocationClient.getLastLocation() and there is no location on device at this time. So you need to request location updates , like mFusedLocationClient.requestLocationUpdates.
This links will be useful https://developer.android.com/training/location/receive-location-updates?hl=es and https://github.com/googlesamples/android-play-location






share|improve this answer
























  • @VadimEskler I have a code snippte like for getting location ; result = LocationServices.FusedLocationApi.getLastLocation(instance.mGoogleApiClient); How must I edit this ? Can you help me please ?

    – mhendek
    Nov 13 '18 at 9:31













  • First the FusedLocationApi is deprecated, so you need to change it with FusedLocationClient. And then you can look to my this answer stackoverflow.com/questions/53274574/…

    – Vadim Eksler
    Nov 13 '18 at 9:45













  • @VadimEskler Sorry again. I want to ask something. I understand that this method is async. Is there a sync version of this method. Because I want to stop my code execution until getlastlocation returns. How can I handle ?

    – mhendek
    Nov 13 '18 at 11:43













  • It's totally async because there are a lot of cases that you wont get location.

    – Vadim Eksler
    Nov 13 '18 at 11:45






  • 1





    Many Thanks for your help. I will try it

    – mhendek
    Nov 14 '18 at 14:30











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53276698%2fandroid-my-app-can-get-location-information-until-opening-google-maps-although%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














Basically it means that you try to retrieve location via mFusedLocationClient.getLastLocation() and there is no location on device at this time. So you need to request location updates , like mFusedLocationClient.requestLocationUpdates.
This links will be useful https://developer.android.com/training/location/receive-location-updates?hl=es and https://github.com/googlesamples/android-play-location






share|improve this answer
























  • @VadimEskler I have a code snippte like for getting location ; result = LocationServices.FusedLocationApi.getLastLocation(instance.mGoogleApiClient); How must I edit this ? Can you help me please ?

    – mhendek
    Nov 13 '18 at 9:31













  • First the FusedLocationApi is deprecated, so you need to change it with FusedLocationClient. And then you can look to my this answer stackoverflow.com/questions/53274574/…

    – Vadim Eksler
    Nov 13 '18 at 9:45













  • @VadimEskler Sorry again. I want to ask something. I understand that this method is async. Is there a sync version of this method. Because I want to stop my code execution until getlastlocation returns. How can I handle ?

    – mhendek
    Nov 13 '18 at 11:43













  • It's totally async because there are a lot of cases that you wont get location.

    – Vadim Eksler
    Nov 13 '18 at 11:45






  • 1





    Many Thanks for your help. I will try it

    – mhendek
    Nov 14 '18 at 14:30
















3














Basically it means that you try to retrieve location via mFusedLocationClient.getLastLocation() and there is no location on device at this time. So you need to request location updates , like mFusedLocationClient.requestLocationUpdates.
This links will be useful https://developer.android.com/training/location/receive-location-updates?hl=es and https://github.com/googlesamples/android-play-location






share|improve this answer
























  • @VadimEskler I have a code snippte like for getting location ; result = LocationServices.FusedLocationApi.getLastLocation(instance.mGoogleApiClient); How must I edit this ? Can you help me please ?

    – mhendek
    Nov 13 '18 at 9:31













  • First the FusedLocationApi is deprecated, so you need to change it with FusedLocationClient. And then you can look to my this answer stackoverflow.com/questions/53274574/…

    – Vadim Eksler
    Nov 13 '18 at 9:45













  • @VadimEskler Sorry again. I want to ask something. I understand that this method is async. Is there a sync version of this method. Because I want to stop my code execution until getlastlocation returns. How can I handle ?

    – mhendek
    Nov 13 '18 at 11:43













  • It's totally async because there are a lot of cases that you wont get location.

    – Vadim Eksler
    Nov 13 '18 at 11:45






  • 1





    Many Thanks for your help. I will try it

    – mhendek
    Nov 14 '18 at 14:30














3












3








3







Basically it means that you try to retrieve location via mFusedLocationClient.getLastLocation() and there is no location on device at this time. So you need to request location updates , like mFusedLocationClient.requestLocationUpdates.
This links will be useful https://developer.android.com/training/location/receive-location-updates?hl=es and https://github.com/googlesamples/android-play-location






share|improve this answer













Basically it means that you try to retrieve location via mFusedLocationClient.getLastLocation() and there is no location on device at this time. So you need to request location updates , like mFusedLocationClient.requestLocationUpdates.
This links will be useful https://developer.android.com/training/location/receive-location-updates?hl=es and https://github.com/googlesamples/android-play-location







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 13 '18 at 8:35









Vadim EkslerVadim Eksler

395214




395214













  • @VadimEskler I have a code snippte like for getting location ; result = LocationServices.FusedLocationApi.getLastLocation(instance.mGoogleApiClient); How must I edit this ? Can you help me please ?

    – mhendek
    Nov 13 '18 at 9:31













  • First the FusedLocationApi is deprecated, so you need to change it with FusedLocationClient. And then you can look to my this answer stackoverflow.com/questions/53274574/…

    – Vadim Eksler
    Nov 13 '18 at 9:45













  • @VadimEskler Sorry again. I want to ask something. I understand that this method is async. Is there a sync version of this method. Because I want to stop my code execution until getlastlocation returns. How can I handle ?

    – mhendek
    Nov 13 '18 at 11:43













  • It's totally async because there are a lot of cases that you wont get location.

    – Vadim Eksler
    Nov 13 '18 at 11:45






  • 1





    Many Thanks for your help. I will try it

    – mhendek
    Nov 14 '18 at 14:30



















  • @VadimEskler I have a code snippte like for getting location ; result = LocationServices.FusedLocationApi.getLastLocation(instance.mGoogleApiClient); How must I edit this ? Can you help me please ?

    – mhendek
    Nov 13 '18 at 9:31













  • First the FusedLocationApi is deprecated, so you need to change it with FusedLocationClient. And then you can look to my this answer stackoverflow.com/questions/53274574/…

    – Vadim Eksler
    Nov 13 '18 at 9:45













  • @VadimEskler Sorry again. I want to ask something. I understand that this method is async. Is there a sync version of this method. Because I want to stop my code execution until getlastlocation returns. How can I handle ?

    – mhendek
    Nov 13 '18 at 11:43













  • It's totally async because there are a lot of cases that you wont get location.

    – Vadim Eksler
    Nov 13 '18 at 11:45






  • 1





    Many Thanks for your help. I will try it

    – mhendek
    Nov 14 '18 at 14:30

















@VadimEskler I have a code snippte like for getting location ; result = LocationServices.FusedLocationApi.getLastLocation(instance.mGoogleApiClient); How must I edit this ? Can you help me please ?

– mhendek
Nov 13 '18 at 9:31







@VadimEskler I have a code snippte like for getting location ; result = LocationServices.FusedLocationApi.getLastLocation(instance.mGoogleApiClient); How must I edit this ? Can you help me please ?

– mhendek
Nov 13 '18 at 9:31















First the FusedLocationApi is deprecated, so you need to change it with FusedLocationClient. And then you can look to my this answer stackoverflow.com/questions/53274574/…

– Vadim Eksler
Nov 13 '18 at 9:45







First the FusedLocationApi is deprecated, so you need to change it with FusedLocationClient. And then you can look to my this answer stackoverflow.com/questions/53274574/…

– Vadim Eksler
Nov 13 '18 at 9:45















@VadimEskler Sorry again. I want to ask something. I understand that this method is async. Is there a sync version of this method. Because I want to stop my code execution until getlastlocation returns. How can I handle ?

– mhendek
Nov 13 '18 at 11:43







@VadimEskler Sorry again. I want to ask something. I understand that this method is async. Is there a sync version of this method. Because I want to stop my code execution until getlastlocation returns. How can I handle ?

– mhendek
Nov 13 '18 at 11:43















It's totally async because there are a lot of cases that you wont get location.

– Vadim Eksler
Nov 13 '18 at 11:45





It's totally async because there are a lot of cases that you wont get location.

– Vadim Eksler
Nov 13 '18 at 11:45




1




1





Many Thanks for your help. I will try it

– mhendek
Nov 14 '18 at 14:30





Many Thanks for your help. I will try it

– mhendek
Nov 14 '18 at 14:30


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53276698%2fandroid-my-app-can-get-location-information-until-opening-google-maps-although%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







這個網誌中的熱門文章

Academy of Television Arts & Sciences

L'Équipe

1995 France bombings