1. Are you ready for the Galaxy S20? Here is everything we know so far!

Android launcher(Android Studio) : prevent access to some package

Discussion in 'Android Development' started by Waggos, Jul 11, 2019.

  1. Waggos

    Waggos Lurker
    Thread Starter

    Hi,



    I 'm actually programming an Android launcher for children. I've successed to create a database and only show app I have authorized. The problem is in Navigation bar when you swipe down, you can acess to the setting app ( see picture below).



    [​IMG]



    Is there is a way to override this button ? Or maybe to filter every packages sent from my launcher and check if there are authorized. I've tried Services, Broadcast receiver, onUserInteraction().



    Can you please help me ?

    Thanks.
     

    Advertisement

  2. Waggos

    Waggos Lurker
    Thread Starter

    So I've managed to find a solution.

    I've created an Async task that check what app is in foreground.

    If I don't want user to get on this app, I will send it to back to my launcher main screen.
     
  3. wseng92

    wseng92 Android Enthusiast

    Thanks for posting your solution here.
     
Loading...

Share This Page

Loading...