my Activity extending ListActivity,null pointer exception when i select a list item which overstep the screen. why

by george » Sat, 07 Feb 2009 02:19:40 GMT


Sponsored Links
 code:
    @Override
    protected void onListItemClick(ListView l, View v, int position,
long id)
    {
        LinearLayout line = (LinearLayout)getListView().getChildAt
(position);
    }

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



Other Threads

1. How to connect to a server that runs on a localhost with the same eclipse program as the emulator?

How to connect to a server that runs on a localhost with the same
eclipse program as the emulator?

i need the emulator to connect to a server
both of them are in the building process so they both
are running on the same eclipse for check
but the emulator for some reason cant connect to the localhost
so can someone plase tell me how can it be done....:)
thnx in advance..
--~--~---------~--~----~------------~-------~--~----~

2. What Adapter to use to populate a Spinner dynamically?

I am trying to populate a spinner from a database and I get this exception:

ERROR/AndroidRuntime(1623): java.lang.IllegalStateException:
android.widget.Spinner is not a  view that can be bounds by this
SimpleCursorAdapter

Any example around on how to populate a spinner from a database?

Thanks

Fred









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

3. ODBC Driver

4. Can Spinner OnItemSelectedListener use View's drawable state to detect drop-down?

5. How to get a GL11Ext instance to call OpenGL Extension functions?

6. Please review my short code !

7. Android app communicating with the "outside"