Sending a running application to background programmatically

前端 未结 4 745
礼貌的吻别
礼貌的吻别 2020-12-16 18:50

Is it possible to send a activity into background programmatically in android?

I am creating a prank application that plays funny sounds after a specified time (inpu

4条回答
  •  清酒与你
    2020-12-16 18:55

    This function ultimately works for you

    moveTaskToBack(true)
    

    Or download source code . Android minimize app programmatically

提交回复
热议问题