1. AC Question's Avatar
    I created android application for getting all installed applications packages in device and then i select any one package i am launching the application using following code.
    Intent LaunchIntents = getPackageManager().getLaunchIntentForPackage(appPacname);
    LaunchIntents.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
    LaunchIntents.addFlags(Intent.FLAG_INCLUDE_STOPPED_PACKAGES);
    startActivity(LaunchIntents);

    After application is running 30 minutes I want to kill the launched application but it is not killing.I tried killing by using following statement activityManager.killBackgroundProcesses(selectedItemPkgName);


    please help me to resolve the issue.
    08-07-2014 03:07 AM

Similar Threads

  1. Android 4.4
    By Unregistered in forum Ask a Question
    Replies: 1
    Last Post: 03-31-2015, 04:53 PM
  2. how to upgrade from android 2.2
    By AC Question in forum Ask a Question
    Replies: 1
    Last Post: 08-07-2014, 05:26 AM
  3. android app resolution problem
    By AC Question in forum Ask a Question
    Replies: 0
    Last Post: 08-07-2014, 02:05 AM
  4. first time android: gmail vs email & push
    By AC Question in forum Ask a Question
    Replies: 0
    Last Post: 08-07-2014, 01:49 AM
LINK TO POST COPIED TO CLIPBOARD