1. AC Question's Avatar
    I got an `IntentService`that execute CRUD operations, i am starting `IntentService` when my app starts to update data, when data is updated i need to start activity that actualy shows that data.

    But as i see now, `IntentService` starts my code in a separated process, that actualy finishes after my activity is created, so i have empty activity. Can i fix this? Or standart `Service`is the only way?

    @Override
    protected void onHandleIntent(Intent intent) {
    Log.e("action",intent.getStringExtra(Utils.INTENT_SERVICE_INVOKE));
    ResultReceiver resultReceiver = intent.getParcelableExtra(Utils.RECEIVER);
    switch (intent.getStringExtra(Utils.INTENT_SERVICE_INVOKE)){
    case Utils.LOAD_All_DATA:{
    loadActivities();
    loadPersons();
    loadPictureData();
    Log.e("order","forth");
    resultReceiver.send(Utils.TASK_FINISHED,new Bundle());
    // Intent broadcastIntent = new Intent();
    // broadcastIntent.setAction(Utils.LOAD_All_DATA);
    // sendBroadcast(broadcastIntent);
    break;
    }
    case Utils.READ_ACTIONS_DATA:{
    readActionData();
    break;
    }
    case Utils.READ_PERSONS_DATA:{
    readPersonsData();
    break;
    }
    case Utils.READ_ACTION_BY_ID:{
    readActionDataById(intent);
    break;
    }
    }
    }
    11-05-2016 10:55 AM
  2. the tall guy's Avatar
    Hi, sorry but I've no idea what the above means - were you able to find a resolution?
    11-07-2016 10:11 AM

Similar Threads

  1. Can you switch carriers?
    By afblangley in forum Samsung Gear S2
    Replies: 2
    Last Post: 11-21-2016, 11:54 AM
  2. How can I get my music off my PC & onto to my 6p?
    By Diehlirious in forum Nexus 6P
    Replies: 10
    Last Post: 11-17-2016, 09:59 AM
  3. Replies: 2
    Last Post: 11-06-2016, 08:14 AM
  4. Replies: 2
    Last Post: 11-05-2016, 12:40 PM
LINK TO POST COPIED TO CLIPBOARD