CenterService.java
913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.hjx.personalcenter.service;
import android.content.Intent;
import android.os.IBinder;
import android.os.RemoteException;
/**
* Created by h on 2017/9/1.
*/
public class CenterService extends BaseService {
public CenterService(){
}
IPresonalInterface.Stub binder = new IPresonalInterface.Stub() {
@Override
public String sayHello() throws RemoteException {
return "这是测试AIDL的方法";
}
@Override
public String viewPage(String action) throws RemoteException {
return null;
}
@Override
public String getSimpleUser() throws RemoteException {
return null;
}
@Override
public String getcardUser() throws RemoteException {
return null;
}
};
@Override
public IBinder onBind(Intent intent) {
return binder;
}
}