开发者

Android: How can I start an activity from a regular java class? the java class is servlet

开发者 https://www.devze.com 2022-12-20 07:22 出处:网络
How can I start an activity from a servlet? I have an i-Jetty server installed and a servlet that responds to HTTP request.I would like to start an activity from the servlet, does any body have any id

How can I start an activity from a servlet? I have an i-Jetty server installed and a servlet that responds to HTTP request. I would like to start an activity from the servlet, does any body have any idea on how to 开发者_开发知识库do this?


You'll have to do it the other way: have an Android Service that will periodically query that servlet and decide whether to launch an Activity (or rather show a notification). AlarmManager might also come handy for this.

0

精彩评论

暂无评论...
验证码 换一张
取 消