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. Android Market: Find no Skype Lite or iSkoot.

I am using an ADP device (not TMobile-G1) to visit Android Market on
device. But I cannot find Skype Lite or iSkoot which have been
released to public. I am wondering if there might be some restriction
to access those applications, e.q. maybe forbidden outside U.S. Thanks
for any input.


2. starting Activity in Overlay onTap (dup post?)

I apologize if this is a duplicate post.  I tried posting this over an
hour ago and there is no indicator that it posted.

I am attempting to launch a dialog type window when I click an Overlay
that has been placed on google maps.  I thought the way I would do
this was Override the onTap() method, create an intent, and call
startActivity on that intent as follows:

Intent myIntent = new Intent(context, MyActivity.class);

It looks like the program throws an ActivityNotFoundException when
executing that last line.  The exception reads that if you try to
start an Activity while you are not in an Activity you need to set the
FLAG_ACTIVITY_NEW_TASK flag which is why that line is there.  I have
included MyActivity in my manifest.

'context' is passed to my class constructor that extends Overlay and
is the MapActivity that I am using to display the map.

Considering how I have not been able to find anyone on the internet
with this problem, I am beginning to think I am going at this all
wrong.  If anyone knows of a good description of how what I am trying
to do is supposed to work or a tutorial doing what I am trying to do,
please post that.


3. Security patterns/regimes in Android

4. Getting data from a server

5. Using bluetooth of native machine

6. How do you install updated Android OS images (ver. 1.1) to G1 developer phones?

7. Secure Connection - IS anybody working on any kind of VPN APP!?!