11 December 2012

Android development crusade part 15: What to do ?

Crash report gave an awesome information sometimes:
What i know is :

exception:  java.lang.NullPointerException
happen  in: TextView.IsEndHandleVisible()
on mobile:  Samsung  SCH-I405


Stack Trace:
 java.lang.NullPointerException
at android.widget.TextView.IsEndHandleVisible(TextView.java:9130)
at android.widget.TextView$CursorControllerMenu.showCursorControllerMenu(TextView.java:9597)
at android.widget.TextView.onTextContextMenuItem(TextView.java:7807)
at android.widget.TextView$MenuHandler.onMenuItemClick(TextView.java:7765)
at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:137)
at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:861)
at com.android.internal.view.menu.MenuDialogHelper.onClick(MenuDialogHelper.java:143)
at com.android.internal.app.AlertController$AlertParams$3.onItemClick(AlertController.java:917)
at android.widget.AdapterView.performItemClick(AdapterView.java:284)
at android.widget.ListView.performItemClick(ListView.java:3701)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:1980)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3689)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)

Now i have a tiny problem.
 I don't have  a ListView with TextView inside !

 I go thru all layouts and I found, that i  have 2 ListViews (ListView in camera,gps) but both of them doesn't have TextView and I using another dynamicaly clreate ListView in camera.

I have no clue where problem is at the moment
SCH-I405 is a CDMA only phone,so i expected that TelephonyInfo will be response for that but it doesn't use ListView at all.

It is very unlikely that somebody use camera as is hidden in settings.