简体   繁体   中英

App integration with google now

I'm developing an android app. The app starts a background service for user monitoring and it has the possibility to start the service via main activity or via widget and it works great. I'd like to have a little integration with google now to start the service. Now I can only open the app via google now, but I want to start/stop the service instead (via google now). How can I do?

update

i think you cannot do that. u should build one more app which intern runs ur service. Google might be looking directly for launcher intent and opening your app. Google service wont even come to know or understand that you have some service that needs to be run.

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