Closed
Bug 647336
Opened 14 years ago
Closed 13 years ago
Import bookmarks from the stock Android Browser
Categories
(Firefox for Android Graveyard :: General, enhancement)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 710330
Firefox 11
People
(Reporter: mbrubeck, Unassigned)
References
Details
(Keywords: conversion, mobile)
Users migrating to Fennec should be able to import their bookmarks from the default "Browser" app on Android.
Comment 1•14 years ago
|
||
This code might be useful (it works for me):
// retrieve and log bookmarks
Cursor results;
String[] proj = new String[]
{
android.provider.BaseColumns._ID,
android.provider.Browser.BookmarkColumns.URL,
android.provider.Browser.BookmarkColumns.TITLE
};
// other columns available: http://developer.android.com/reference/android/provider/Browser.BookmarkColumns.html
results = managedQuery(android.provider.Browser.BOOKMARKS_URI, proj,
android.provider.Browser.BookmarkColumns.BOOKMARK, null, null);
int urlColumn= results.getColumnIndex(android.provider.Browser.BookmarkColumns.URL);
int titleColumn= results.getColumnIndex(android.provider.Browser.BookmarkColumns.TITLE);
String tag = "mytag";
if (results.moveToFirst()) {
do {
Log.d(tag, results.getString(titleColumn)+": "+results.getString(urlColumn));
} while (results.moveToNext());
}
Updated•13 years ago
|
Component: Bookmarks → General
Product: Fennec → Fennec Native
QA Contact: bookmarks → general
Target Milestone: --- → Firefox 11
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•