0

I have a question, is it possible to show MainActivity to user after they install my .apk on their devices? Because I have read that we can't autolaunch our apk after install, but I just need to show my Activity, so is it possible?

Citizen SP
  • 1,411
  • 7
  • 36
  • 68
vladimir
  • 695
  • 3
  • 15
  • 34

2 Answers2

1

You can't auto run your Android application right after the installation.

Maximum that you can do is to listen to android.intent.action.BOOT_COMPLETED intent, and it will work only if the user manually launch your application at least once.

EvZ
  • 11,889
  • 4
  • 38
  • 76
0

There is no way, you can start a services after installation but no to launch the app. Look this answare to learn more about the problem:

Autostart android app And this Launch services after installation

Community
  • 1
  • 1
lory105
  • 6,112
  • 4
  • 31
  • 40