1

How to read from database in android service

view story
linux-howto

http://stackoverflow.com – I am a new android developer and having this problem for weeks the problem is that i am trying to open database in my android app in a service and retrieve value from it but the problem is that the database does not open in service gives null pointer exception but same code works in activity. this code is public class Services1 extends Service { Context cont = this; @Override public IBinder onBind(Intent arg0) { // TODO Auto-generated method stub return null; } public void onCreates() { // TODO Auto-generated method stub String go = "running"; Toast.makeText( (HowTos)