I am creating an Android app with Titanium Appcelerator.
I'd like register my app to MIME type for opening a .json file
The relevant section from my TiApp file is as follows:
<activity
android:configChanges="keyboardHidden|screenSize"
android:label="@string/app_name"
android:name=".DavideActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.AppCompat.Translucent">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity>
<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="file"
android:mimeType="*/*"
android:pathPattern=".*\\.json"
android:host="*"></data>
</intent-filter>
</activity>
Am I missing something here?
Any help would be much appreciated.
Aucun commentaire:
Enregistrer un commentaire