Why does setTextFilterEnabled(true) not work?

by guishenl...@gmail.com » Thu, 30 Jul 2009 17:44:02 GMT

Sponsored Links
 Hi all,
    I want to design a ListView with auto filter fuction, that is,
when the user press a key all the items who matches this key will be
filtered and form a new list.
I selected the method setTextFilterEnabled(true) to implement my
function, but it didn't work in fact.
Could anyone tell me where my mistacke exists?
Thank you in advance!

Here is my code:

package com.example.android.apis.view;

import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;

 * A list view example where the
 * data for the list comes from an array of strings.
public class List1 extends ListActivity {

    public void onCreate(Bundle savedInstanceState) {

        // Use an existing ListAdapter that will map an array
        // of strings to TextViews
        setListAdapter(new ArrayAdapter<String>(this,
                android.R.layout.simple_list_item_1, mStrings));

    private String[] mStrings = {
            "Action", "Adventure", "Animation", "Children", "Comedy",
"Documentary", "Drama",
        "Foreign", "History", "Independent", "Romance", "Sci-Fi",
"Television", "Thriller"



Other Threads

1. Pixelpipe Post & Upload Lite

Upload Photos and post to Blog & Status services directly from your
Android with Pixelpipe Lite & get your content out to your favorite
social network, blog and photo sites. Supported services include
Facebook, Flickr, Picasa, Blogger, Twitter, hi5, Photobucket, TwitPic,
TinyPic, yfrog, Evernote, Xanga, Pixel Pipe.

Price FREE, Version 1.3, Downloads 5,000-10,000, Size 543964, Category Social

Sumber: cyrket


Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group, please visit the following page:

2. Did Google fumble the Android 1.6 launch?

We were thrilled last week when T-Mobile started rolling out Android
1.6, but we were also shocked that the update came without warning.
Developers were also surprised with how soon the update started
appearing. Everyone knew Android 1.6 was looming, but there was no
public date for its availability.

Did Google fumble the Android 1.6 launch?

1. The update caught developers off guard.

Developers knew the update was coming, but many had not released
updates for their applications. This is a problem because Android 1.6
causes problems with many apps and they need to be updated in order to
be compatible.

Google normally sends an email to all developers who register with
Android Market in order to warn them, but that did not happen this
time around.

Some customers experienced severe problems when they updated to
Android 1.6 because they had apps installed that were not compatible
with the update.

2. Google uploaded the wrong 1.6 images on HTC site.

Google uploaded the developer images of Android 1.6 to HTC site only
two days before the over the air update began. Unfortunately, the
wrong images were uploaded at first, which caused further confusion
among developers.

3. Android 1.6 breaks many apps in ADC2.

The Android Developers challenge is in the middle of the first round
of voting. According to the official rules of the contest,
applications can not be upgraded after they are submitted. All of the
applications were designed for Android 1.5 so the new update to
Android 1.6 makes these apps unusable.

Hopefully Google will do something to address this.

Having Problems with Android 1.6?
If you are experiencing force close loops, you can boot your phone
into safe mode and uninstall the offending software.

Power off your phone
Hold down Menu and then power on your phone
Keep holding Menu down until Android boots and you see safe mode
displayed on your desktop
Go to Settings > Applications > Manage Applications and uninstall
problem software
If you experience an application that has problems, please email the
developer. Many problems can be easily fixed, but the dev needs to be
aware that problems exist.

The following is a list of applications that users have reported
problems with Android 1.6. Not all have been verified. Let us know if
any get fixed and we will update it.

Open Home (Fixed)
Useful Switchers
Panda Home
Appmanager Pro
Toggle Settings
It appears apps that use GPS, home replacement apps, and some apps
with native Android tabs are having issues.

If you know of an app that does not work with Android 1.6, leave a
comment and we will add it to the list.

Sumber: androidandme


Google Groups "Indonesian Android Community [id-android]" group.

To post to this group, send email to id-android@googlegroups.com

To request to subscribe to this group, please visit the following page:

3. android store support

4. Looping through contacts with reading each contact default phone

5. bringing an app to the foreground...

6. Help needed: Emulator does not show up

7. Internet radio+source code