lundi 9 mai 2016

Android SQLite sending query as an email

I was wondering if it was possible to send a query via email that is created through my app as a text file, or similar format that can be viewed on a pc. The query i want to send is

public Cursor getExpiryData (){
    SQLiteDatabase db = this.getWritableDatabase();
    Cursor expiry = db.rawQuery("select * from " + TABLE_NAME + " WHERE " + COL_4 + " BETWEEN datetime('now', 'localtime') AND datetime('now', '+30 days')", null );
    return expiry;
}

Aucun commentaire:

Enregistrer un commentaire