how to create dotnet 8 MAUI Android App Launcher app

Vikram 0 Reputation points
2024-01-04T11:35:33.8966667+00:00

I am trying to build an app launcher kind of application so that once the Android OS boots it will directly open my application and the user will have no access to anything else not even the taskbar & navigation buttons.

Is this achievable if yes can some one share sample app or code

Developer technologies .NET .NET MAUI
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 50,126 Reputation points Microsoft External Staff
    2024-01-05T05:53:39.1066667+00:00

    Hello,

    so that once the Android OS boots it will directly open my application

    For this need, you could use a broadcast receiver to implement app autostart. Please refer to Statically registering a Broadcast Receiver with an Intent Filter, although this document is under Xamarin.Android, but the implementation still works with MAUI.

    and the user will have no access to anything else not even the taskbar & navigation buttons.

    You can't completely block user navigation events, which is a limitation made by Google at the system level.

    In Android, you could hide Android's system bar by fullscreen to achieve a similar effect.

    Please refer to the following thread and Android documentation.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.