nikolaus Member Licensed User Longtime User Aug 9, 2014 #1 Hi, to register my browser as URL/Html handler in manifest editor I added: B4X: AddActivityText(Main, <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="http" /> <data android:scheme="https" /> <data android:mimeType="text/*" /> <data android:mimeType="application/xhtml+xml" /> </intent-filter>) The manifest.xml created contains: B4X: <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="http" /> <data android:scheme="https" /> <data android:mimeType="text/*" /> <data android:mimeType="application/xhtml+xml" /> </intent-filter> But my browser doesn't handle any URL clicked in other apps like Email or GooglePlay. I only gent an error message respectively Play crashes. In standard applications there is no browser registered and Default App Manager says there is no browser. I do not find any mistake. Maybe I'm blind
Hi, to register my browser as URL/Html handler in manifest editor I added: B4X: AddActivityText(Main, <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="http" /> <data android:scheme="https" /> <data android:mimeType="text/*" /> <data android:mimeType="application/xhtml+xml" /> </intent-filter>) The manifest.xml created contains: B4X: <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <data android:scheme="http" /> <data android:scheme="https" /> <data android:mimeType="text/*" /> <data android:mimeType="application/xhtml+xml" /> </intent-filter> But my browser doesn't handle any URL clicked in other apps like Email or GooglePlay. I only gent an error message respectively Play crashes. In standard applications there is no browser registered and Default App Manager says there is no browser. I do not find any mistake. Maybe I'm blind
nikolaus Member Licensed User Longtime User Aug 9, 2014 #2 This is working: B4X: AddActivityText(Main, <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="http" /> <data android:scheme="https" /> <data android:scheme="javascript" /> </intent-filter> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="http" /> <data android:scheme="https" /> <data android:scheme="inline" /> <data android:mimeType="text/html" /> <data android:mimeType="text/plain" /> <data android:mimeType="application/xhtml+xml" /> </intent-filter>) Sometimes you just have to ask a question to find the solution Upvote 0
This is working: B4X: AddActivityText(Main, <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="http" /> <data android:scheme="https" /> <data android:scheme="javascript" /> </intent-filter> <intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="http" /> <data android:scheme="https" /> <data android:scheme="inline" /> <data android:mimeType="text/html" /> <data android:mimeType="text/plain" /> <data android:mimeType="application/xhtml+xml" /> </intent-filter>) Sometimes you just have to ask a question to find the solution