Can't get out of TouchMode

by gymshoe » Tue, 06 Jan 2009 12:48:03 GMT

Sponsored Links
 This is my problem:
I have an activity which displays a gallery which is initially
visible.  When the user clicks on the gallery, the gallery visibility
is changed to "gone" and a datapage is displayed (i.e. becomes
"visible"). When the datapage is clicked, the process reverses and the
gallery becomes "visible" and the datapage is "gone".

Everything works except:
When I use TouchMode to toggle from datapage to the gallery, when it
comes back to the gallery, it appears to be stuck in TouchMode -
nothing is selected and the Dpad won't work. (Like I said, the
application behaves like it is stuck in TouchMode, but since the
isInTouchMode() method was removed from the SDK, i can't seem to
verify this.) When I toggle from gallery to datapage, I have no
trouble exiting TouchMode by using the Dpad, or keyboard.

The xml layout for toggling between gallery and the datapage is based
on the FrameLayout.
I have tried changing the "focusable" and "clickable" attributes for
the gallery, and FrameLayout, but this doesn't fix anything.

I can provide more specifics if it would help.

Any ideas or guidance would be appreciated.

Other Threads

1. adb devices not seeing my phone


I connected my Android phone (Android 1.6) to my Ubuntu laptop.
I put in the udev rules as listed on this page:

I have rebooted as well.  However, "adb devices" do not see my phone
and I can see my phone under lsusb.  I have a Samsung Behold II so I used
the Samsung vendor ID
on my udev rules.    I am able to mount my phone.

I must be missing a step somewhere. Why is my "adb devices" not showing my
android phone attached?

Thanks for any tips.


2. How many Android Widget Classes are there?


Any one know about
In Android Widget Package how many Classes are there?

Thanks & Regards

3. Customized grammar for Voice Recognition

4. How to handle alt characters on hardware keyboards on different devices

5. Question Concerning Cursor / Query SQLite

6. Repo Q: Differences between local src & git http server src

7. Abstract Problem