Jump to content
Poweramp
admin

Poweramp API Lib and Sample Applications (updated for v3)

Recommended Posts

Как через API знать что у  MP3 трека нет тегов имени артиста или альбома? Не подходит брать слова "Неизвест. артист". Если знать, что тегов нет, то буду брать только Title - имя файла. Фильтровать жестко "Неизвест. артист" не выход. Это будет только для русской локализации. Спасибо.

Share this post


Link to post
Share on other sites

Good day!
Will it be possible to physically delete a file from a device using an API?

Share this post


Link to post
Share on other sites

@ewg No. You should delete file and than request re-scan. (Or, depending on deletion method, it can be requested by Android automatically).

Share this post


Link to post
Share on other sites

@maxmpThen I will have to make a request for read access memory card. It is more comfortable when PA command. PA can delete during playback

Share this post


Link to post
Share on other sites

I don't think it will work, as:

- API is open to anyone, deleting user files via such API is a security hole
- there are read-only storages (==sd cards) which require permission UI to be shown anyway - that should be handled by the actual app requesting the deletion.

Share this post


Link to post
Share on other sites

Hi all!
Trying the skin SDK from here: https://github.com/maxmpz/powerampapi/tree/master/poweramp_skin_sdk

I have dowloaded and copied `Poweramp-v3.apk` to project's root folder, and changed path in `app/build.gradle`.

Currently it looks like this:

`

aaptOptions {
    additionalParameters "--stable-ids", "stable-ids.txt", "--emit-ids", "stable-ids.txt",
                            "--shared-lib", "-I", "./../../Poweramp-v3.apk"
}

But i cannot make it work, I always get this:

AAPT: W/ziparchive(68291): Unable to open './../../Poweramp-v3.apk': No such file or directory
error: failed to open APK: I/O error.

Any help would be appreciated ;)

Thanks!

 

Share this post


Link to post
Share on other sites

Get the latest pa version 842 and put that somewhere . Now reflect the full path including the filename in the gradle build

for example:

aaptOptions {
    additionalParameters "--package-id", "0x80", "-I", "F:\\Android\\Android\\APK\\Poweramp\\Poweramp-v3-build-842-uni.apk"
}

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...