Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How to open location services with corona
Started by dorukatak Sep 05 2016 11:54 PM

3 replies to this topic
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

dorukatak

[GLOBAL: userInfoPane.html]
dorukatak
  • Observer

  • 5 posts
  • Corona SDK

Hi all,

 

 

i need open location services how can I do that using corona.

 

(not permission , location services or location settings page )

 

Attached Files



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,042 posts
  • Enterprise

This forum thread will hopefully answer this for you:

 

https://forums.coronalabs.com/topic/37105-handling-url-scheme-on-android/

 

This is the Intent you need (I think.)

android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS

 

I've not tested this.

Rob



[TOPIC: post.html]
#3

dorukatak

[GLOBAL: userInfoPane.html]
dorukatak
  • Observer

  • 5 posts
  • Corona SDK

Rob thank you for answer but  I didn't understand , little bit more you can help ? :)



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 26,042 posts
  • Enterprise

My apologies. Those instructions are to let other apps open your app which is the opposite of what you're wanting to do. I don't know of a way to do this from Corona SDK. It would be quite easy to do with Corona Enterprise.

 

Rob




[topic_controls]
[/topic_controls]