/*
* This file is auto-generated. DO NOT MODIFY.
* Original file: F:\\Pro-files\\eclipse\\workspace\\Myservice\\src\\com\\homer\\remote\\IMusicControlService.aidl
*/
package com.homer.remote;
public interface IMusicControlService extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.homer.remote.IMusicControlService
{
private static final java.lang.String DESCRIPTOR = "com.homer.remote.IMusicControlService";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
* Cast an IBinder object into an com.homer.remote.IMusicControlService interface,
* generating a proxy if needed.
*/
public static com.homer.remote.IMusicControlService asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof com.homer.remote.IMusicControlService))) {
return ((com.homer.remote.IMusicControlService)iin);
}
return new com.homer.remote.IMusicControlService.Stub.Proxy(obj);
}
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_play:
{
data.enforceInterface(DESCRIPTOR);
this.play();
reply.writeNoException();
return true;
}
case TRANSACTION_stop:
{
data.enforceInterface(DESCRIPTOR);
this.stop();
reply.writeNoException();
return true;
}
case TRANSACTION_pause:
{
data.enforceInterface(DESCRIPTOR);
this.pause();
reply.writeNoException();
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements com.homer.remote.IMusicControlService
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
public android.os.IBinder asBinder()
{
return mRemote;
}
public java.lang.String getInterfaceDescriptor()
{
return DESCRIPTOR;
}
public void play() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_play, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
public void stop() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_stop, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
public void pause() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_pause, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
}
static final int TRANSACTION_play = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_stop = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_pause = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
}
public void play() throws android.os.RemoteException;
public void stop() throws android.os.RemoteException;
public void pause() throws android.os.RemoteException;
}
没有合适的资源?快使用搜索试试~ 我知道了~
Android Service与BroadcastReceiver、bindService示例详解
共59个文件
class:24个
java:12个
xml:7个
5星 · 超过95%的资源 需积分: 50 846 下载量 132 浏览量
2012-03-17
21:56:41
上传
评论 15
收藏 6.73MB ZIP 举报
温馨提示
Android Service与BroadcastReceiver、bindService示例详解,代码非常详细,详解博客网址:http://blog.csdn.net/sunboy_2050/article/details/7364024
资源推荐
资源详情
资源评论
收起资源包目录
Myservice.zip (59个子文件)
Myservice
.project 845B
project.properties 445B
src
com
homer
bind
BindMusicService.java 2KB
PlayBindMusic.java 2KB
service
PlayMusicService.java 2KB
MusicService.java 2KB
receiver
MusicReceiverService.java 2KB
PlayMusicRecevicer.java 2KB
MusicReceiver.java 842B
Main.java 2KB
remote
IMusicControlService.aidl 132B
PlayRemoteMusic.java 2KB
RemoteMusicService.java 2KB
AndroidManifest.xml 2KB
res
raw
tmp.mp3 2.21MB
drawable-ldpi
icon.png 2KB
drawable-hdpi
icon.png 4KB
drawable-mdpi
icon.png 3KB
layout
bind_music_service.xml 827B
music_receiver.xml 1KB
remote_music_service.xml 827B
music_service.xml 1KB
main.xml 1018B
values
strings.xml 540B
assets
gen
com
homer
R.java 2KB
remote
IMusicControlService.java 4KB
default.properties 120B
.classpath 364B
bin
resources.ap_ 2.23MB
classes
com
homer
R$layout.class 528B
bind
PlayBindMusic.class 2KB
BindMusicService.class 2KB
BindMusicService$MyBinder.class 620B
PlayBindMusic$1.class 1KB
service
PlayMusicService.class 2KB
MusicService.class 2KB
R$drawable.class 373B
R$attr.class 313B
receiver
MusicReceiver.class 1KB
PlayMusicRecevicer.class 2KB
MusicReceiverService.class 2KB
Main.class 2KB
R$raw.class 357B
R$id.class 624B
R.class 503B
R$string.class 668B
remote
IMusicControlService.aidl 132B
PlayRemoteMusic$1.class 1KB
RemoteMusicService$1.class 2KB
IMusicControlService$Stub$Proxy.class 2KB
RemoteMusicService.class 1KB
IMusicControlService.class 380B
IMusicControlService$Stub.class 2KB
PlayRemoteMusic.class 3KB
res
drawable-ldpi
icon.png 2KB
drawable-hdpi
icon.png 4KB
drawable-mdpi
icon.png 2KB
Myservice.apk 2.23MB
classes.dex 15KB
共 59 条
- 1
阳光岛主
- 粉丝: 1w+
- 资源: 123
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
- 3
- 4
- 5
- 6
前往页