PhoneGap 1.9.0 & Android text entry issue

2,737 views
Skip to first unread message

Philip Arnold

unread,
Jul 10, 2012, 4:19:43 AM7/10/12
to phon...@googlegroups.com
Since PhoneGap won't help unless you're using PhoneGap Build, they've pointed me to ask here...

I'm not sure if this has been reported before, but we're having an issue with PhoneGap 1.9.0 & Android (all versions 2.2+) - it didn't happen on previous builds (I've had to downgrade to 1.8.1 to solve it) 

When you go into an INPUT field, you tap on it and the keyboard appears, but whatever you type doesn't appear in the field - you have to tap the field, then tap again to ensure that the field has focus, and then it allows input 

We're also using JQuery 1.7.2 & JQuery Mobile 1.0 on the project in case this makes a difference 

Any help would be appreciated as I don't like downgrading after an upgrade, thanks

Simon MacDonald

unread,
Jul 10, 2012, 8:50:07 AM7/10/12
to phon...@googlegroups.com
Phillip, you are at least the third person reporting this issue. There
is someone looking into it from the PhoneGap team. Please add your
comments to the issue:

https://issues.apache.org/jira/browse/CB-1017

Simon Mac Donald
http://hi.im/simonmacdonald
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
>
> To compile in the cloud, check out build.phonegap.com

Simon MacDonald

unread,
Jul 10, 2012, 9:40:48 PM7/10/12
to phon...@googlegroups.com
I'm pretty sure that Joe fixed the bug in this commit:

https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=9d4977db009d62fecc874bac0411e51b7dcce1d3

which I'm pretty sure will fix all the versions.

Simon Mac Donald
http://hi.im/simonmacdonald


On Tue, Jul 10, 2012 at 4:50 PM, Mark <mse...@warmhealth.com> wrote:
> We're experiencing the same issue with our app. We have a textarea and when
> you click on it you have to click on it again in order to be able to
> actually type. However we do not see this in the 4.x devices; I'm
> currently only seeing it in a 2.3.x device. (We're using PhoneGap 1.9 and
> JQuery 1.7.1, and JQM 1.1.1)
>
> Simon, I think the issue you've directed us to is for Jelly Bean devices, is
> there another issue that pertains to this - or is that issue just
> mislabeled?
>
> (Also - Simon, thanks for all the GREAT posts and info in your blog. Very
> helpful!)
>
> -Mark
>
>
> On Tuesday, July 10, 2012 7:50:07 AM UTC-5, Simon wrote:
>>
>> Phillip, you are at least the third person reporting this issue. There
>> is someone looking into it from the PhoneGap team. Please add your
>> comments to the issue:
>>
>> https://issues.apache.org/jira/browse/CB-1017
>>
>> Simon Mac Donald
>> http://hi.im/simonmacdonald
>

Horst

unread,
Jul 11, 2012, 1:03:05 PM7/11/12
to phon...@googlegroups.com
Hello Simon,

i have read about this bug in some threads. I would like to know more about it. I use 1.9.0 and can input on all devices i have tested. So i don't understand if i can publish my app, or better wait for an update?

Greetings
Horst
> phonegap+unsubscribe@googlegroups.com

Simon MacDonald

unread,
Jul 11, 2012, 2:54:24 PM7/11/12
to phon...@googlegroups.com
If it is working for you then it looks like it is a 4.x issue only.
BTW, 2.0.0 is out late next week.

Simon Mac Donald
http://hi.im/simonmacdonald


>> > phonegap+u...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/phonegap?hl=en?hl=en
>> >
>> > For more info on PhoneGap or to download the code go to www.phonegap.com
>> >
>> > To compile in the cloud, check out build.phonegap.com
>
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com

Mark

unread,
Jul 11, 2012, 4:27:50 PM7/11/12
to phon...@googlegroups.com
Simon, 
   I grabbed the latest code and rebuilt/replaced the jar in my application and it indeed has seemed to fix the problem.  (Although I had to make some unrelated modifications to a plugin I have because of other changes in the latest)  In any case, thanks again!
-Mark

Simon MacDonald

unread,
Jul 11, 2012, 4:35:58 PM7/11/12
to phon...@googlegroups.com
What did you have to do with the plugin? I did some shim code so that
folks wouldn't need to change their plugins so if there is anything I
missed I'l like to know about it.

