Soft Keyboard imeAction 'next' not working with AutoCompleteTextView

by Chris66 » Fri, 23 Apr 2010 08:02:19 GMT

Sponsored Links

  I have a layout with four AutoCompleteTextViews and the next button
on the soft keyboard doesn't work on either of them. I've tried
setting android:imeOptions and android:nextFocusRight/Down but it was
of no use. I also tried removing the FocusChanged/EditorAction/
TextChanged listeners of the views without success. Here is how one of
the views looks like:

numberTextView =
numberTextView.setOnFocusChangeListener(new OnFocusChangeListener() {
            public void onFocusChange(View view, boolean hasFocus) {
                if (hasFocus){          crossingText.setText("");  focused =
null;  recentList.setAdapter(null); }

<AutoCompleteTextView    android:id="@+id/street_number"
android:singleLine="true"    android:textColor="#F000"
android:hint="No"  android:inputType="number"/>

Could anyone give me some advice, please?



Other Threads

1. How to decrypt an XML file?

0  down vote  favorite

I am trying to to download and decrypt an encrypted XML file.

I have implemented the download part and have tested with an
unencrypted file and it works fine.

However I now need to be able to download an XML file that has been
encrypted using AES and the key "XXXX"

So I am only concerned with decryption as the encryption on the XML
file is already done.

Here is my code so far:

 public NodeList getXMLDoc(){
        URL url;
        NodeList nl = null;

            String xmlFeed = context.getString(R.string.xml_feed);
            try {
                url = new URL(xmlFeed);
                URLConnection urlConnection;
                urlConnection = url.openConnection();
                HttpURLConnection httpConnection = (HttpURLConnection)
                int responseCode = httpConnection.getResponseCode();

                if(responseCode == HttpURLConnection.HTTP_OK){

                    String bytes = toHex("XXXX");
                    SecretKeySpec skeySpec = new
SecretKeySpec(toByte(bytes), "AES");
                    try {
                        c.init(Cipher.DECRYPT_MODE, skeySpec);
                    } catch (InvalidKeyException e) {
                    InputStream in = httpConnection.getInputStream();
                    CipherInputStream cis = new CipherInputStream(in,
                    DocumentBuilderFactory dbf;
                    dbf = DocumentBuilderFactory.newInstance();
                    DocumentBuilder db = dbf.newDocumentBuilder();

                    Document dom = db.parse(cis);

                    Element docEle = dom.getDocumentElement();

                    nl = docEle.getElementsByTagName(TAG_CHAR);

            catch (MalformedURLException e) {

            catch (IOException e) {

            } catch (ParserConfigurationException e) {

            } catch (SAXException e) {


        return nl;

At the minute I am trying to decrypt the whole file using
CipherInputStream is this the correct approach?

My code above gives me the following exception:

WARN/System.err(5274): last block incomplete in

Is this a setup error or what might be causing this error?

Are there any tutorials on how to decrypt an XML file in Android/Java?

Am I going in the right direction as to how to decrypt the file or is
my code completely wrong?


2. google application not visible when I build my emulator


I have written a customized application using google maps. So I had to
generate the API key and add it into my xml file. The application
works perfectly fine when I run it on my emulator using eclipse.
But since I was making my customized emulator, I downloaded the
android source code and built an image using this apk file.
But I am not able to see this application when I run the image file
that was built.

Is this got to do something with google and the API keys ?
Please help.

I have tested other apk files by building an image with them, which
works perfectly fine.




3. Is there a way to keep an Android microSD card interface awake while the rest of the device is asleep?

4. Unable to start ResolverActivity

5. background phone call

6. developing sliding tab for android application

7. Reg: Placing the soft keys at the bottom of the touch screen.