开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