Android AIDL音乐播放器
Android AIDL音乐播放器,适合初学者,实现了四种播放模式,上一曲,下一曲,新手可以学习一下
代码片段和文件信息
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-03-13 17:00 AIDLTest
文件 475 2015-03-13 17:00 AIDLTest.classpath
文件 844 2015-03-13 17:00 AIDLTest.project
目录 0 2015-03-13 17:00 AIDLTest.settings
文件 177 2015-03-13 17:00 AIDLTest.settingsorg.eclipse.jdt.core.prefs
文件 985 2015-03-13 17:00 AIDLTestAndroidManifest.xml
目录 0 2015-03-13 17:00 AIDLTestassets
目录 0 2015-03-13 17:00 AIDLTestgen
目录 0 2015-03-13 17:00 AIDLTestgencom
目录 0 2015-03-13 17:00 AIDLTestgencomexample
目录 0 2015-03-13 17:00 AIDLTestgencomexampleAIDL
目录 0 2015-03-13 17:00 AIDLTestgencomexampleaidltest
文件 162 2015-03-13 17:00 AIDLTestgencomexampleaidltestBuildConfig.java
文件 3218 2015-03-13 17:00 AIDLTestgencomexampleaidltestR.java
文件 8496 2015-03-13 17:00 AIDLTestgencomexampleAIDLMusic.java
文件 51394 2015-03-13 17:00 AIDLTestic_launcher-web.png
目录 0 2015-03-13 17:00 AIDLTestlibs
文件 627582 2015-03-13 17:00 AIDLTestlibsandroid-support-v4.jar
文件 781 2015-03-13 17:00 AIDLTestproguard-project.txt
文件 563 2015-03-13 17:00 AIDLTestproject.properties
目录 0 2015-03-13 17:00 AIDLTest
es
目录 0 2015-03-13 17:00 AIDLTest
esdrawable-hdpi
文件 7658 2015-03-13 17:00 AIDLTest
esdrawable-hdpiic_launcher.png
目录 0 2015-03-13 17:00 AIDLTest
esdrawable-ldpi
目录 0 2015-03-13 17:00 AIDLTest
esdrawable-mdpi
文件 3777 2015-03-13 17:00 AIDLTest
esdrawable-mdpiic_launcher.png
目录 0 2015-03-13 17:00 AIDLTest
esdrawable-xhdpi
文件 12516 2015-03-13 17:00 AIDLTest
esdrawable-xhdpiic_launcher.png
目录 0 2015-03-13 17:00 AIDLTest
esdrawable-xxhdpi
文件 24777 2015-03-13 17:00 AIDLTest
esdrawable-xxhdpiic_launcher.png
目录 0 2015-03-13 17:00 AIDLTest
eslayout
............此处省略29个文件信息
/*
* This file is auto-generated. DO NOT MODIFY.
* Original file: E:\Users\Administrator\workspace\AIDLTest\src\com\example\AIDL\Music.aidl
*/
package com.example.AIDL;
public interface Music extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.example.AIDL.Music
{
private static final java.lang.String DEscriptOR = “com.example.AIDL.Music“;
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this DEscriptOR);
}
/**
* Cast an IBinder object into an com.example.AIDL.Music interface
* generating a proxy if needed.
*/
public static com.example.AIDL.Music asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DEscriptOR);
if (((iin!=null)&&(iin instanceof com.example.AIDL.Music))) {
return ((com.example.AIDL.Music)iin);
}
return new com.example.AIDL.Music.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_Play:
{
data.enforceInterface(DEscriptOR);
this.Play();
reply.writeNoException();
return true;
}
case TRANSACTION_Pause:
{
data.enforceInterface(DEscriptOR);
this.Pause();
reply.writeNoException();
return true;
}
case TRANSACTION_Pre:
{
data.enforceInterface(DEscriptOR);
this.Pre();
reply.writeNoException();
return true;
}
case TRANSACTION_Next:
{
data.enforceInterface(DEscriptOR);
this.Next();
reply.writeNoException();
return true;
}
case TRANSACTION_isPlaying:
{
data.enforceInterface(DEscriptOR);
boolean _result = this.isPlaying();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_Duration:
{
data.enforceInterface(DEscriptOR);
int _result = this.Duration();
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_CurrentPosition:
{
data.enforceInterface(DEscriptOR);
int _result = this.CurrentPosition();
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_ChangeMode:
{
data.enforceInterface(DEscriptOR);
int _arg0;
_arg0 = data.readInt();
this.ChangeMode(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_CurrentMode:
{
data.enforceInterface(DEscriptOR);
int _result = this.CurrentMode();
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_SeekTo:
{
data.enforceInterface(DEscriptOR);
int _arg0;
_arg0 = data.readInt();
this.SeekTo(_arg0);
reply.writeNoException();
return true;
}
}
return super.onTransact(code data reply flags);
}
private static class Proxy implements com.example.AIDL.Music
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
@Override public an
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-03-13 17:00 AIDLTest
文件 475 2015-03-13 17:00 AIDLTest.classpath
文件 844 2015-03-13 17:00 AIDLTest.project
目录 0 2015-03-13 17:00 AIDLTest.settings
文件 177 2015-03-13 17:00 AIDLTest.settingsorg.eclipse.jdt.core.prefs
文件 985 2015-03-13 17:00 AIDLTestAndroidManifest.xm
目录 0 2015-03-13 17:00 AIDLTestassets
目录 0 2015-03-13 17:00 AIDLTestgen
目录 0 2015-03-13 17:00 AIDLTestgencom
目录 0 2015-03-13 17:00 AIDLTestgencomexample
目录 0 2015-03-13 17:00 AIDLTestgencomexampleAIDL
目录 0 2015-03-13 17:00 AIDLTestgencomexampleaidltest
文件 162 2015-03-13 17:00 AIDLTestgencomexampleaidltestBuildConfig.java
文件 3218 2015-03-13 17:00 AIDLTestgencomexampleaidltestR.java
文件 8496 2015-03-13 17:00 AIDLTestgencomexampleAIDLMusic.java
文件 51394 2015-03-13 17:00 AIDLTestic_launcher-web.png
目录 0 2015-03-13 17:00 AIDLTestlibs
文件 627582 2015-03-13 17:00 AIDLTestlibsandroid-support-v4.jar
文件 781 2015-03-13 17:00 AIDLTestproguard-project.txt
文件 563 2015-03-13 17:00 AIDLTestproject.properties
目录 0 2015-03-13 17:00 AIDLTest
es
目录 0 2015-03-13 17:00 AIDLTest
esdrawable-hdpi
文件 7658 2015-03-13 17:00 AIDLTest
esdrawable-hdpiic_launcher.png
目录 0 2015-03-13 17:00 AIDLTest
esdrawable-ldpi
目录 0 2015-03-13 17:00 AIDLTest
esdrawable-mdpi
文件 3777 2015-03-13 17:00 AIDLTest
esdrawable-mdpiic_launcher.png
目录 0 2015-03-13 17:00 AIDLTest
esdrawable-xhdpi
文件 12516 2015-03-13 17:00 AIDLTest
esdrawable-xhdpiic_launcher.png
目录 0 2015-03-13 17:00 AIDLTest
esdrawable-xxhdpi
文件 24777 2015-03-13 17:00 AIDLTest
esdrawable-xxhdpiic_launcher.png
目录 0 2015-03-13 17:00 AIDLTest
eslayout
............此处省略29个文件信息
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。
评论列表(条)