Jump to content

Standard Android Intent to play track - BUG?


brandall

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

Link to comment
Share on other sites

  • 2 weeks later...

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!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...