Professional Documents
Culture Documents
You can access it by using the below code.Later add it to the listview you use in
hi.xml
try{
mCur.moveToFirst();
if (mCur.moveToFirst() && mCur.getCount() > 0) {
while (mCur.isAfterLast() == false) {
String title = mCur.getString(Browser.HISTORY_PROJECTION_TITLE_INDEX);
String url = mCur.getString(Browser.HISTORY_PROJECTION_URL_INDEX);
long date = mCur.getLong(Browser.HISTORY_PROJECTION_DATE_INDEX);
mCur.moveToNext();
}
}else{
mCur.close();
}
}catch(Exception e){
}finally{
mCur.close();
}
}catch(Exception e){
Also you need to give the below permission in your manifest file. Hope this helps.
<uses-permission
android:name="com.android.browser.permission.READ_HISTORY_BOOKMARKS" />