Skip to content

Commit

Permalink
android 12 queries
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ga committed Nov 23, 2021
1 parent 2852b38 commit 09885eb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion android/src/ti/webdialog/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public static int[] getStyleableIntArray(String packageName, String name)
// return the list of all available & enabled browsers in device
public static List<ResolveInfo> allBrowsers(Context context)
{
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.testingurl.com"));
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://localhost"));
return context.getPackageManager().queryIntentActivities(intent, 0);
}

Expand Down
16 changes: 10 additions & 6 deletions android/timodule.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<ti:module xmlns:ti="http://ti.appcelerator.org" xmlns:android="http://schemas.android.com/apk/res/android">
<!--
Similar to tiapp.xml, but contains module/platform specific
configuration in <iphone>, <android>, and <mobileweb> sections
-->
<iphone>
</iphone>
<!-- Similar to tiapp.xml, but contains module/platform specific configuration in <iphone>, <android>, and <mobileweb> sections -->
<iphone></iphone>
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<queries>
<intent>
<action android:name="android.intent.action.VIEW"/>
<data android:scheme="http"/>
</intent>
</queries>
</manifest>
</android>
</ti:module>

0 comments on commit 09885eb

Please sign in to comment.