wjc
2025-04-28 a3d9e72e6e4f7ad6778e89bc05f2fe656e36dab7
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
42
43
44
45
46
47
48
49
package com.hdl.photovoltaic.services;
 
import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
 
import com.hdl.photovoltaic.IUniappAidlInterface;
import com.hdl.sdk.link.common.utils.LogUtils;
 
 
/**
 * Created by hxb on 2024/12/27.
 */
public class UniappService extends Service {
 
    private static final String TAG = "UniappService";
 
    public UniappService() {
 
    }
 
    IUniappAidlInterface.Stub mIBinder=new IUniappAidlInterface.Stub() {
 
        @Override
        public void sendMsg(String mes)  {
            LogUtils.i(TAG,"收到请求数据:" + mes);
        }
    };
 
    @Override
 
    public IBinder onBind(Intent intent) {
        LogUtils.i(TAG,"onBind: intent = "+intent.toString());
        return mIBinder;
    }
 
    @Override
 
    public boolean onUnbind(Intent intent) {
        LogUtils.i(TAG,"onUnbind");
        return super.onUnbind(intent);
    }
 
    @Override
    public void onDestroy() {
        LogUtils.i(TAG,"onDestroy");
        super.onDestroy();
    }
}