callback/callback-android — Issue #63: Text Selection Mode not triggering in Android 3.1 & 3.2
Author: garg872
Created: 2012-01-04 10:56:21+00:00
State: open

Hi Experts,

I am facing an issue in Android 3.1 where on long pressing in the webview (i.e. in Phonegap: appview), the text selection action bar (copy, select all etc. functions) is not coming which is the default feature of Android 3.0 onwards. Same thing is happening quiet fine in Android 3.0.

On looking more closely, i have found that in Android 3.1, the control is not going into onMeasure() function of DroidGap.java class on long pressing and end up with no text selection action bar but same is going fine(checked from logcat.. posting the same below) in Android 3.0.

*********************Logcat of Android 3.0 on long press & Text selection mode*******************

01-04 16:09:10.888: V/TLINE(3625): new: android.text.TextLine@40773a58
01-04 16:09:11.028: D/SoftKeyboardDetect(3625): We are in our onMeasure method
01-04 16:09:11.028: D/SoftKeyboardDetect(3625): Old Height = 752
01-04 16:09:11.035: D/SoftKeyboardDetect(3625): Height = 696
01-04 16:09:11.035: D/SoftKeyboardDetect(3625): Old Width = 1280
01-04 16:09:11.035: D/SoftKeyboardDetect(3625): Width = 1280
01-04 16:09:11.035: D/SoftKeyboardDetect(3625): Throw show keyboard event
01-04 16:09:11.466: V/TLINE(3625): new: android.text.TextLine@40790e38
01-04 16:09:13.086: D/SoftKeyboardDetect(3625): We are in our onMeasure method
01-04 16:09:13.086: D/SoftKeyboardDetect(3625): Old Height = 696
01-04 16:09:13.086: D/SoftKeyboardDetect(3625): Height = 752
01-04 16:09:13.086: D/SoftKeyboardDetect(3625): Old Width = 1280
01-04 16:09:13.086: D/SoftKeyboardDetect(3625): Width = 1280
01-04 16:09:13.086: D/SoftKeyboardDetect(3625): Throw hide keyboard event

***************************************************************************************************************
but in Android 3.1, there is no logcat message during the same process.

I want to know whether Phonegap 1.3.0 supports Android 3.1 or not?

THanks guys! i would appreciate your help !!