How to make an Activity invisible using android code?

Asked

Viewed 121 times

1

Example: I want to start an Activity at the end of the android boot, but I don’t want it to be shown at this time (it’s a service). However, when clicking on the app icon, it should be displayed normally. I just want it to be invisible at boot time.

Example of use: I have an app and want to start it on android boot, but this option has to be chosen by the user (This I already solved).

I did so: I used Receiver to call another Activity on boot, regardless of whether the user chose it or not. Then this Activity reads the configuration file and checks the user’s option. If NOT to start, then I close this Activity (with Finish() ). Otherwise, I launch my app. But my app already opens the window and is open, I wanted to start it type, "minimized" windows.. or aculto.

Someone would have a solution?

  • 1

    Welcome to Sopt. What you’ve tried?

  • The question is a little fuzzy. I can’t distinguish what you’ve been able to do from what you haven’t been able to do and I’m not sure what you want to do.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.