Jump to content

DulcetTone

Approved Members
  • Posts

    7
  • Joined

  • Last visited

 Content Type 

Profiles

Forums

Blogs

Gallery

Downloads

Poweramp Knowledge Base

База знаний Poweramp

Poweramp知识库

Poweramp Equalizer Knowledge Base

База знаний Poweramp Equalizer

Store

Events

Ideas

Posts posted by DulcetTone

  1. I had added the library project as

    Project properties->Build Path->Project

    and was able to compile my code and run it (though it was not working fully). I went back and read your instructions that

    This is android library project, meaning it's included into other samples as a library (ensure it's added as library in Project settings => Android => libraries list).

    But this path of options does not appear to exist, or some detail is missing

    Can you please write out exactly where these options live in Eclipse?

    tone

  2. I have an app that works with many apps that all rely on the Android MediaStore. I see Poweramp supports that in addition to a more flexible storage model, but I want to start with the MediaStore support.

    I had database IDs for songs, artists, albums and playlists as longs.

    How do I prompt Poweramp to play a song (say) from the external SD card with a given database ID?

    I tried this, and get nothing to happen and Poweramp does not indicate anything in the logfile:

    protected void _playSong(Song song) {

    Uri uri = Uri.withAppendedPath(

    song.isInternal() ? MediaStore.Audio.Media.INTERNAL_CONTENT_URI : MediaStore.Audio.Media.EXTERNAL_CONTENT_URI ,

    "" + song.mDatabaseId

    );

    startService(new Intent(PowerAMPiAPI.ACTION_API_COMMAND)

    .putExtra(PowerAMPiAPI.COMMAND, PowerAMPiAPI.Commands.OPEN_TO_PLAY)

    .setData(uri)

    );

    }

×
×
  • Create New...