performCompletion on AutoCompleteTextView

by oliver » Sat, 31 Jan 2009 01:48:49 GMT


Sponsored Links
 hi,
i'm having a problem when using the performCompletion method on an
AutoCompleteTextView.
when i start typing the suggestions work fine (an entry is
highlighted). as soon as i type enough characters so that no match is
possible anymore, the suggestion list disappears (which is ok).
when i know delete some characters so the suggestion list appears
again nothing will be selected (even though it will still narrow down
it's hits the more characters i type again)
now the problem:  in an onKey listener i check if the suggestions are
showing (isPopupShowing) and if so i try to call performCompletion.
now the AutoCompleteListener finds out that nothing is selected and
replaces my content with "".

does anybody know of a way
- how to re-enable the selection on the suggestion list ?
- or how to find out if anything is selected at all? in that case i
would not call the performCompletion method

thnx!

--~--~---------~--~----~------------~-------~--~----~



performCompletion on AutoCompleteTextView

by oliver » Sat, 31 Jan 2009 01:52:26 GMT


 hi,
i'm having a problem when using the performCompletion method on an
AutoCompleteTextView.
when i start typing the suggestions work fine (an entry is
highlighted). as soon as i type enough characters so that no match is
possible anymore, the suggestion list disappears (which is ok).
when i know delete some characters so the suggestion list appears
again nothing will be selected (even though it will still narrow down
it's hits the more characters i type again)
now the problem:  in an onKey listener i check if the suggestions are
showing (isPopupShowing) and if so i try to call performCompletion.
now the AutoCompleteListener finds out that nothing is selected and
replaces my content with "".

does anybody know of a way
- how to re-enable the selection on the suggestion list ?
- or how to find out if anything is selected at all? in that case i
would not call the performCompletion method

thnx!

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


performCompletion on AutoCompleteTextView

by Romain Guy » Sat, 31 Jan 2009 01:55:08 GMT


 This will all be fixed in cupcake. But why do you need to call
performCompletion() yourself? There is no reason to do so.






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~



performCompletion on AutoCompleteTextView

by oliver » Sat, 31 Jan 2009 05:55:40 GMT


 thanks for your answer. good to hear it's gonna be fixed in cupcake.
the reason i call performCompletion() is i also want to react to
certain key events. a key event does not trigger the completion by
itself.

cheers,
oliver





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. building the entirety of android 2.2 on ubuntu 10.04

strictly for the entertainment value, i decided to follow the
instructions here for 64-bit ubuntu:

  http://source.android.com/source/download.html

  as i have a perfectly stock install of ubuntu 10.04, i had to make a
couple tweaks -- some of the packages in the "required list" have been
slightly renamed and, since i didn't feel like regressing my java 6 to
java 5, i cavalierly ripped out the test for the version of java that
would normally cause the build to fail and typed "make".

  a couple hours later, it finished:

...
Generated: (out/target/product/generic/android-info.txt)
Target system fs image:
out/target/product/generic/obj/PACKAGING/systemimage_unopt_intermediates/system.img
Install system fs image: out/target/product/generic/system.img
Target ram disk: out/target/product/generic/ramdisk.img
Target userdata fs image: out/target/product/generic/userdata.img
Installed file list: out/target/product/generic/installed-files.txt
$

  am i to assume then that i successfully built the entire code base
using java 6?  other than numerous compilation warnings, i didn't
notice any build errors.

rday

-- 

========================================================================
Robert P. J. Day                               Waterloo, Ontario, CANADA

            Linux Consulting, Training and Kernel Pedantry.

Web page:                                          http://crashcourse.ca
Twitter:                                       http://twitter.com/rpjday
========================================================================

-- 

2. Video player source code

Hi all,

Any one has any link or source code for video player (using gstreamer/
PV - videoplayer.apk)?

- NIral

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. Semitransparent text over VideoView doesn't seem to render properly

4. Installing and running app on HTC Incredible

5. Bad images when rotating 854x480 resolution

6. Bantuin ngeroot yah

7. ad ga c flash player untuk eclair???