左晓为主开发手持机充值管理机
zuoxiao
4 天以前 548dce0bcff06ee7a1795defe8e7789b9d7aad94
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
package com.dayu.baselibrary;
 
import android.app.Application;
 
import com.dayu.baselibrary.tools.print.PrintAdater;
 
/**
 * author: zuo
 * Date: 2024-04-22
 * Time: 17:32
 * 备注:
 */
public class BaseApplication {
    public static BaseApplication baseApplication;
    public Application application;
 
    public static BaseApplication getInstance() {
        if (baseApplication == null) {
            baseApplication = new BaseApplication();
        }
        return baseApplication;
    }
 
 
 
    public void onCreat(Application context) {
        application = context;
 
        //初始化打印相关服务
        PrintAdater.getInstance().connectPrinterService(context);
    }
 
 
 
}