[jira] [Comment Edited] (CB-7716) Alert Dialog not working in Android API <=11

2014-10-29 Thread Chris Emerson (JIRA)

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

Chris Emerson edited comment on CB-7716 at 10/29/14 11:09 AM:
--

For the record - my issue *may* have been unrelated. It appears my prompt 
method started working again on Android 2.3 once I went from this:

myPrompt(msg,title,function(){ /* do stuff */},labels); 

to this:

myPrompt(msg,title,functionName,labels); 


was (Author: chrisemersonnc):
My initiaattempt after grabbing latest doesn't seem to have fixed the issue-but 
I'll confirm tomorrow morning. I'm not 100% sure my issue is exactly what this 
bug is describing-insured my issue is that android phones running 2.3 seem to 
be ignoring my prompt method calls - calls that appear to be working in android 
4.x and iOS 7 and 8.    

- Chri

> 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 
> 
> 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;. (Landroid/content/Context;I)V
> 10-06 11:00:18.479: W/System.err(7719): java.lang.NoSuchMethodError: 
> android.app.AlertDialog$Builder.
> 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)

[jira] [Comment Edited] (CB-7716) Alert Dialog not working in Android API <=11

2014-10-29 Thread Chris Emerson (JIRA)

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

Chris Emerson edited comment on CB-7716 at 10/29/14 11:10 AM:
--

For the record - my issue *may* have been unrelated. It appears my prompt 
method started working again on Android 2.3 once I went from this:

bq. myPrompt(msg,title,function(){ /* do stuff */},labels); 

to this:

bq. myPrompt(msg,title,functionName,labels); 


was (Author: chrisemersonnc):
For the record - my issue *may* have been unrelated. It appears my prompt 
method started working again on Android 2.3 once I went from this:

myPrompt(msg,title,function(){ /* do stuff */},labels); 

to this:

myPrompt(msg,title,functionName,labels); 

> 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 
> 
> 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;. (Landroid/content/Context;I)V
> 10-06 11:00:18.479: W/System.err(7719): java.lang.NoSuchMethodError: 
> android.app.AlertDialog$Builder.
> 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

[jira] [Comment Edited] (CB-7716) Alert Dialog not working in Android API <=11

2014-10-28 Thread Chris Emerson (JIRA)

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

Chris Emerson edited comment on CB-7716 at 10/28/14 7:51 PM:
-

Has the fix for this issue been integrated here yet? 
https://github.com/apache/cordova-plugin-dialogs


was (Author: chrisemersonnc):
Has the notifications (?https://github.com/apache/cordova-plugin-dialogs) 
plugin been updated with this fix? 

> 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 
> 
> 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;. (Landroid/content/Context;I)V
> 10-06 11:00:18.479: W/System.err(7719): java.lang.NoSuchMethodError: 
> android.app.AlertDialog$Builder.
> 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



[jira] [Comment Edited] (CB-7716) Alert Dialog not working in Android API <=11

2014-10-07 Thread Miquel (JIRA)

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

Miquel edited comment on CB-7716 at 10/7/14 8:15 PM:
-

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 pull 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.


was (Author: miqmago):
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 
> 
> 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;. (Landroid/content/Context;I)V
> 10-06 11:00:18.479: W/System.err(7719): java.lang.NoSuchMethodError: 
> android.app.AlertDialog$Builder.
> 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