sqlite - Android - this in database(this) not working inside handler -
i want come in database every 30 seconds, why open in
h.postdelayed(new runnable(){ public void run(){h.postdelayed(this, delay0); } }, delay0) }
but need alter in look (cannot applied runnable) , right don't know how solve that.
database db = new database(this);
change
database db = new database(this); to
database db = new database(youractivity.this); this because, this referencing handler object.
android sqlite
No comments:
Post a Comment