Hi,

I am trying to display the activities in a application and start the
activities selected from the list,
which has an string defined by me.

For Example,

In the xml file,which ever application has defined an attribute named
resize,
I am filtering that application from the launched application list
with the help of resolveInfo
function.

I have also added this extra resizable property in the contacts
application.
When I try to launch the contacts application ,the process gets
stopped and it throws the below logs..


D/AndroidRuntime(  196): Shutting down VM

W/dalvikvm(  196): threadid=3: thread exiting with uncaught exception
(group=0x4001aa28)

E/AndroidRuntime(  196): Uncaught handler: thread main exiting due to
uncaught exception

E/AndroidRuntime(  196): java.lang.RuntimeException: Unable to start
activity ComponentInfo{com.android.contacts/
com.android.contacts.DialtactsActivity}:
java.lang.NullPointerException

E/AndroidRuntime(  196):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2412)

E/AndroidRuntime(  196):        at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2428)

E/AndroidRuntime(  196):        at android.app.ActivityThread.access
$2100(ActivityThread.java:116)

E/AndroidRuntime(  196):        at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:1797)

E/AndroidRuntime(  196):        at
android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime(  196):        at android.os.Looper.loop(Looper.java:126)

E/AndroidRuntime(  196):        at
android.app.ActivityThread.main(ActivityThread.java:4220)

E/AndroidRuntime(  196):        at
java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime(  196):        at
java.lang.reflect.Method.invoke(Method.java:521)

E/AndroidRuntime(  196):        at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:791)

E/AndroidRuntime(  196):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)

E/AndroidRuntime(  196):        at dalvik.system.NativeStart.main(Native
Method)

E/AndroidRuntime(  196): Caused by: java.lang.NullPointerException

E/AndroidRuntime(  196):        at
com.android.contacts.DialtactsActivity.onCreate(DialtactsActivity.java:
86)

E/AndroidRuntime(  196):        at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1127)

E/AndroidRuntime(  196):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2375)

E/AndroidRuntime(  196):        ... 11 more




Please someone help me in this issue..

Thanks in advance.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to