I'm getting the error message for the XML file.
Error occurred on line: 108 (Main)
java.lang.IllegalStateException: URI scheme in your app's manifest is not set up correctly. You should have a com.dropbox.core.android.AuthActivity with the scheme: db-xxx
ecc ecc....
The two points that are not clear to me are:
1) Where exactly in the manifest file should I insert this piece of xml? At the beginning? At the end? Or at a specific point?
My File Manifest is this
2) What should I write in place of db-xxx? In the instructions it is indicated to change db-xxx with db-yourappkey .. but what exactly would it be (db-yourappkey)? My email with which I am registered with DropBox?
Or what? Can you give me an example?
Thanks a lot for your help
B4X:
Sub btnStartOAuth_Click
auth.startOAuth2Authentication
End Sub
Error occurred on line: 108 (Main)
java.lang.IllegalStateException: URI scheme in your app's manifest is not set up correctly. You should have a com.dropbox.core.android.AuthActivity with the scheme: db-xxx
ecc ecc....
The two points that are not clear to me are:
1) Where exactly in the manifest file should I insert this piece of xml? At the beginning? At the end? Or at a specific point?
XML:
AddApplicationText(<activity
android:name="com.dropbox.core.android.AuthActivity"
android:configChanges="orientation|keyboard"
android:launchMode="singleTask" >
<intent-filter>
<data android:scheme="db-xxx" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>)
My File Manifest is this
XML:
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="b4a.MioDropbox"
android:versionCode="1"
android:versionName=""
android:installLocation="internalOnly">
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="28"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<application
android:icon="@drawable/icon"
android:label="Mio Dropbox"
android:theme="@style/LightTheme">
<activity
android:windowSoftInputMode="stateHidden"
android:launchMode="singleTop"
android:name=".main"
android:label="Mio Dropbox"
android:screenOrientation="unspecified">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service android:name=".starter">
</service>
<receiver android:name=".starter$starter_BR">
</receiver>
</application>
</manifest>
2) What should I write in place of db-xxx? In the instructions it is indicated to change db-xxx with db-yourappkey .. but what exactly would it be (db-yourappkey)? My email with which I am registered with DropBox?
Or what? Can you give me an example?
Thanks a lot for your help