Open up device settings

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

Post Reply
EddieLee
Posts: 23
Joined: Thu Oct 25, 2018 1:06 pm

Open up device settings

Post by EddieLee » Fri Jan 18, 2019 9:32 pm

Hi,

I have a notification settings function that i would like to build. Is it able that when the user clicks on a button, it will open up the application permission and the user would be able to off the notification?

This development is only for android applications only.

EddieLee
Posts: 23
Joined: Thu Oct 25, 2018 1:06 pm

Re: Open up device settings

Post by EddieLee » Mon Jan 21, 2019 2:26 pm

Or is there anyway then when a user presses a button, it will open the settings application of the device?

bogs
Posts: 3370
Joined: Sat Feb 25, 2017 10:45 pm

Re: Open up device settings

Post by bogs » Mon Jan 21, 2019 5:01 pm

Well, you can open the settings through code, but how you would do it in Lc isn't something I know, nor am I sure it is even possible, as I don't see it in the Lessons here, or here.

Of course, that doesn't mean it is not possible. Hopefully someone that knows for sure will chime in :D
Image

EddieLee
Posts: 23
Joined: Thu Oct 25, 2018 1:06 pm

Re: Open up device settings

Post by EddieLee » Wed Jan 23, 2019 6:49 am

Hi bogs

Thanks for the help, would hope someone with this knowledge to provide some help.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6624
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Open up device settings

Post by FourthWorld » Wed Jan 23, 2019 8:46 am

Does the Settings app have a URL scheme? If so I would imagine "launch URL <URL>" would work.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

EddieLee
Posts: 23
Joined: Thu Oct 25, 2018 1:06 pm

Re: Open up device settings

Post by EddieLee » Wed Jan 23, 2019 3:45 pm

Hi fourth world,

I figure URL would work but idk what's the URL scheme for settings, any idea?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6624
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Open up device settings

Post by FourthWorld » Wed Jan 23, 2019 4:25 pm

I haven't looked into it, but the OS docs should provide it if available. If not, I'll bet there's a lower level API available, and that could be accessed via LiveCode Builder.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

EddieLee
Posts: 23
Joined: Thu Oct 25, 2018 1:06 pm

Re: Open up device settings

Post by EddieLee » Wed Jan 23, 2019 9:11 pm

Hi fourth world

I'll try and keep this post updated with my progress

Post Reply

Return to “Talking LiveCode”