• Announcements

    • andrewilley

      Poweramp v3 Project Update   04/24/2017

      As you may be aware, the Poweramp developer has been working hard on an updated material design user interface for Poweramp v3 which required a full ground-up rebuild of the code and is taking some time to get to a beta-test stage. See the forum thread for more details and to discuss.    
maxmp

Poweramp API/Skin SDK Update [2014-11-15]

11 posts in this topic

Poweramp SDK on Github: https://github.com/maxmpz/powerampapi

 
Nov 15, 2014
- updated skins SDK to allow building skins for Lollipop:
  - you can't use skin-defined attrs.xml (style attributes) as those are not working for lollipop resources
    Poweramp build-565 and above provides skin_ref1..skin_ref10, skin_bg1..skin_bg10, skin_color1..skin_color10,
    skin_dimen1..skin_dimen10 attributes to use freely in skins to workaround this issue. 
    Alternatively, you can just avoid such attributes or use some Poweramp defined ones (see attrs.xml)
  - you can't use skin-defined parent styles (e.g. <style name="Classic_LockScreenTheme" parent="@style/ClassicSkin">..), instead you need to duplicate theme style definition for dialogs and lock screen, if you used skin-defined parent styles for those. See updated skin_classic/res/classic_skin_styles.xml for details)
  - your Android SDK Tools should be updated to at least 23.0.5 AND Android SDK Build-tools 
    BOTH exactly 20.0.0 and 21.1.1 versions should be installed (via e.g. command line "android" tool)
    Having 2 build tools versions allows us to build one skin APK for both pre-Lollipop and Lollipop Android versions
  - NOTE: if the above limitations are too much, it's possible to build APK for 5.0+ only with ant apkpush-shared and ant dist-shared. Resulting APK won't be compatible with pre-Lollipop android versions, so you'll need to maintain 2 APK builds - for pre-5.0 and for 5.0+ Androids.
- updated skins InfoActivity to match Material theme on Lollipop. Also, it won't crash anymore if no Poweramp installed
- updated reference resources to match latest
 
May 10, 2014
- added skin_lib, added support for skin Poweramp icons and skin pack icon hide option
- refactored skin sample projects to use skin_lib
- added skin_custom_info_activity sample project

 

May 08, 2014
- updated reference resources and default_style.PSD to match latest build-555
  - new attributes for default album art logo 
  - new XD (xhdpi) and XXD (xxhdpi) dimens and drawables
 

1.4

- added assets directories

- added skin_compat-debug.apk in skin_compat subprojects

- these 2 changes allows out-of-box skin building without need for skin_compat building first

 

1.3

Update 1.3 adds support for android:layout attribute for DeckNowPlaying and DeckTrackProgress. This will be visible in Poweramp builds 537+.

 

Also build 537 changes search pattern for Get Skins button for better search results:

- previously Poweramp used "poweramp skins"

Now:

- before 15 January, 2014  uses "poweramp skin OR com.maxmpz.audioplayer.skin"

- after 15 January, 2014 it will use "com.maxmpz.audioplayer.skin"

 

Please update your skin description on Play.

 

This also applies to the new Get Widgets button:

- before 15 January, 2014  uses "poweramp widget OR com.maxmpz.audioplayer.widget"

- after 15 January, 2014 it will use "com.maxmpz.audioplayer.widget"

 

1.2

Please note that I pushed 1.2 update to github (https://github.com/maxmpz/powerampapi), this focused on skin SDK update to workaround recently introduced issue by Sony 4.2.2 ROM update.

 

The resulting skins will be visible only to Poweramp build 532+, and won't be visible by earlier Poweramp builds.

Old skins are still visible to old and new Poweramp builds (except pre-532 builds on Sony 4.2.2) ROMs.

Please, delay your skin updates (built with Skin SDK 1.2) until builds 532+ are released to Play.

 

Thanks!

Share this post


Link to post
Share on other sites

Hi, thanks for the update.

Is anyone having this issue, can't find a solution 

-code-gen:     [echo] SKIN: Generating R.java / Manifest.java from the resources...     [exec] W/asset   ( 3830): Asset path skin_compat/bin/skin_compat-debug.apk is neither a directory nor file (type=1).     [exec] ERROR: Asset package include 'skin_compat/bin/skin_compat-debug.apk' not found.

Thanks  :)

Share this post


Link to post
Share on other sites

 

Hi, thanks for the update.

