Sunday, 15 March 2015

android - open your app from other app -



android - open your app from other app -

i created app playing mp3. want open app other apps file explorer. when user clicks on mp3 file must show app in "complete action using" this:

complete action using:

[my app]

[other app 1]

[other app 2]

...

when app selected, want play mp3 file (it should path somehow?).

how do this?

example here...

you need add together intent filter

add this:

<intent-filter> <action android:name="android.intent.action.view" /> <category android:name="android.intent.category.default" /> <data android:scheme="content"/> <data android:scheme="file"/> <data android:mimetype="audio/*"/> </intent-filter>

android

No comments:

Post a Comment