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
    protected void onListItemClick(ListView l, View v, int position,
long id)
        LinearLayout line = (LinearLayout)getListView().getChildAt


Other Threads

1. Passing a 2 dimensional array to an Activity


I need to pass a 2 dimensional array to an ACTIVITY  from a SERVICE.
How can I achieve this in minimum number of statements (as in avoiding
putExtras for each and every string stored in the array)??

Please help me with this.


Best Regards,

2. android.intent.action.TIME_TICK - Has anyone used it?

I'm trying to get an application / reciever / anything that can
perform a task once every minute. I'm trying to use the intent-filter
"android.intent.action.TIME_TICK" which, in theory, sends an Intent
message every minute.

Does anyone have any code that uses the
android.intent.action.TIME_TICK intent? I can't seem to get it to send
the intent to my application and I can't find anything much on the
internet. Has anyone used it successfully?

I have a manifest.xml as below.

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=""
android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.SET_TIME_ZONE" /
    <application android:icon="@drawable/icon" android:label="@string/
        <activity android:name=".xxxApp"
                <action android:name="android.intent.action.MAIN" />
android:name="android.intent.category.LAUNCHER" />
        <receiver android:name=".xxxRecvr"
                <action android:name="android.intent.action.TIME_TICK"/

3. How do I know where my app received an ANR

4. Is it possible to read cellular-network messages?

5. send bytes[] buffer in httppost

6. ListView elements in Dialogs never expand to full width

7. permission-tree in Android Manifest