Jump to content
Poweramp
brandall

Standard Android Intent to play track - BUG?

Recommended Posts

I think this is the right place to post this

I'm using the following code in my application:

Intent playMediaIntent = new Intent(Intent.ACTION_VIEW);

playMediaIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

Uri data = Uri.parse("file://" + mediaURI);

playMediaIntent.setDataAndType(data, "audio/mp3");

startActivity(playMediaIntent);

When Poweramp is selected from the chooser, it starts to play the track for a split second and then pauses.

Is this a bug, or is there something else I haven't spotted?

Thanks in advance

Share this post


Link to post
Share on other sites

What is the device/os version you reproduce this issue on? Also what is exactly Poweramp version?

Basically this is intent received by Poweramp when file is chosen in file managers and Poweramp starts it ok, though we've never tested the intent directly.

Thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×