grayscale Posted February 23, 2013 Share Posted February 23, 2013 Здравствуйте. у меня следующая проблема. некоторые пользователи жалуются на то, что окно с эквалайзером сломано а именно выдает ошибку. Пожалуйста помогите решить эту проблему =\ Quote Link to post Share on other sites
maxmp Posted February 23, 2013 Share Posted February 23, 2013 Привет, билд Poweramp?Это сообщение показывается, когда Андроид не может распарсить XML лейаута для Poweramp:try { setContentView(resourceId); return true;} catch(InflateException iex) { if(!TextUtils.isEmpty(TypedPrefs.theme_path)) { final String errorStr = "failed to load skin " + TypedPrefs.theme_path + " resetting to default"; ...Там есть вывод в консоль Logcat ошибки - оно прояснит ситуацию. Я потестирую ваш скин сам (видимо на нексус7 или подобном таблете) - похоже не хватает чего-то именно для этого разрешения/размера экрана. Quote Link to post Share on other sites
grayscale Posted February 24, 2013 Author Share Posted February 24, 2013 спасибо большое. если не трудно сообщите о результатах. хотелось бы как можно быстрее исправить. Quote Link to post Share on other sites
maxmp Posted February 24, 2013 Share Posted February 24, 2013 На нексус7 подобных проблем с build-523 не обнаружено. Quote Link to post Share on other sites
grayscale Posted February 24, 2013 Author Share Posted February 24, 2013 На нексус7 подобных проблем с build-523 не обнаружено.странно это. хмм...ну у пользователя с этой проблемой был note 10.1. хотя по сути ресурсы должны браться одни и те же для планшетов с одинаковым разрешением ? Quote Link to post Share on other sites
maxmp Posted February 26, 2013 Share Posted February 26, 2013 На Note 10.1 баг проявился. Проблема не очень понятна (Caused by: java.lang.StackOverflowError),выглядит, как будто вместо картинки (Drawable) загружается строка (StringBlock).Для Note 10.1 ресурсы берутся из sw720, то есть не совсем такие, как на Нексус7. У классического скина (Classic Skin) этой проблемы нет.02-26 15:03:23.986: E/BaseThemeableActivity(12875): failed to load skin /mnt/asec/com.deeds.droid.poweramp.skins.dark_space-1/res.zip resetting to default02-26 15:03:23.986: E/BaseThemeableActivity(12875): android.view.InflateException: Binary XML file line #54: Error inflating class com.maxmpz.audioplayer.widget.LinearKnob02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.view.LayoutInflater.createView(LayoutInflater.java:613)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.view.LayoutInflater.rInflate(LayoutInflater.java:749)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.view.LayoutInflater.parseInclude(LayoutInflater.java:830)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.view.LayoutInflater.rInflate(LayoutInflater.java:736)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.view.LayoutInflater.inflate(LayoutInflater.java:459)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:316)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.app.Activity.setContentView(Activity.java:1924)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at com.maxmpz.audioplayer.BaseThemeableActivity.������(":231)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at com.maxmpz.audioplayer.EqActivity.onCreate(":131)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.app.Activity.performCreate(Activity.java:5188)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2074)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2135)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.app.ActivityThread.access$700(ActivityThread.java:140)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1237)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.os.Handler.dispatchMessage(Handler.java:99)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.os.Looper.loop(Looper.java:137)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.app.ActivityThread.main(ActivityThread.java:4921)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at java.lang.reflect.Method.invokeNative(Native Method)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at java.lang.reflect.Method.invoke(Method.java:511)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at dalvik.system.NativeStart.main(Native Method)02-26 15:03:23.986: E/BaseThemeableActivity(12875): Caused by: java.lang.reflect.InvocationTargetException02-26 15:03:23.986: E/BaseThemeableActivity(12875): at java.lang.reflect.Constructor.constructNative(Native Method)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.view.LayoutInflater.createView(LayoutInflater.java:587)02-26 15:03:23.986: E/BaseThemeableActivity(12875): ... 28 more02-26 15:03:23.986: E/BaseThemeableActivity(12875): Caused by: java.lang.StackOverflowError02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.content.res.StringBlock.get(StringBlock.java:69)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.content.res.AssetManager.getResourceValue(AssetManager.java:201)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.content.res.Resources.getValue(Resources.java:1022)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.content.res.Resources.getDrawable(Resources.java:671)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:173)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:881)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:818)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.content.res.Resources.loadDrawable(Resources.java:1948)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.content.res.Resources.getDrawable(Resources.java:672)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:173)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:881)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:818)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.content.res.Resources.loadDrawable(Resources.java:1948)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.content.res.Resources.getDrawable(Resources.java:672)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:173)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:881)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:818)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.content.res.Resources.loadDrawable(Resources.java:1948)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.content.res.Resources.getDrawable(Resources.java:672)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.graphics.drawable.StateListDrawable.inflate(StateListDrawable.java:173)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:881)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at android.graphics.drawable.Drawable.createFromXml(Drawable.java:818)02-26 15:03:23.986: E/BaseThemeableActivity(12875): at andro Quote Link to post Share on other sites
grayscale Posted February 26, 2013 Author Share Posted February 26, 2013 а в чем же тогда может быть проблема? Quote Link to post Share on other sites
maxmp Posted February 26, 2013 Share Posted February 26, 2013 Нужно смотреть исходники скина) Попробуйте так же перекомпилировать используя последний билд Poweramp (как исходный apk). Quote Link to post Share on other sites
grayscale Posted February 27, 2013 Author Share Posted February 27, 2013 попробовал перекомпилить. теперь экран мерцает, когда плеер включаю. Quote Link to post Share on other sites
maxmp Posted February 28, 2013 Share Posted February 28, 2013 Plz update to 524+. Quote Link to post Share on other sites
grayscale Posted March 3, 2013 Author Share Posted March 3, 2013 перекомпилил с использованием новой версии плеера. проблема с мерцанием решилась, но вылет на экране эквалайзера остался, причем он также есть и на galaxy y, у которого разрешение 320х240. попробовал в слое с эквалайзером сделать <?xml version="1.0" encoding="utf-8"?><merge xmlns:android="http://schemas.android.com/apk/res/android"><include layout="@com.maxmpz.audioplayer:layout/activity_eq"/></merge>но проблема всё равно осталась. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.