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. Passing a 2 dimensional array to an Activity

Hi,

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.

Thanks.

Best Regards,
Zhubham
--~--~---------~--~----~------------~-------~--~----~

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="http://schemas.android.com/apk/res/android"
      package="xx.xxx.xxxxxxx"
      android:versionCode="2"
      android:versionName="2.0.0">
    <uses-permission
android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.SET_TIME_ZONE" /
    <application android:icon="@drawable/icon" android:label="@string/
app_name">
        <activity android:name=".xxxApp"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <receiver android:name=".xxxRecvr"
            android:process="xxx.xxx">
            <intent-filter>
                <action android:name="android.intent.action.TIME_TICK"/
                <action
android:name="android.intent.action.TIMER_TICK"/>
            </intent-filter>
        </receiver>
    </application>
    </manifest>
--~--~---------~--~----~------------~-------~--~----~

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