随笔分类 -  Android

JPush极光推送Java服务器端API
摘要:// 对android和ios设备发送JPushClient jpush = new JPushClient(masterSecret, appKey);// 对android和ios设备发送,同时指定离线消息保存时间JPushClient jpush = new JPushClient(masterSecret, appKey, timeToLive);// 指定某种设备发送JPushClient jpush = new JPushClient(masterSecret, appKey, DeviceEnum.Android);// 指定某种设备发送,并且指定离线消息保存时间JPushCli 阅读全文

posted @ 2013-02-20 19:00 菜鸟的春天 阅读(80501) 评论(15) 推荐(6) 编辑

Android与服务器通信
摘要:1.Http方式package com.myapp.util;import java.util.List;import org.apache.http.HttpEntity;import org.apache.http.HttpResponse;import org.apache.http.NameValuePair;import org.apache.http.client.HttpClient;import org.apache.http.client.entity.UrlEncodedFormEntity;import org.apache.http.client.methods.Htt 阅读全文

posted @ 2012-12-27 18:35 菜鸟的春天 阅读(277) 评论(0) 推荐(0) 编辑

导航