Simon Mac Donald
http://hi.im/simonmacdonald


Mark

unread,
Jul 11, 2012, 5:00:48 PM7/11/12
to phon...@googlegroups.com
This all might have been my fault - I'm not sure, I think things were in flux.  I was trying to avoid using "this.getContext()" as that seems to be on the way out.

In my code I access the activity (to get to packagename and such) in any case, first I was using:  this.ctx.getActivity()

However, at the time, that was giving me an exception, so I changed the code to: this.cordova.getActivity()

I believe this was my fault though, I think the new jar file might not have been in place yet - because now if I change the code back to use this.ctx.getActivity() it seems to work without exception.

Sorry for the confusion!
-Mark

Simon MacDonald

unread,
Jul 11, 2012, 5:11:34 PM7/11/12
to phon...@googlegroups.com

Awesome! Thanks for double checking for me.

Simon

Horst

unread,
Jul 12, 2012, 3:58:27 AM7/12/12
to phon...@googlegroups.com
Hello Simon,

sorry, but i still don't understand. I have tested also on 4.0.3, 4.0.4 and 4.1 and got no error. So how can it be an 4.x issue? In which case this problem appears? 

About 2.0.0: New version, new errors. Sorry, but it is not a good idea to use a fresh version for a important app. I prefer to wait some weeks to get the errors reported. Like this one in 1.9. But in this case i don't know if i can ignore, becasue in the group and issue tracker it sounds like an error i should see in my app. But i don't see it. Iam uncertain what do to.

best regards
Horst
>> > phonegap+unsubscribe@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/phonegap?hl=en?hl=en
>> >
>> > For more info on PhoneGap or to download the code go to www.phonegap.com
>> >
>> > To compile in the cloud, check out build.phonegap.com
>
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+unsubscribe@googlegroups.com

Simon MacDonald

unread,
Jul 12, 2012, 10:41:09 AM7/12/12
to phon...@googlegroups.com
Well if you are not seeing the problem that is a good thing right?
Anyway, it may have something to do with some CSS rules other folks
are using. Hard to tell at this point. Sorry I can't give you a
definitive answer.

Simon Mac Donald
http://hi.im/simonmacdonald


>> >> > phonegap+u...@googlegroups.com
>> >> > For more options, visit this group at
>> >> > http://groups.google.com/group/phonegap?hl=en?hl=en
>> >> >
>> >> > For more info on PhoneGap or to download the code go to
>> >> > www.phonegap.com
>> >> >
>> >> > To compile in the cloud, check out build.phonegap.com
>> >
>> > -- You received this message because you are subscribed to the Google
>> > Groups "phonegap" group.
>> > To post to this group, send email to phon...@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > phonegap+u...@googlegroups.com
>> > For more options, visit this group at
>> > http://groups.google.com/group/phonegap?hl=en?hl=en
>> >
>> > For more info on PhoneGap or to download the code go to www.phonegap.com
>> >
>> > To compile in the cloud, check out build.phonegap.com
>
> -- You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com

Andy Joslin

unread,
Sep 7, 2012, 9:20:58 AM9/7/12
to phon...@googlegroups.com
Hi,

I upgraded to Phonegap 2.0, but on my Jellybean (4.1) device, the text input still doesn't work.  It does work on 4.0 Ice Cream Sandwich, though.

Andy Joslin

unread,
Sep 21, 2012, 3:05:07 PM9/21/12
to phon...@googlegroups.com
Any progress?

thor968

unread,
Sep 22, 2012, 5:34:23 AM9/22/12
to phon...@googlegroups.com
Hi,

Hi,

as far as I can see this or the similar problem still exists after upgrading to 2.1.0?

I'm porting a Enyo 1.0-app to Android but I have some issues with input-fields:
  • I'm not able to set numlock active (autoKeyModifier: "num-lock"), any idea how to solve this?
  • Sometimes/often I have to touch twice on an input field to get the blue frame and the virtual keyboard to be able to enter text.
  • I'm using a popup for my settings and because this are "some", I have to scroll down to get the <Save>-button. But if I do so, without leaving the input field before (what I don't want, because I do not want that the keyboard disapears), the blue frame with the entered content remains sticky on the current position.
