Im trying to get the URL that was clicked in order to open the app. Im just having trouble finding where I can get that information. I have a manifest which opens app when clicked. The link would be "http://host.com/file.html?param=1¶m2=2" which Im trying to give to the app to handle.
<intent-filter> <data android:scheme="http" android:host="host.com" android:pathPrefix="/file.html" /> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.BROWSABLE" /> <category android:name="android.intent.category.DEFAULT" /> </intent-filter> EDIT
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = getIntent(); Uri uri = intent.getData(); try { url = new URL(uri.getScheme(), uri.getHost(), uri.getPath()); } catch (MalformedURLException e) { // TODO Auto-generated catch block e.printStackTrace(); } }