简体   繁体   中英

C# How can i hide my app in the background?

我正在制作一个 android 应用程序,我想让它在后台运行而不让它暂停,我不希望用户看到它......出于科学目的......任何人都有这方面的信息吗?

You can not hide an app in the background, but you can create a background service that is defined within your app:

Common items are:

  • The service lifecycle.
  • Threading.
  • Controlling service restarts due to service shutdown by the system under memory pressure.
  • Simplifying service development using the IntentService class.
  • Notifying users.

I highly recommend starting here as Xamarin multi-page article overviews all the different different Android service types and the pro/cons:

Xamarin Android / Creating Services

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM