How to launch an Activity without a UI?

后端 未结 11 1672
失恋的感觉
失恋的感觉 2020-11-30 17:48

Is it in any way possible to launch an activity from the main function without having a UI? i.e. is there a way to create a sort of \"wrapper\" around another activity, i.e.

11条回答
  •  囚心锁ツ
    2020-11-30 18:49

    I am using AppCompatActivity and the solutions provided in this SO did not solve my problem. Here is what worked for me.

    I added the following in my styles.xml.

    
    
    
    

    Then, for any activity that I want to disable the display, I modified like so:

    
    

    Cheers!

提交回复
热议问题