资源简介
模拟android客户端通过Service,每隔一段时间向系统发送一个请求,已获取重要的,实时更新的消息
代码片段和文件信息
package com.jerry.servlet;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.gson.Gson;
public class PushSmsServlet extends HttpServlet {
private static int index = 1;
public void doGet(HttpServletRequest request HttpServletResponse response)
throws ServletException IOException {
System.out.println(index);
// List smsList = new ArrayList();
Sms sms = new Sms(index
“我爱你我爱你我爱你我爱你我爱你我爱你我爱你我爱你我爱你我爱你我爱你我爱你“ + index “2013-03-03“
“13522224444“);
index++;
// smsList.add(sms);
// sms = n
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 475 2013-07-16 09:38 notification\.classpath
文件 848 2013-11-21 12:14 notification\.project
文件 177 2013-07-16 09:38 notification\.settings\org.eclipse.jdt.core.prefs
文件 1147 2013-11-21 12:01 notification\AndroidManifest.xm
文件 963 2013-07-16 11:33 notification\bin\AndroidManifest.xm
文件 1515 2013-11-21 14:19 notification\bin\classes\cn\itcast\notification\ContentActivity.class
文件 1126 2013-11-21 12:14 notification\bin\classes\cn\itcast\notification\NotificationActivity.class
文件 2257 2013-11-21 14:13 notification\bin\classes\cn\itcast\notification\PushSmsService$MyThread$1.class
文件 1903 2013-11-21 14:13 notification\bin\classes\cn\itcast\notification\PushSmsService$MyThread.class
文件 3498 2013-11-21 14:13 notification\bin\classes\cn\itcast\notification\PushSmsService.class
文件 352 2013-11-21 14:19 notification\bin\classes\cn\itcast\notification\R$attr.class
文件 473 2013-11-21 14:19 notification\bin\classes\cn\itcast\notification\R$dimen.class
文件 491 2013-11-21 14:19 notification\bin\classes\cn\itcast\notification\R$drawable.class
文件 601 2013-11-21 14:19 notification\bin\classes\cn\itcast\notification\R$id.class
文件 463 2013-11-21 14:19 notification\bin\classes\cn\itcast\notification\R$layout.class
文件 408 2013-11-21 14:19 notification\bin\classes\cn\itcast\notification\R$menu.class
文件 484 2013-11-21 14:19 notification\bin\classes\cn\itcast\notification\R$string.class
文件 443 2013-11-21 14:19 notification\bin\classes\cn\itcast\notification\R$st
文件 713 2013-11-21 14:19 notification\bin\classes\cn\itcast\notification\R.class
文件 1689 2013-11-21 12:14 notification\bin\classes\com\loopj\android\http\AsyncHttpClient$1.class
文件 1938 2013-11-21 12:14 notification\bin\classes\com\loopj\android\http\AsyncHttpClient$2.class
文件 937 2013-11-21 12:14 notification\bin\classes\com\loopj\android\http\AsyncHttpClient$3.class
文件 943 2013-11-21 12:14 notification\bin\classes\com\loopj\android\http\AsyncHttpClient$InflatingEntity.class
文件 20542 2013-11-21 12:14 notification\bin\classes\com\loopj\android\http\AsyncHttpClient.class
文件 3681 2013-11-21 12:14 notification\bin\classes\com\loopj\android\http\AsyncHttpRequest.class
文件 1121 2013-11-21 12:14 notification\bin\classes\com\loopj\android\http\AsyncHttpResponseHandler$ResponderHandler.class
文件 8828 2013-11-21 12:14 notification\bin\classes\com\loopj\android\http\AsyncHttpResponseHandler.class
文件 2795 2013-11-21 12:14 notification\bin\classes\com\loopj\android\http\BinaryHttpResponseHandler.class
文件 2811 2013-11-21 12:14 notification\bin\classes\com\loopj\android\http\FileAsyncHttpResponseHandler.class
文件 1965 2013-11-21 12:14 notification\bin\classes\com\loopj\android\http\JsonHttpResponseHandler$1$1.class
............此处省略148个文件信息
评论
共有 条评论