I'm trying to initialize the activityManager like this but it failed . here is the code :
private ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
Can someone tell me why ??
I'm trying to initialize the activityManager like this but it failed . here is the code :
private ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
Can someone tell me why ??