I am creating an mp3tag editor and want it to get started via the android-buildin-filebrowser “myfiles” (com.sec.android.app.myfiles/com.sec.android.app.myfiles.MainActivity) .
When i select a mp3 file i get an activity chooser that offers me two programs to execute the file.
Unfortunately my own program is not among the offered choises.
However if i use the external android-filebrowser OI File Manager it offers me a chooser
which includes my own app.
My question: how do i have to register my actrivity in the manifest so that “myfiles” can launch it?
My app is registered like this:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="media.mp3"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="7" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity
android:label="@string/app_name"
android:name=".Mp3TagEditorActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.EDIT" />
<category android:name="android.intent.category.VIEW" />
<data android:mimeType="audio/mpeg" />
</intent-filter>
</activity>
</application>
</manifest>
There is no “android-buildin-filebrowser ‘myfiles'” in the Android OS. You may be thinking of a file browser that ships on some specific device.
To answer that definitively, you would have to contact the author of “myfiles”.
Your
<intent-filter>is rather wrong.First,
EDITandVIEWare actions, not categories.Second, the only way it will match on your
<intent-filter>is if theLAUNCHERcategory is included, which is very unlikely for theEDITorVIEWactions.If you want this activity to both be in the home screen’s launcher and respond to
VIEWorEDITactions, you would need something like this:Two separate
<intent-filter>elements are a logical OR — anyIntentthat matches the first or the second will match this activity.