[ https://issues.apache.org/jira/browse/CB-7716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14162449#comment-14162449 ]
Miquel commented on CB-7716: ---------------------------- I've tested in a Galaxy mini running 2.3.6 which breaks. I've forked the github repo and made the necessary changes: - Don't break in Galaxy mini 2.3.6 - Also contributes to clarify code with a better structuring - Works for newer devices as the original one (as it essentially executes original code for supported devices) I'm sorry if I'm not understanding right well the flow for this plugin development (as today it has been closed my pull request in github without merging...) You can look at the code here: https://github.com/apache/cordova-plugin-dialogs/commit/4cfe290b2a3e8f0aafb71a1ff4fbee4b710c8749 If it where necessary I could make a push request to git://git.apache.org/cordova-plugin-dialogs.git, but I'm don't know how it works so if you are not going to merge I won't try the pull request. In fact I've invested more time in this post than doing the changes on the code. > Alert Dialog not working in Android API <=11 > -------------------------------------------- > > Key: CB-7716 > URL: https://issues.apache.org/jira/browse/CB-7716 > Project: Apache Cordova > Issue Type: Bug > Components: Android, Plugin Dialogs > Affects Versions: 3.6.0 > Reporter: Keshav OS > Assignee: Joe Bowser > > Works on android API>14 (4.0+). However, the following issue is when > targeting only API 10 (2.3.3 and 2.3.4). > 1. Updated platforms/android/AndroidManifest.xml to > <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="10" /> > 2. Added dialogs plugin to make use of custom alert, confirm boxes through > the cli > cordova plugin add org.apache.cordova.dialogs > Installs successfully on the device. However the dialogs don't show up as > expected. Logcat reveals the following error: > bq. 10-06 11:00:18.469: D/CordovaLog(7719): : Line 1772609 : No device > specific handleNewLine procedure > 10-06 11:00:18.469: I/Web Console(7719): No device specific handleNewLine > procedure at :1772609 > 10-06 11:00:18.479: W/dalvikvm(7719): VFY: unable to resolve direct method > 29: Landroid/app/AlertDialog$Builder;.<init> (Landroid/content/Context;I)V > 10-06 11:00:18.479: W/System.err(7719): java.lang.NoSuchMethodError: > android.app.AlertDialog$Builder.<init> > 10-06 11:00:18.479: W/System.err(7719): at > org.apache.cordova.dialogs.Notification$2.run(Notification.java:160) > 10-06 11:00:18.479: W/System.err(7719): at > android.app.Activity.runOnUiThread(Activity.java:3717) > 10-06 11:00:18.479: W/System.err(7719): at > org.apache.cordova.dialogs.Notification.alert(Notification.java:185) > 10-06 11:00:18.479: W/System.err(7719): at > org.apache.cordova.dialogs.Notification.execute(Notification.java:79) > 10-06 11:00:18.479: W/System.err(7719): at > org.apache.cordova.CordovaPlugin.execute(CordovaPlugin.java:84) > 10-06 11:00:18.479: W/System.err(7719): at > org.apache.cordova.PluginManager.exec(PluginManager.java:147) > 10-06 11:00:18.479: W/System.err(7719): at > org.apache.cordova.CordovaBridge.jsExec(CordovaBridge.java:59) > 10-06 11:00:18.479: W/System.err(7719): at > org.apache.cordova.CordovaBridge.promptOnJsPrompt(CordovaBridge.java:129) > 10-06 11:00:18.479: W/System.err(7719): at > org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:192) > 10-06 11:00:18.479: W/System.err(7719): at > android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:580) > 10-06 11:00:18.479: W/System.err(7719): at > android.os.Handler.dispatchMessage(Handler.java:99) > 10-06 11:00:18.479: W/System.err(7719): at > android.os.Looper.loop(Looper.java:130) > 10-06 11:00:18.489: W/System.err(7719): at > android.app.ActivityThread.main(ActivityThread.java:3687) > 10-06 11:00:18.489: W/System.err(7719): at > java.lang.reflect.Method.invokeNative(Native Method) > 10-06 11:00:18.489: W/System.err(7719): at > java.lang.reflect.Method.invoke(Method.java:507) > 10-06 11:00:18.489: W/System.err(7719): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) > 10-06 11:00:18.489: W/System.err(7719): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) > 10-06 11:00:18.489: W/System.err(7719): at > dalvik.system.NativeStart.main(Native Method) > 10-06 11:00:18.499: D/CONTEXT(7719): m_mainFrame->editor()->hasComposition > not > 10-06 11:00:18.539: D/CONTEXT(7719): m_mainFrame->editor()->hasComposition > not > 10-06 11:00:18.549: D/CONTEXT(7719): m_mainFrame->editor()->hasComposition > not > Have tried using v0.2.8, 0.2.9, 0.2.10 and the same issue exists. > Running the cordova clean utility, remove and adding the plugin, setting > android target to 10 in project.properties, none of these seem to fix the > issue. > Have also tried all proposed and pending PR's related to this issue, but none > of the solutions work. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org