alwaysbusy Expert Licensed User Longtime User Dec 16, 2013 #1 I'm trying to build an intent to add a bookmark to the browser. Howerver it fails. I try this in B4A B4X: myIntent.Initialize("android.intent.action.INSERT", "android.provider.Browser.BOOKMARKS_URI") myIntent.putExtra("title", meTitle) myIntent.putExtra("url", meURI) StartActivity(myIntent) This is the java code I found: B4X: public static final void saveBookmark(Context c, String title, String url) { Intent i = new Intent(Intent.ACTION_INSERT, android.provider.Browser.BOOKMARKS_URI); i.putExtra("title", title); i.putExtra("url", url); c.startActivity(i); } They mention something extra: B4X: put an <action android:name="android.intent.action.ACTION_INSERT" /> entry for the activity in the manifest How could I do this in B4A?
I'm trying to build an intent to add a bookmark to the browser. Howerver it fails. I try this in B4A B4X: myIntent.Initialize("android.intent.action.INSERT", "android.provider.Browser.BOOKMARKS_URI") myIntent.putExtra("title", meTitle) myIntent.putExtra("url", meURI) StartActivity(myIntent) This is the java code I found: B4X: public static final void saveBookmark(Context c, String title, String url) { Intent i = new Intent(Intent.ACTION_INSERT, android.provider.Browser.BOOKMARKS_URI); i.putExtra("title", title); i.putExtra("url", url); c.startActivity(i); } They mention something extra: B4X: put an <action android:name="android.intent.action.ACTION_INSERT" /> entry for the activity in the manifest How could I do this in B4A?
Erel B4X founder Staff member Licensed User Longtime User Dec 16, 2013 #2 Can you post the link to the page you saw these instructions? It looks strange. Upvote 0
alwaysbusy Expert Licensed User Longtime User Dec 16, 2013 #3 Sure: http://stackoverflow.com/questions/3734375/android-savebookmark-activity First answer Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Dec 16, 2013 #4 I don't think that this answer is relevant. The Uri should be: "content://browser/bookmarks" Upvote 0
alwaysbusy Expert Licensed User Longtime User Dec 16, 2013 #5 Thanks Erel, worked perfectly! Upvote 0