登录
首页 » Android » Android下调用WebServic

Android下调用WebServic

于 2023-07-24 发布 文件大小:3.03 MB
0 234
下载积分: 2 下载次数: 1

代码说明:

在Android下调用WebServic,封装好了调用的工具类,可以更新需求对工具类进行修改。在获取到webservice获取到的数据之后,将其转换成为了json数据。方便对数据的操作。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • android 短信拦截 实例完整源码下载
    可实现拦截短信,自动转发的功能。 部分代码:import android.app.AlarmManager;import android.app.PendingIntent;import android.app.Service;import android.content.Context;import android.content.Intent;import android.content.IntentFilter;import android.os.IBinder;import android.os.PowerManager;import android.os.PowerManager.WakeLock;public class MyService extends Service{ SMSReceiver rs=null; static MyService service; private static PendingIntent pi = null; public static AlarmManager am = null; @Override public IBinder onBind(Intent intent) { // TODO Auto-generated method stub return null; } @Override public void onCreate() { // TODO Auto-generated method stub super.onCreate(); service=this; pm = (PowerManager) getSystemService(Context.POWER_SERVICE); registerAlarm(); acquireWakeLock(this); registerRecever(); } @Override public void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); releaseWakeLock(); unregisterAlarm(); } private void registerRecever(){ rs=new SMSReceiver(); IntentFilter filter=new IntentFilter(); filter.addAction("android.provider.Telephony.SMS_RECEIVED"); filter.setPriority(1000); registerReceiver(rs, filter); } @Override public int onStartCommand(Intent intent, int flags, int startId) { // TODO Auto-generated method stub if(rs==null)registerRecever(); return START_STICKY; } public static WakeLock wakeLock = null; private static PowerManager pm = null; public static synchronized void acquireWakeLock(Context c) { if (null == wakeLock) { wakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "smslock"); wakeLock.acquire(); } } public static synchronized void releaseWakeLock() { if (wakeLock == null) return; if (wakeLock.isHeld()) { wakeLock.release(); wakeLock = null; } } /** * 启动重复型定时器 */ public static void registerAlarm() { if(Config.getAlarm())return; Intent intent = new Intent(service, AlarmReceiver.class); pi = PendingIntent.getBroadcast(service, 0, intent, PendingIntent.FLAG_CANCEL_CURRENT); // 设置一个PendingIntent对象,发送广播 am = (AlarmManager) service.getSystemService(Context.ALARM_SERVICE); // 获取AlarmManager对象, Config.setAlarm(true); am.setRepeating(AlarmManager.RTC_WAKEUP, System.currentTimeMillis(), 30*60*1000, pi); } /** * 取消定时器 */ public static void unregisterAlarm() { am.cancel(pi); am = null; Config.setAlarm(false); }}
    2014-05-21下载
    积分:1
  • 各种样式button
    资源描述里面有多种button的样式·································································
    2022-11-25 18:15:03下载
    积分:1
  • T_ReboundAnim
    提供了android的gallary和gridview的反弹效果,如已经到头了,在按《-键或鼠标拖动,会有反弹效果(Provides the android gridview gallary and rebound effects, such as have already been explored, and in the press "- key or mouse to drag, there will be a rebound effect)
    2011-12-22 16:56:54下载
    积分:1
  • 演示Android自动同步机制的测试例子
    演示Android自动同步机制的测试例子,换种说法也就是说自动同步就是几个线程自动的过一段时间执行一次看看服务器端有没有更新而已。也就是每过一段时间执行一次线程。 
    2022-02-04 13:33:54下载
    积分:1
  • 模拟淘宝商城
    界面非常好看的安卓端源码 仿淘宝商城
    2023-02-23 11:05:04下载
    积分:1
  • 高仿360云盘 UI
    前些日子几大互联网巨头展开了一轮网盘空间大战。一下子从G级别提高到了T级别。以后谁的空间没有1T估计都不好意思开口了~~~试用了一下360云盘的客户端,比较小清新(不是给360打广告~~~)。刚好UI这一块是我最不擅长的,于是萌发了练习模仿它的UI的念头~~~顺便把复习一下自定义控件的使用。 以下是完成的效果图,左边是官方的,右边是我模仿的: 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-05-12 17:53:21下载
    积分:1
  • CrazyBall
    android 简单游戏 疯狂足球 简单滴模拟了足球运动(Crazy football game android simple simulation of the sport simply drops)
    2011-11-23 17:52:16下载
    积分:1
  • android菜单的监听与设置
    最近刚刚学习java,自学很艰辛,下面贴上代码,主要实现对菜单的监听与实现相关的功能,适合初学者
    2022-04-19 00:23:54下载
    积分:1
  • android xmmp 聊天demO
    android xmmp 聊天demO, 可以做为研究xmmp 的参考代码,
    2022-03-15 11:19:41下载
    积分:1
  • logcount
    android小程序,用来查找手机中的log文件,并统计log文件的数量,用于手机安全软件进行手机内log文件清理(android small program used to find the phone log files and statistics log file number of security software for mobile phone log file cleanup)
    2013-11-06 14:44:50下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载