Hi,
I'm using this great library in my application.
I'm getting the following crash report on a Lenovo A916 with Android 4.4, when showing a indeterminate ProgressDialogPro:
android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.Resources.getValue(Resources.java:1133)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2381)
at android.content.res.Resources.getLayout(Resources.java:949)
at android.view.LayoutInflater.inflate(LayoutInflater.java:395)
at android.view.LayoutInflater.inflate(LayoutInflater.java:353)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:305)
at com.alertdialogpro.internal.AlertController.installContent(Unknown Source)
at com.alertdialogpro.AlertDialogPro.onCreate(Unknown Source)
at com.alertdialogpro.ProgressDialogPro.onCreate(Unknown Source)
at android.app.Dialog.dispatchOnCreate(Dialog.java:361)
at android.app.Dialog.show(Dialog.java:262)
at it.cammino.risuscito.PaginaRenderActivity.cmdPrepare(Unknown Source)
at it.cammino.risuscito.PaginaRenderActivity.access$900(Unknown Source)
at it.cammino.risuscito.PaginaRenderActivity$7.onClick(Unknown Source)
at android.view.View.performClick(View.java:4463)
at android.view.View$PerformClick.run(View.java:18772)
at android.os.Handler.handleCallback(Handler.java:808)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:5292)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:825)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:641)
at dalvik.system.NativeStart.main(Native Method)
My code is just:
mp3Dialog = new ProgressDialogPro(PaginaRenderActivity.this);
mp3Dialog.setMessage(getResources().getString(R.string.wait));
mp3Dialog.setOnDismissListener(new OnDismissListener() {
@Override
public void onDismiss(DialogInterface arg0) {
setRequestedOrientation(prevOrientation);
}
});
mp3Dialog.show();
I set correctly the theme in my settings:
<style name="Theme.MyTheme" parent="Theme.AppCompat.Light.NoActionBar">
..
<item name="alertDialogProTheme">@style/AppTheme.FlavoredMaterialLight</item>
</style>
<style name="AppTheme.FlavoredMaterialLight" parent="Theme.AlertDialogPro.Material.Light">
<item name="colorAccent">@color/theme_accent</item>
</style>
It seems that the error occurs only on this particual device, as I tested my application on many Kitkat devices and this crash never occurred.
Any help?
Thanks in advance.
Marcello
Hi,
I'm using this great library in my application.
I'm getting the following crash report on a Lenovo A916 with Android 4.4, when showing a indeterminate ProgressDialogPro:
My code is just:
mp3Dialog = new ProgressDialogPro(PaginaRenderActivity.this); mp3Dialog.setMessage(getResources().getString(R.string.wait)); mp3Dialog.setOnDismissListener(new OnDismissListener() { @Override public void onDismiss(DialogInterface arg0) { setRequestedOrientation(prevOrientation); } }); mp3Dialog.show();I set correctly the theme in my settings:
<style name="Theme.MyTheme" parent="Theme.AppCompat.Light.NoActionBar"> .. <item name="alertDialogProTheme">@style/AppTheme.FlavoredMaterialLight</item> </style> <style name="AppTheme.FlavoredMaterialLight" parent="Theme.AlertDialogPro.Material.Light"> <item name="colorAccent">@color/theme_accent</item> </style>It seems that the error occurs only on this particual device, as I tested my application on many Kitkat devices and this crash never occurred.
Any help?
Thanks in advance.
Marcello