ListView not touchable in my Activity

by monn3t » Fri, 10 Apr 2009 01:37:10 GMT

Sponsored Links

I developed an activity that extends the ListActivity.
It has a ListView that binds to a DB.

Thing is that I can click on the items of the view only with the
trackball.  When I try touching the items or the view I can't, is not

Below the view I have a button that works just fine in touch screen

I already tried removing the button (I thought that was it) but no.

Any thoughts?

Thanks in advance.

Here is a snippet of my code:

public class Activity_CardList extends ListActivity {

        private DbAdapter myDbAdapter;
        private DbHelper myDbHelper;
        private Cursor HolderCursor;
        private String[] from;
        private int[] to;
        private static final int ADDCARD_DIALOG = 1;
        private static final int ABOUT_DIALOG = 2;

        static String barcodeNumber = "";
        static String cardNote = "";
        static String retailerName = "";
        static String cardIcon = "";

        // private ImageView storeLogo;
        public void onCreate(Bundle savedInstanceState) {

                myDbAdapter = new DbAdapter(this);
                HolderCursor = myDbAdapter.getAllEntries();
                from = new String[] { myDbHelper.FIELD1, myDbHelper.FIELD2,
                                myDbHelper.FIELD3 };

                to = new int[] {,,

                SimpleCursorAdapter notes = new SimpleCursorAdapter(this,
                                HolderCursor, from, to);


                this.getListView().setSelectionFromTop(1, 1);

                Button addCard = (Button) this.findViewById
                addCard.setOnClickListener(new Button.OnClickListener() {
                        public void onClick(View v) {


ListView not touchable in my Activity

by Chander Pechetty » Fri, 10 Apr 2009 11:24:46 GMT

 I don't see any itemClickListener registered ?


Sponsored Links

Other Threads

1. How do you design your UIs?


Just out of curiousity.

How do you design your UIs?

- Do you just use plain text editors?
- Do you use editors with special XML support?
- Do you use any GUI like AndroidDraw?

Do you recompile after every change and upload it to the device?

Do you have any special methodology?


2. Notification intent executing wrong intent on click

In my app I need to loop through the rows in a DB and for every row
create a notification. Each notification has an intent to open an
activity in my app. How the activity gets handled is dependent on the
extras on the intent.

Here is the code in question

For every row in the database loop{

  Intent notificationIntent = new Intent(context, DisplayScore.class);

                                 // The PendingIntent to launch our activity if 
the user selects
this notification
                                PendingIntent pendingIntent = 
(context, 0, notificationIntent, 0);

                                    nm = 
                                    Notification notification = new 
                                                "Score update", 

notification.setLatestEventInfo(context, "My app name", "My
message", pendingIntent);

                                    nm.notify(gs.getMatchID(), notification);


The notifications get displayed fine. The problem is that when there
are multiple intents displayed, clicking on them does the same thing
for each one.

What should happen is that the intent being used should have different
extras attached. But it appears as though no matter which notification
is clicked the all send the same intent.

I've checked in the de{*filter*} and the intent getting passed to the
notification as the pending intent has the correct extras attached.
But then when it gets clicked its sending the intent (plus extras) of
the first notification in the list to the activity. What am I doing

3. Anyone working on a Dex decompiler ? I am doing one .

4. does android have limitation of the number of images that will be textured(opengles) on a object?

5. Modifying the user interface of Android...possible?

6. How get current layout object?

7. sooo i found out i hate tmobile