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. Click on MapView return Dialog/Alert Long/Latitude

Hello,

this should be simple but somehow I can't get it to work!!

I have a simple map application, how can I get a dialog when the user
clicks on the map to whenever the user click somewhere a dialog opens
up returning longitude and latitude.

(something with OnClickListener)

thanks

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

2. ADC2 Prize Ideas

In the interest of the success of Android and the ADC2, I'd like to
offer and request suggestions for the contest as the rules have yet to
be finalized publicly.  I think the Android device owners voting/
testing is a super idea.

Suggestion 1: A huge grand prize amount.  $1,000,000US at least.

Suggestion 2: Prizes for all non winning entries after vetting by G1
owners.

Suggestion 3: Extend contest deadline for additional application
development time while allowing carriers to exploit selling new
devices becoming available over the next few months.

Suggestion 4: Notify the public about the contest and that they may
participate in the contest with a new Android type device.

Suggestion 5: Get the Open Handset Alliance openly involved in the
contest with prize money, promotion, and judging.

Suggestion 6: Keep the voting results public.  The contestants want
feedback for their work and the public wants to know their vote
counted.  Contest organizers want the contest to go smoothly with a
stunningly positive effect.

Comment please.

Cheers,
Wes
--~--~---------~--~----~------------~-------~--~----~

3. Syntax error on token ...... (newb)

4. Disabling Notification expanded view

5. Unhelpful SQLite3 error msg (SQL error: not an error). Can't modify database

6. Unhelpful SQLite3 error msg (SQL error: not an error). Can't modify database

7. Unhelpful SQLite3 error msg (SQL error: not an error). Can't modify database