exception - android - No Activity found to handle intent action.VIEW -


i got exception in android app:

06-18 17:57:39.816    6333-6333/com.appsrox.instachat e/inputeventreceiver﹕ exception dispatching input event. 06-18 17:57:39.816    6333-6333/com.appsrox.instachat e/messagequeue-jni﹕ exception in messagequeue callback: handlereceivecallback 06-18 17:57:39.816    6333-6333/com.appsrox.instachat e/messagequeue-jni﹕ android.content.activitynotfoundexception: no activity found handle intent { act=android.intent.action.view dat=href (has extras) }             @ android.app.instrumentation.checkstartactivityresult(instrumentation.java:1781)             @ android.app.instrumentation.execstartactivity(instrumentation.java:1501)             @ android.app.activity.startactivityforresult(activity.java:3745)             @ android.app.activity.startactivityforresult(activity.java:3706)             @ android.app.activity.startactivity(activity.java:4016)             @ android.app.activity.startactivity(activity.java:3984)             @ android.text.style.urlspan.onclick(urlspan.java:62)             @ android.text.method.linkmovementmethod.ontouchevent(linkmovementmethod.java:217)             @ android.widget.textview.ontouchevent(textview.java:7985)             @ android.view.view.dispatchtouchevent(view.java:8471)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ com.android.internal.policy.impl.phonewindow$decorview.superdispatchtouchevent(phonewindow.java:2369)             @ com.android.internal.policy.impl.phonewindow.superdispatchtouchevent(phonewindow.java:1719)             @ android.app.activity.dispatchtouchevent(activity.java:2742)             @ com.android.internal.policy.impl.phonewindow$decorview.dispatchtouchevent(phonewindow.java:2330)             @ android.view.view.dispatchpointerevent(view.java:8666)             @ android.view.viewrootimpl$viewpostimeinputstage.processpointerevent(viewrootimpl.java:4123)             @ android.view.viewrootimpl$viewpostimeinputstage.onprocess(viewrootimpl.java:3989)             @ android.view.viewrootimpl$inputstage.deliver(viewrootimpl.java:3544)             @ android.view.viewrootimpl$inputstage.ondelivertonext(viewrootimpl.java:3597)             @ android.view.viewrootimpl$inputstage.forward(viewrootimpl.java:3563)             @ android.view.viewrootimpl$asyncinputstage.forward(viewrootimpl.java:3680)             @ android.view.viewrootimpl$inputstage.apply(viewrootimpl.java:3571)             @ android.view.viewrootimpl$asyncinputstage.apply(viewrootimpl.java:3737)             @ android.view.viewrootimpl$inputstage.deliver(viewrootimpl.java:3544)             @ android.view.viewrootimpl$inputstage.ondelivertonext(viewrootimpl.java:3597)             @ android.view.viewrootimpl$inputstage.forward(viewrootimpl.java:3563)             @ android.view.viewrootimpl$inputstage.apply(viewrootimpl.java:3571)             @ android.view.viewrootimpl$inputstage.deliver(viewrootimpl.java:3544)             @ android.view.viewrootimpl.deliverinputevent(viewrootimpl.java:5807)             @ android.view.viewrootimpl.doprocessinputevents(viewrootimpl.java:5781)             @ android.view.viewrootimpl.enqueueinputevent(viewrootimpl.java:5752)             @ android.view.viewrootimpl$windowinputeventreceiver.oninputevent(viewrootimpl.java:5897)             @ android.view.inputeventreceiver.dispatchinputevent(i 06-18 17:57:39.816    6333-6333/com.appsrox.instachat d/androidruntime﹕ shutting down vm 06-18 17:57:39.817    6333-6333/com.appsrox.instachat e/androidruntime﹕ fatal exception: main     process: com.appsrox.instachat, pid: 6333     android.content.activitynotfoundexception: no activity found handle intent { act=android.intent.action.view dat=href (has extras) }             @ android.app.instrumentation.checkstartactivityresult(instrumentation.java:1781)             @ android.app.instrumentation.execstartactivity(instrumentation.java:1501)             @ android.app.activity.startactivityforresult(activity.java:3745)             @ android.app.activity.startactivityforresult(activity.java:3706)             @ android.app.activity.startactivity(activity.java:4016)             @ android.app.activity.startactivity(activity.java:3984)             @ android.text.style.urlspan.onclick(urlspan.java:62)             @ android.text.method.linkmovementmethod.ontouchevent(linkmovementmethod.java:217)             @ android.widget.textview.ontouchevent(textview.java:7985)             @ android.view.view.dispatchtouchevent(view.java:8471)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ android.view.viewgroup.dispatchtransformedtouchevent(viewgroup.java:2405)             @ android.view.viewgroup.dispatchtouchevent(viewgroup.java:2106)             @ com.android.internal.policy.impl.phonewindow$decorview.superdispatchtouchevent(phonewindow.java:2369)             @ com.android.internal.policy.impl.phonewindow.superdispatchtouchevent(phonewindow.java:1719)             @ android.app.activity.dispatchtouchevent(activity.java:2742)             @ com.android.internal.policy.impl.phonewindow$decorview.dispatchtouchevent(phonewindow.java:2330)             @ android.view.view.dispatchpointerevent(view.java:8666)             @ android.view.viewrootimpl$viewpostimeinputstage.processpointerevent(viewrootimpl.java:4123)             @ android.view.viewrootimpl$viewpostimeinputstage.onprocess(viewrootimpl.java:3989)             @ android.view.viewrootimpl$inputstage.deliver(viewrootimpl.java:3544)             @ android.view.viewrootimpl$inputstage.ondelivertonext(viewrootimpl.java:3597)             @ android.view.viewrootimpl$inputstage.forward(viewrootimpl.java:3563)             @ android.view.viewrootimpl$asyncinputstage.forward(viewrootimpl.java:3680)             @ android.view.viewrootimpl$inputstage.apply(viewrootimpl.java:3571)             @ android.view.viewrootimpl$asyncinputstage.apply(viewrootimpl.java:3737)             @ android.view.viewrootimpl$inputstage.deliver(viewrootimpl.java:3544)             @ android.view.viewrootimpl$inputstage.ondelivertonext(viewrootimpl.java:3597)             @ android.view.viewrootimpl$inputstage.forward(viewrootimpl.java:3563)             @ android.view.viewrootimpl$inputstage.apply(viewrootimpl.java:3571)             @ android.view.viewrootimpl$inputstage.deliver(viewrootimpl.java:3544)             @ android.view.viewrootimpl.deliverinputevent(viewrootimpl.java:5807)             @ android.view.viewrootimpl.doprocessinputevents(viewrootimpl.java:5781)             @ android.view.viewrootimpl.enqueueinputevent(viewrootimpl.java:5752)             @ android.view.viewrootimpl$windowinputeventreceiver.oninputevent(viewrootimpl.java: 06-18 17:57:39.818    1228-1596/system_process w/activitymanager﹕ force finishing activity 1 com.appsrox.instachat/.chatactivity 

this occur when user clicks url in text. have listfragment layout containing textview. testing using android device emulator in android studio.

this happens when user clicks url in text urls in app. about? how fix error if need urls clickable in text?

my android device has browser. here part textview html settings:

textview tvhtml = (textview) view; final string html="<a href="http://www.google.com">go google</a>"; tvhtml.setlinksclickable(true); tvhtml.setmovementmethod (linkmovementmethod.getinstance()); tvhtml.settext(html.fromhtml(html)); 

here snippet code app:

    @override     public void onactivitycreated(bundle savedinstancestate) {             super.onactivitycreated(savedinstancestate);             getlistview().setdivider(null);             getlistview().setselector(r.drawable.selector_items);             bundle args = new bundle();             args.putstring(dataprovider.col_email, mlistener.getprofileemail());             getloadermanager().initloader(0, args, this);             this.postmesagescab();     }     .....      ....      adapter.setviewbinder(new simplecursoradapter.viewbinder() {             @override             public boolean setviewvalue(view view, cursor cursor, int columnindex) {                 switch (view.getid()) {                     case r.id.text1:                      textview tvhtml = (textview) view;                      final string html="<a href="http://www.google.com">go google</a>";                      tvhtml.setlinksclickable(true);                      tvhtml.setmovementmethod ( linkmovementmethod.getinstance());                      tvhtml.settext(html.fromhtml(html));      ...}      private void postmesagescab() {             final listview listview = getlistview();             listview.setchoicemode(listview.choice_mode_multiple_modal);              listview.setonitemlongclicklistener(new adapterview.onitemlongclicklistener() {              @override             public boolean onitemlongclick(adapterview<?> parent, view view, int position, long id) {                     ((listview) parent).setitemchecked(position,                             ((listview) parent).isitemchecked(position));                     //view.setbackgroundcolor(color.cyan);                 return false;                 }             });             listview.setmultichoicemodelistener(new abslistview.multichoicemodelistener() {                 //private int nr = 0;                  @override                 public void onitemcheckedstatechanged(actionmode mode, int position,                                                       long id, boolean checked) {                     // here can when items selected/de-selected,                     // such update title in cab                     cursor c = ((simplecursoradapter)listview.getadapter()).getcursor();                     c.movetoposition(position);                     string item = c.getstring(0);                      if (checked) {                         nr++;                     } else {                         nr--;                     }                     int fsize=checkeditempositions.size();                     mode.settitle(string.format("%d ite%s selecionado%s", fsize, fsize==1 ? "m" : "ns", fsize==1 ? "" : "s"));                     mode.invalidate();                 } 

...

this occur when user clicks url in text

in case, url malformed:

android.content.activitynotfoundexception: no activity found handle intent { act=android.intent.action.view dat=href (has extras) } 

the url href. not valid url.

here part textview html settings:

that not compile, not valid java. cannot have quoted string contains quotes. need escape inner quotes:

final string html="<a href=\"http://www.google.com\">go google</a>"; 

how fix error if need urls clickable in text?

if 1 supplying html, make sure valid.


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -