title: load url from browsable intent android
body: <p>I implemented "&lt; category android:name="android.intent.category.BROWSABLE" />"
  in my browser app and i want any other browser showing the list to choose which app to handle that link in, its working fine i am able to launch my app from the list but however it doesnt load that url in my app, all it does is open my app and paste the url in the text field. any clue?</p>
  
  <p><strong>edit:</strong> i tried this one for loading url in my webview after pasting it but the app force closes </p>
  
  <pre><code>TextView uri = (TextView) findViewById(R.id.urlField);
      //if (Intent.ACTION_MAIN.equals(getIntent().getAction())) {
          String intentUri = (new Intent("com.example.browsableintent.MY_ACTION"))
                  .toUri(Intent.URI_INTENT_SCHEME).toString();
          uri.setText(intentUri);
          webView.loadUrl(intentUri);
          Log.w("URLHandler", intentUri);
      //} else {
          Uri data = getIntent().getData();
          if (data == null) {
              uri.setText("");
          } else {
              uri.setText(getIntent().getData().toString());
          }
      //}
  </code></pre>
  
  <p><strong>manifest</strong></p>
  
  <p>
                  </p>
  
  <pre><code>            &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
              &lt;category android:name="android.intent.category.APP_BROWSER" /&gt;
          &lt;/intent-filter&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
  
              &lt;data android:scheme="http" /&gt;
              &lt;data android:scheme="https" /&gt;
              &lt;data android:scheme="about" /&gt;
              &lt;data android:scheme="javascript" /&gt;
          &lt;/intent-filter&gt;
  
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW" /&gt;
  
              &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
  
              &lt;data android:scheme="http" /&gt;
              &lt;data android:scheme="https" /&gt;
              &lt;data android:scheme="inline" /&gt;
              &lt;data android:mimeType="text/html" /&gt;
              &lt;data android:mimeType="text/plain" /&gt;
              &lt;data android:mimeType="application/xhtml+xml" /&gt;
              &lt;data android:mimeType="application/vnd.wap.xhtml+xml" /&gt;
          &lt;/intent-filter&gt;
          &lt;!-- For viewing saved web archives. --&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.VIEW" /&gt;
  
              &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
  
              &lt;data android:scheme="http" /&gt;
              &lt;data android:scheme="https" /&gt;
              &lt;data android:scheme="file" /&gt;
              &lt;data android:mimeType="application/x-webarchive-xml" /&gt;
          &lt;/intent-filter&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.WEB_SEARCH" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
              &lt;category android:name="android.intent.category.BROWSABLE" /&gt;
  
              &lt;data android:scheme="" /&gt;
              &lt;data android:scheme="http" /&gt;
              &lt;data android:scheme="https" /&gt;
          &lt;/intent-filter&gt;
  </code></pre>
  
  <p><strong>LOG</strong></p>
  
  <pre><code>02-11 17:50:48.678: E/AndroidRuntime(29023): FATAL EXCEPTION: main
  02-11 17:50:48.678: E/AndroidRuntime(29023): Process: com.air.swiftmp, PID: 29023
  02-11 17:50:48.678: E/AndroidRuntime(29023): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.air.swiftmp/com.air.swiftmp.MainActivity}: java.lang.NullPointerException
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2350)
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at android.app.ActivityThread.access$800(ActivityThread.java:163)
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1257)
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at android.os.Handler.dispatchMessage(Handler.java:102)
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at android.os.Looper.loop(Looper.java:157)
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at android.app.ActivityThread.main(ActivityThread.java:5335)
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at   java.lang.reflect.Method.invokeNative(Native Method)
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at java.lang.reflect.Method.invoke(Method.java:515)
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at dalvik.system.NativeStart.main(Native Method)
  02-11 17:50:48.678: E/AndroidRuntime(29023): Caused by: java.lang.NullPointerException
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at com.air.swiftmp.MainActivity.onCreate(MainActivity.java:95)
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at android.app.Activity.performCreate(Activity.java:5389)
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
  02-11 17:50:48.678: E/AndroidRuntime(29023):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2256)
  </code></pre>