You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 25, 2019. It is now read-only.
Dear Mr.evant
after set service to my application in api<21 service run only after run application and when I close app service don't run,But in api>21 service all of time run,
and
What is the difference between the two values
NETWORK_TYPE_UNMETERED
and
NETWORK_TYPE_ANY
Please give me an approach for fix this bug.
thank you,
The text was updated successfully, but these errors were encountered:
Created by mkodekar on 1/22/2016.
*/
public class StartTaskLoadCategoriesPower extends BroadcastReceiver { @OverRide
public void onReceive(Context context, Intent intent) {
if (Intent.ACTION_POWER_CONNECTED.equals(intent.getAction())) {
Toast.makeText(context, "Fecthing Data in Power Connection Mdoe", Toast.LENGTH_SHORT).show();
Intent serviceIntent = new Intent(context, LoadCategoryService.class);
context.startService(serviceIntent);
}
}
}
and the manifest entry
Huge Compromise it is but effective
instead of the intent you can initialize the job here and see what it does
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Dear Mr.evant
after set service to my application in api<21 service run only after run application and when I close app service don't run,But in api>21 service all of time run,
and
What is the difference between the two values
NETWORK_TYPE_UNMETERED
and
NETWORK_TYPE_ANY
Please give me an approach for fix this bug.
thank you,
The text was updated successfully, but these errors were encountered: