资源简介
项目中使用的一个获取天气的demo,是基于volly库,利用雅虎API接口获取的天气,流程是先获取到本地IP,反查出城市,可以是海外城市,然后通过雅虎接口获取天气,支持7天天气查询,欢迎大家下载使用。

代码片段和文件信息
/*
* This file is auto-generated. DO NOT MODIFY.
* Original file: E:\\new_workspace\\weather_test\\src\\com\\test\\aidl\\IRemoteInterface.aidl
*/
package com.test.aidl;
public interface IRemoteInterface extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.test.aidl.IRemoteInterface
{
private static final java.lang.String DEscriptOR = “com.test.aidl.IRemoteInterface“;
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this DEscriptOR);
}
/**
* Cast an IBinder object into an com.test.aidl.IRemoteInterface interface
* generating a proxy if needed.
*/
public static com.test.aidl.IRemoteInterface asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DEscriptOR);
if (((iin!=null)&&(iin instanceof com.test.aidl.IRemoteInterface))) {
return ((com.test.aidl.IRemoteInterface)iin);
}
return new com.test.aidl.IRemoteInterface.Stub.Proxy(obj);
}
@Override public android.os.IBinder asBinder()
{
return this;
}
@Override public boolean onTransact(int code android.os.Parcel data android.os.Parcel reply int flags) throws android.os.RemoteException
{
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(DEscriptOR);
return true;
}
case TRANSACTION_getPid:
{
data.enforceInterface(DEscriptOR);
int _result = this.getPid();
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_getData:
{
data.enforceInterface(DEscriptOR);
int _result = this.getData();
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_registerCallback:
{
data.enforceInterface(DEscriptOR);
com.test.aidl.IRemoteInterfaceCallback _arg0;
_arg0 = com.test.aidl.IRemoteInterfaceCallback.Stub.asInterface(data.readStrongBinder());
this.registerCallback(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_unregisterCallback:
{
data.enforceInterface(DEscriptOR);
com.test.aidl.IRemoteInterfaceCallback _arg0;
_arg0 = com.test.aidl.IRemoteInterfaceCallback.Stub.asInterface(data.readStrongBinder());
this.unregisterCallback(_arg0);
reply.writeNoException();
return true;
}
}
return super.onTransact(code data reply flags);
}
private static class Proxy implements com.test.aidl.IRemoteInterface
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
@Override public android.os.IBinder asBinder()
{
return mRemote;
}
public java.lang.String getInterfaceDescriptor()
{
return DEscriptOR;
}
//获取Service运行的进程ID
@Override public int getPid() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
int _result;
try {
_data.writeInterfaceToken(DEscriptOR);
mRemote.transact(Stub.TRANSACTION_getPid _data _reply 0);
_reply.readException();
_result = _reply.readInt();
}
finally {
_reply.recycle();
_d
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 475 2016-06-14 13:41 weather_test\.classpath
文件 848 2016-06-14 13:40 weather_test\.project
文件 2182 2016-07-15 09:55 weather_test\AndroidManifest.xm
文件 118 2016-08-16 16:38 weather_test\bin\aidl\com\test\aidl\abc.aidl
文件 494 2016-08-16 16:37 weather_test\bin\aidl\com\test\aidl\IRemoteInterface.aidl
文件 259 2016-08-16 16:37 weather_test\bin\aidl\com\test\aidl\IRemoteInterfaceCallback.aidl
文件 2182 2016-08-16 16:37 weather_test\bin\AndroidManifest.xm
文件 2568 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\IRemoteInterface$Stub$Proxy.class
文件 2550 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\IRemoteInterface$Stub.class
文件 494 2016-07-14 17:35 weather_test\bin\classes\com\test\aidl\IRemoteInterface.aidl
文件 463 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\IRemoteInterface.class
文件 1741 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\IRemoteInterfaceCallback$Stub$Proxy.class
文件 2028 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\IRemoteInterfaceCallback$Stub.class
文件 259 2016-07-15 10:41 weather_test\bin\classes\com\test\aidl\IRemoteInterfaceCallback.aidl
文件 402 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\IRemoteInterfaceCallback.class
文件 1550 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\MainActivity$1.class
文件 2223 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\MainActivity$2.class
文件 1939 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\MainActivity$3.class
文件 6060 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\MainActivity.class
文件 2483 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\RemoteService$1.class
文件 1302 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\RemoteService$2$1.class
文件 2690 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\RemoteService$2.class
文件 859 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\RemoteService$3.class
文件 3785 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\RemoteService$4.class
文件 885 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\RemoteService$5.class
文件 1188 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\RemoteService$6.class
文件 911 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\RemoteService$7.class
文件 9044 2017-08-17 19:04 weather_test\bin\classes\com\test\aidl\RemoteService.class
文件 341 2017-08-17 19:04 weather_test\bin\classes\com\test\weather\BuildConfig.class
文件 1990 2017-08-17 19:04 weather_test\bin\classes\com\test\weather\IpUtil$1.class
............此处省略113个文件信息
相关资源
- AndroidStudio版直连sqlserver
- java串口通信全套完整代码-导入eclip
- android带百分比进度条的文件上传,使
- 美食天下项目Android版源码和Web版源码
- Android之自定义ToggleButton使用
- Android非常漂亮的登录界面
- pc与android通过usb socket实现手机通信
- android毕业设计
- 百度地图自定义Markerandroid
- Android分区工具包
- android-support-v4.jar已打包进去源代码
- u-blox_Android_GNSS_Driver_v3.10驱动源码+中
- 个人根据Android移动开发案例详解手写
- 基于jsp的bbs论坛 非常详细
- android 视频播放器 项目和原码
- Android【动画】【特效】 17种动画特效
- 基于Android智能家居详细设计(经典)
- android通过JDBC连接Mysql数据库
- Android通讯录的源代码
- android 瀑布流Demo
- 指纹传感器FPC1080在android下的驱动
- delphi xe5 android 调用照相机摄像头拍照
- Android手机连连看游戏源码
- android-sdk-windows v2.3离线完整版
- android 底部弹出菜单(带透明背景)
- Android工程模式简介.rar
- 贪吃蛇(java 源码 eclipse项目)
- Android蓝牙和Cors网络开发源码
- Android powermanger wakelock
- Android v7的一些jar包
评论
共有 条评论