Is anyone having this issue, can't find a solution 

-code-gen:     [echo] SKIN: Generating R.java / Manifest.java from the resources...     [exec] W/asset   ( 3830): Asset path skin_compat/bin/skin_compat-debug.apk is neither a directory nor file (type=1).     [exec] ERROR: Asset package include 'skin_compat/bin/skin_compat-debug.apk' not found.

Thanks  :)

 

Copy Poweramp-2.0.9-build-532.apk from poweramp_skin_sdk to skin_compat/bin/ and rename it to skin_compat-debug.apk

#FAST

Share this post


Link to post
Share on other sites

1.4


- added assets directories


- added skin_compat-debug.apk in skin_compat subprojects


- these 2 changes allows out-of-box skin building without need for skin_compat building first

Share this post


Link to post
Share on other sites
May 08, 2014

- updated reference resources and default_style.PSD to match latest build-555

  - new attributes for default album art logo 

  - new XD (xhdpi) and XXD (xxhdpi) dimens and drawables

Share this post


Link to post
Share on other sites

May 10, 2014

- added skin_lib, added support for skin Poweramp icons and skin pack icon hide option
- refactored skin sample projects to use skin_lib
- added skin_custom_info_activity sample project

Share this post


Link to post
Share on other sites
Nov 15, 2014

- updated skins SDK to allow building skins for Lollipop:

  - you can't use skin-defined attrs.xml (style attributes) as those are not working for lollipop resources

    Poweramp build-565 and above provides skin_ref1..skin_ref10, skin_bg1..skin_bg10, skin_color1..skin_color10,

    skin_dimen1..skin_dimen10 attributes to use freely in skins to workaround this issue. 

    Alternatively, you can just avoid such attributes or use some Poweramp defined ones (see attrs.xml)

  - your Android SDK Tools should be updated to at least 23.0.5 AND Android SDK Build-tools 

    BOTH exactly 20.0.0 and 21.1.1 versions should be installed (via e.g. command line "android" tool)

    Having 2 build tools versions allows us to build one skin APK for both pre-Lollipop and Lollipop Android versions

- updated skins InfoActivity to match Material theme on Lollipop. Also, it won't crash anymore if no Poweramp installed

- updated reference resources to match latest

Share this post


Link to post
Share on other sites

I cannot build any of skinns downloaded from https://github.com/maxmpz/powerampapi

using command "ant debug" BUILD FAILED (Log at the bottom)

 

using command "ant apkpush-shared" works well

 

 

Environment: 

Android-Tools 17-21 installed

Android Tools 23.0.5

 

 

One more: skin_classic/res/classic_skin_styles.xml cannot be fund in GIT, from description of your skin

 

 

 

LOG:

 

BUILD FAILED
D:\P4\trunk\Android\powerampapi-master\poweramp_skin_sdk_l\skin_lib\skin_custom_rules.xml:73: Execute failed: java.io.IOException: Cannot run program "${skinlib.aapt}": CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
        at java.lang.Runtime.exec(Runtime.java:620)
        at org.apache.tools.ant.taskdefs.launcher.Java13CommandLauncher.exec(Java13CommandLauncher.java:58)
        at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:428)
        at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:442)
        at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:628)
        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
        at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68)
        at com.android.ant.IfElseTask.execute(IfElseTask.java:124)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:483)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:435)
        at org.apache.tools.ant.Target.performTasks(Target.java:456)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
        at org.apache.tools.ant.Main.runBuild(Main.java:851)
        at org.apache.tools.ant.Main.startAnt(Main.java:235)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
        at java.lang.ProcessImpl.create(Native Method)
        at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
        at java.lang.ProcessImpl.start(ProcessImpl.java:137)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
        ... 31 more
 
Total time: 3 seconds

Share this post


Link to post
Share on other sites

egorlins, it would be nice if you also post a solution in case some other people have the same problem :/

Share this post


Link to post
Share on other sites

I'd be happy if I could get my 12x12 layout on Nova to allow the resizing & padding of the Poweramp large home screen widget to be able to fully fill it without the gaps present on the sides of the the Poweramp widget (tried them all) and none seem to line up perfect or just right. Help? Someone? Anyone? Please? I'll pay for a play store widget pack that gives mad options & is fully functional on current OS's 5.0-5.1 8-) Also, why do people not make matching skin/widget themes? Lets make this happens peoples! 8-)

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