android - my activity not being called with action_view -


i have create activity in application com.example.one calls activity in application com.example.two. in activity 2 manifest have declared following intent-filter

  <intent-filter>                 <action android:name="android.intent.action.view" />                  <category android:name="android.intent.category.default" />                 <data android:scheme="http" />             </intent-filter> 

however on calling activity action - intent.action_view or android.intent.action.view directly invokes browser rather intent chooser have put.

intent ii=new intent(intent.action_view);         ii.setdata(uri.parse("http://www.google.com")); startactivity(intent.createchooser(ii,"done")); 

kindly update why not getting intent chooser browser , activity. thanks

clear browser defaults settings, try invoke method, should ask action choose available apps, time , always, here go it.

to clear go settings -> apps -> browsers [chrome, firefox or other if installed] each browser press button 'clear defaults'.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -