I have an app which open urls via app links. In some cases I need to open external browser, because I cannot resolve link.
If user select always open my app and I need to open external browser - I clear app defaults by this:
activity.getPackageManager().clearPackagePreferredActivities(MyPackageUtils.getPackageName(MyApplication.getContext()));
This causes, that chooser dialog open again.
I test it on 5 devices, on 4 everything is OK.
But on Samsung Galaxy S6 with android 6.0.1, dialog don't appear.
And in app detail I see "Go to supported URLs" -> "Via this app".
If I install app, default settings is "Always Ask".
And clear defaults button always has clickable set to false.
Is there any way to set "Go to supported URLs" back to "Always ask"?
Related
I used to be able to override a flag in Chrome to hide the default share screen, thus giving direct/one-tap access to all the apps on my phone, but the option appears to be done now with Android 10.
I guess it could be sharing from any app on my phone, not just Chrome.
Any other way to do this?
Thanks.
I have 3 Android devices.
Android 7.1, Chrome v71 latest version
Android 8.0, Chrome v71 latest version
Anrdoid 8.1, Chrome v71 latest version
I tested PWA's "Add to home" feature and some weird behavior in chrome browser
First device always ask "Add to home" when access website even though already installed it.
Second and Third device only ask "Add to home" when PWA not installed.
Also I tested Android Simulator v8.0 was same thing first device.
I have no idea why each browsers show different work.
Based from this documentation, starting in Chrome 68 on Android, Chrome will no longer show the add to home screen banner.
If the site meets the add to home screen criteria, Chrome will show the mini-infobar. Then, if the user clicks on the mini-infobar, or you call prompt() on the beforeinstallprompt event from within a user gesture, Chrome will show a modal add to home screen dialog.
In Android Studio 2.X, when I launch the app for the first time, a device picker dialog opens and there is a checkbox saying something like "Use the same device for future launches". When I check this checkbox, when I launch the app again, the device chooser doesn't appear, and the app directly runs on the previously chosen device.
But in Android Studio 3.0, above mentioned check box is no longer there, so it asks me to choose the device every time I launch the app.
Is there any way to achieve the previous behavior?
You can go to Run > Edit Configurations and Select emulator as Target or simply check the checkbox Use same device for future launches.
I am building a browser for Android and cant get set default browser to work for Xiaomi MIUI phones.
I realised that no other browsers made this work either. The default dialog pops up and I select my browser and tap always, but it fails to set it correctly and falls back to OS default browser.
Since other browsers cant do this either I gave up the idea and now thinking on sending the user to the right settings menu instead for manually setting it. (There is a settings menu for setting default browser in MIUI thats works when doing this manually)
Does someone know the intent for opening this menu from my app?
I cant find a complete lists of extra intents available.
What I found is the following list but it does not have anything for default browser settings menu.
https://github.com/ChameleonOS/miui_framework/blob/master/java/miui/content/ExtraIntent.java
Is there any option how to enable log on this device? On other devices we have "Take bug report" option in developer options , but on NoteII this option is missing. (The developer options is visible). We have try everything (alogcat, press power+volume button).
As stated here, you will need to do the followings:
If you’ve found that the Developer Options selecting is missing from the Settings of your Android device, it’s probably because you have version 4.2 (JellyBean) of the Android OS. The option is now hidden and has to be enabled first.
Open the Settings app.
Scroll down to the bottom and select About phone or About tablet.
Scroll down to the bottom and tap Build number repeatedly. A message should appear on the screen that says “You are now 4 steps
away from being a developer.” Keep tapping until it says “You are now
a developer.”
4. Now back on the main Settings screen, Developer Options should appear as a selection.
If you are using an older version of android for siii then followw Samsung Galaxy S3: Enable/Disable USB Debugging .