Hello.
i am trying to make a little app for android that will act as a spam filter.For that i need to find a way to access the mails in the android inbox of any account.do you know how this can be done?
thank you in advance
themisomagos

private SQLiteDatabase mydatabase;
String emails=" ";
mydatabase.openDatabase("/data/data/com.android.email/databases/3e7b0d2b-1256-4521-979e-bb4fa37c1fe6.db", null, MODE_WORLD_READABLE);
mCursor= mydatabase.query("messages", new String[] { "text_content" }, "folder_id=3", null, null, null, null);
int numRows = mCursor.getCount();
mCursor.isFirst();
for (int i = 0; i < numRows; ++i) {
emails+="\n\n";
emails+=mCursor.getString(0);
mCursor.moveToNext();
}

Return to Networking & Database Problems
Users browsing this forum: No registered users and 1 guest