I receive the following error when click on a link in a webview control 
which open an sms app on my HTC legend 2.1. My html is like this: "<a 
href='sms:######'>######</a>"

On emulator, it runs fine.

---------------------------------------------
java.lang.RuntimeException: Unable to start activity 
ComponentInfo{com.android.mms/com.android.mms.ui.ComposeMessageActivity}: 
java.lang.IndexOutOfBoundsException
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2596)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2621)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
android.app.ActivityThread.access$2200(ActivityThread.java:126)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1932)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
android.os.Handler.dispatchMessage(Handler.java:99)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
android.os.Looper.loop(Looper.java:123)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
android.app.ActivityThread.main(ActivityThread.java:4595)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
java.lang.reflect.Method.invokeNative(Native Method)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
java.lang.reflect.Method.invoke(Method.java:521)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
dalvik.system.NativeStart.main(Native Method)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974): Caused by: 
java.lang.IndexOutOfBoundsException
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
android.net.Uri$PathSegments.get(Uri.java:934)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
android.net.Uri$PathSegments.get(Uri.java:919)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
com.android.mms.ui.ComposeMessageActivity.handleIntentViewAction(ComposeMessageActivity.java:3603)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
com.android.mms.ui.ComposeMessageActivity.onCreate(ComposeMessageActivity.java:3717)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
09-05 17:16:51.223: ERROR/AndroidRuntime(2974):     at 
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2544)

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

Reply via email to