Vote count:
0
If you want to use Dropbox from an app, you have to register at Dropbox and you will get an app-key and an app-secret. Because it is very insecure to code the password and the key in the app from my own dropbox account, each user should register himself at Dropbox. In the app they have to input the key and secret in an the Dropbox options.
Now my question. How can I replace programmaticaly the data of the intent-filter with the real value from the options? Or is it another way to handle this?
I have the following intent-filter in my manifest file:
<activity
android:name="com.dropbox.client2.android.AuthActivity"
android:launchMode="singleTask"
android:configChanges="orientation|keyboard">
<intent-filter>
<!-- Change this to be db- followed by your app key -->
<data android:scheme="db-xxxxxxxx" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE"/>
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
asked 39 secs ago
modify intent filter programmatically
Aucun commentaire:
Enregistrer un commentaire