These problems exist on the emulator and on real devices with 2.3.4/2.3.6 and 4.0.3/4.0.4.

I attached two screenshots that show the problem with the inputfield while scrolling.

Thanks a lot for any ideas,

thor968
PopupTest_1.jpg
PopupTest_2.jpg

thor968

unread,
Sep 22, 2012, 10:17:10 AM9/22/12
to phon...@googlegroups.com


Am Samstag, 22. September 2012 11:34:23 UTC+2 schrieb thor968:
  • I'm not able to set numlock active (autoKeyModifier: "num-lock"), any idea how to solve this?
OK, for this I found a solution, I just had to put inputType: "number" into my kinds.

An other issue is, that the app closes if you turn the device.

thor968

venkatesh R

unread,
Jan 12, 2013, 12:35:35 PM1/12/13
to phon...@googlegroups.com





The below errors are displayed when i am using actionbar to to create a tabbar in android(similar to iphone) using phonegap

I want a solution for this problem

01-12 22:51:12.404: D/dalvikvm(1150): GC_FOR_ALLOC freed 40K, 4% free 6357K/6595K, paused 166ms
01-12 22:51:12.404: I/dalvikvm-heap(1150): Grow heap (frag case) to 6.754MB for 513744-byte allocation
01-12 22:51:12.493: D/dalvikvm(1150): GC_FOR_ALLOC freed <1K, 4% free 6859K/7111K, paused 37ms
01-12 22:51:12.574: D/dalvikvm(1150): GC_CONCURRENT freed <1K, 4% free 6859K/7111K, paused 3ms+2ms
01-12 22:51:12.724: I/CordovaLog(1150): Changing log level to DEBUG(3)
01-12 22:51:12.724: I/CordovaLog(1150): Found preference for useBrowserHistory=true
01-12 22:51:12.734: D/CordovaLog(1150): Found preference for useBrowserHistory=true
01-12 22:51:12.734: I/CordovaLog(1150): Found preference for exit-on-suspend=false
01-12 22:51:12.734: D/CordovaLog(1150): Found preference for exit-on-suspend=false
01-12 22:51:12.764: D/JsMessageQueue(1150): Set native->JS mode to 2
01-12 22:51:12.854: D/DroidGap(1150): DroidGap.init()
01-12 22:51:12.854: D/AndroidRuntime(1150): Shutting down VM
01-12 22:51:12.864: W/dalvikvm(1150): threadid=1: thread exiting with uncaught exception (group=0x40014760)
01-12 22:51:12.894: E/AndroidRuntime(1150): FATAL EXCEPTION: main
01-12 22:51:12.894: E/AndroidRuntime(1150): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.actionbar_demo/com.example.actionbar_demo.MainActivity}: java.lang.NullPointerException
01-12 22:51:12.894: E/AndroidRuntime(1150):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1815)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1831)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at android.app.ActivityThread.access$500(ActivityThread.java:122)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1024)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at android.os.Handler.dispatchMessage(Handler.java:99)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at android.os.Looper.loop(Looper.java:132)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at android.app.ActivityThread.main(ActivityThread.java:4123)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at java.lang.reflect.Method.invokeNative(Native Method)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at java.lang.reflect.Method.invoke(Method.java:491)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at dalvik.system.NativeStart.main(Native Method)
01-12 22:51:12.894: E/AndroidRuntime(1150): Caused by: java.lang.NullPointerException
01-12 22:51:12.894: E/AndroidRuntime(1150):  at com.example.actionbar_demo.MainActivity.setContentView(MainActivity.java:77)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at org.apache.cordova.DroidGap.init(DroidGap.java:343)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at org.apache.cordova.DroidGap.init(DroidGap.java:313)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at org.apache.cordova.DroidGap.loadUrl(DroidGap.java:358)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at com.example.actionbar_demo.MainActivity.onCreate(MainActivity.java:32)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at android.app.Activity.performCreate(Activity.java:4397)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1048)
01-12 22:51:12.894: E/AndroidRuntime(1150):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1779)
01-12 22:51:12.894: E/AndroidRuntime(1150):  ... 11 more

Thanks in advance

Note: I attached my .apk file
actionbar_demo.apk
Reply all
Reply to author
Forward
0 new messages