[ 
https://issues.apache.org/jira/browse/CB-7716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14162256#comment-14162256
 ] 

Joe Bowser commented on CB-7716:
--------------------------------

It looks like this is confined to the Galaxy Mini, I just tested a Nexus S 
running 2.3.6.  I'm going to have to find a Samsung device that's running 
2.3.4. :(

> 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
>            Priority: Critical
>
> 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

Reply via email to