This is my Service Class
public class ContactSync extends IntentService {
private static final String TAG = "com.ric.connectme.Services.ContactSync";
public ContactSync() {
super(TAG);
}
public ContactSync(String name) {
super(name);
}
@Override
protected void onHandleIntent(@Nullable Intent intent) {
if (intent != null) {
Toast t = Toast.makeText(getBaseContext(), message, Toast.LENGTH_LONG);
t.setGravity(Gravity.CENTER, 0, 0);
t.show();
GoForUplodeContect(intent);
}
}
private void GoForUplodeContect(Intent intent){
RsXtraUserNumbersBackupUploder.Uplode(getBaseContext(),intent);
}
@Override
public void onDestroy() {
super.onDestroy();
}
}
This Is What I Inserted In AndroidManifest
<service android:name=".Services.ContactSync">
</service>
And This is how I am calling this service
Intent intent = new Intent(context,ContactSync.class);
intent.putExtra(RsXtraIntetBundelKeys.USER_ID,userId);
context.startService(intent);
I Tried everything and system starting the service very well but the onHandleIntent is not executing.
Can any one help me on this ?