简体   繁体   中英

Is it possible to start an activity in background from a service?

My activity have a .so that contain some c++ code. I need to run this code from a service, and i need to run it in background. it's really hard to move this code inside the service so i prefer to leave this code inside the activity.

Is their any way to start an activity in background and not in foreground ?

不,您不能在后台启动活动,而要实现所需的功能,则必须使用服务。

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