From Web application that consists of only web pages. In that, I need to open android settings activity. How to invoke it?
Invoke android settings from web page URL?
19.4k Views Asked by Marsh K At
2
There are 2 best solutions below
0
Tuan-Tu Tran
On
Based on:
- https://developer.chrome.com/multidevice/android/intents
- https://developer.android.com/reference/android/provider/Settings#ACTION_SETTINGS
I feel like it should be possible with something like
<a href="intent:#Intent;action=android.settings.SETTINGS;end;">open settings</a>
but it does not work, for some reason I can't figure out.
I wanted to post the same question with my failing solution and ask what was wrong with my solution.
I guess I'll just post an wrong answer instead.
edit: here's another reference:
Open android application from a web page
edit2: I did some more digging and I think I found out what's wrong with this solution:
Opening Location Settings Activity from Chrome on Android
and its answer:
https://stackoverflow.com/a/46175726/10028142
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in ANDROID-WEBVIEW
- Delay in loading Html Page(WebView) from assets folder in real android device
- Error:(29, 6) Error: The element type "input" must be terminated by the matching end-tag "</input>"
- Controlling navigation in the Android WebView class
- Android - WebView onReceivedError opposite
- Weird rendering of components after Android System WebView update
- Allow access to local assets in android
- Update Android System WebView on SDK Emulator
- How can I control android webview activity changes when I change screen orientation?
- Supporting WebGL on Android 5's WebView
- Webview causes ANR
- How do I load url from Bundle in Android
- Get parent html element on click
- Focusing on <input type=number> in Android browser the page scrolls to the bottom
- Delay popping up a dialog fragment till a webview within has completed loading
- Is it possible login into website programmatically with android?
Related Questions in ANDROID-5.0-LOLLIPOP
- Android 5.0 Admin Policy startActivityForResult
- Android 5.0 Overview screen displays two snapshots when any dialog is opened
- Android design support library with Theme.Material
- Android - Kill an app when screen turned off or screen times out
- Black screen after updating Google Play Services:7.5.0
- ProgressBar not running smoothly loolipop
- Android Lollipop issues with text color
- Android - footer scrolls off screen when used in CoordinatorLayout
- application not working in API 21
- Android 5(HTC) EACCES (Permission denied)
- Touch feedback on menu item with actionLayout
- PackageManager.checkSignatures not working on Lollipop
- Android 5.0 does not respect view's margins
- Dialog FLAG_DIM_BEHIND doesn't work on Android 5.x (Lollipop)
- CameraManager on devices running lower than Lollipop
Related Questions in ANDROID-WEBSERVICE
- Is it possible login into website programmatically with android?
- PHP Session variables are not creating while using nusoap webservice from android device
- How to secure the apis and relevant data from displaying in android monitor?
- Is it possible to get dataset which is returned by asp.net webservice on Android using SOAP ?
- Android localhost url is not working for tomcat 7
- i am trying to fetch the json post data from android app to php web service but it can't fetch. the code show below which i used
- Parsing issue in SAX parser android
- How do I write a webview to automatically sign into my yahoo account?
- How to invoke Webview button clickevent in Android?
- which one is best web service like Asynk task and volley web service in android
- Webservice, unable to set cast in program
- Getting error while applying Glide dependency
- Android Login & Registration using Web service or ASP.NET denying a passed strings with KSoap2
- Invoke android settings from web page URL?
- How to request for login with email and plain text password in cakephp3
Related Questions in ANDROID-5.1.1-LOLLIPOP
- Can we display Old Style Time picker (Pre Lollipop Time Picker ) in lollipop devices
- Update Android System WebView on SDK Emulator
- App Cold start or App Lauch times are increased in lollipop compared to kitkat
- SwitchPreference Callback behaviour change in lollipop
- How do I enable/disable USB tethering on android 5.1.1 programmatically?
- DefaultHttpClient hangs on execute() method in lollipop
- Android (Lollipop) cannot detect ongoing phone call from second SIM
- Media Recorder Start Failed -19 on Nexus 9 Android Lollipop 5.1.1
- How to get notification background color and dynamically change the text color based on results from background color
- Job Scheduler Not starting instantly on Android Lollipop(5.1.1)
- FloatingActionButton doesn't work properly
- Why does buildozer show Error: Activity class {org.test.myapp/org.renpy.android.PythonActivity} does not exist
- Open 3rd party application(It is also my application) from a application in KIOSK mode android L(5.1 api level 22)
- Blank screen when open camera in lollipop
- Check permissions on xiaomi device with a version below api 23
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You cannot invoke Android Settings from web unless you have app which handle custom uri scheme.
to invoke application in android from Webpage there needs to be app which handles call from particular Uri Scheme in android app on android device.
you can create android app which handle custom uri scheme like below for activity to be invoked when url is visited in browser.
myapp://opensettings
if application is exist on android device which handle above uri scheme then you can call setting dialog from your android app after user redirect to myapp://opensettings url in browser.