Hello. There was such a problem. It is necessary to transfer the address (string) of another activity implicitly, and it is through putExtra (). I tried to do this:

Uri address = Uri.parse("http://google.by"); Intent intent = new Intent(Intent.ACTION_VIEW); intent.putExtra("uri", address); startActivity(intent); 

Accept and display as follows:

  String uri = getIntent().getStringExtra("uri"); webView.loadUrl(uri); 

Also added permissions for browser activity:

  <uses-permission android:name="android.permission.INTERNET"/> <activity android:label="TestBrowser" android:name="WebActivity"> <intent-filter> <action android:name="android.intent.action.VIEW"/> <data android:scheme="http"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </activity> 

But in the list of applications there is no this application. Can that will advise?

    2 answers 2

    Most likely, you need to add this to the activation filter of your activit in the manifest.

     <category android:name="android.intent.category.BROWSABLE"/> 

      I decided. Easier to do so

        Uri address = Uri.parse("http://google.by"); Intent intent = new Intent("your_custom_id"); intent.putExtra("uri", address); startActivity(intent); 

      And in the manifest change to

        <activity android:label="TestBrowser" android:name="WebActivity"> <intent-filter> <action android:name="your_custom_id"/> <category android:name="android.intent.category.DEFAULT"/> </intent-filter> </activity>