1

Cannot make a static reference to the non-static method getSystemService(String) from the type Context

view story
linux-howto

http://stackoverflow.com – I get "Cannot make a static reference to the non-static method getSystemService(String) from the type Context" error. called the class of AsyncTask non-activity app, called Sag.end from BroadcastReceiver. public class SaG { public static void end(String xxx) { new AsyncTask<Integer, Void, Void>(){ @Override protected Void doInBackground(Integer... params) { String test = Util.imei(); }.execute(); -------- import android.app.Activity; import android.content.Context; impor (HowTos)