1. Download our Official Android App: Forums for Android!

Apps Permanently open app

Discussion in 'Android Development' started by Anthony_Eva, Nov 25, 2014.

  1. Anthony_Eva

    Anthony_Eva Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    2
    Joined:
    Nov 25, 2014

    Nov 25, 2014
    2
    0
    15
    Male
    I have an offline application that is manually installed onto a device. This application needs to automatically open when the device starts up and must not allow the user to close the application at all.so that the application is permanently open on the device. Is this possible, if so how?
     

    Advertisement

  2. steve

    steve Developer
    Administrator
    Rank:
    None
    Points:
    573
    Posts:
    1,086
    Joined:
    Apr 19, 2011

    Apr 19, 2011
    1,086
    1,178
    573
    Male
    Android Developer
    York, PA
    Research the system level permission STOP_APP_SWITCHES
    I am pretty sure that you need to root your device, include that permission in the manifest, and have the app installed as a system app (/system/app).
     
  3. Anthony_Eva

    Anthony_Eva Lurker
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    2
    Joined:
    Nov 25, 2014

    Nov 25, 2014
    2
    0
    15
    Male
    Thanks Steve for the assistance but we are going to do this to 1050 devices so we can't root them as it will take to long is there any other way?
     
  4. Mr. Lucky

    Mr. Lucky Android Expert
    Rank:
    None
    Points:
    263
    Posts:
    2,087
    Joined:
    Oct 27, 2011

    Oct 27, 2011
    2,087
    512
    263
    business owner
    SoCal
    Steve's answer is from the perspective of what needs to be done to the app itself, not from an end-user viewpoint. If you are not the developer, you'd need to disassemble the app, make the appropriate changes, then repackage and sign the app. If the app just runs, and does not have a UI, it would not need to be a /system app to meet your requirement. There's nothing I am aware of that can do what you want at the client or end-user level. GL!
     
  5. steve

    steve Developer
    Administrator
    Rank:
    None
    Points:
    573
    Posts:
    1,086
    Joined:
    Apr 19, 2011

    Apr 19, 2011
    1,086
    1,178
    573
    Male
    Android Developer
    York, PA
    I will do some research but as far as I know there is not. In L they introduced pinning but it certainly does not prevent user from closing app.

    In most situations like this I would think they would have a custom ROM or have central deployment of the devices through an IT department that would perform the necessary changes.
     

Share This Page

Loading...