123456789101112131415161718192021222324252627282930313233343536 |
- package com.linkdialy.mobile.kuyicloud.utils;
-
- import android.app.Service;
- import android.content.Intent;
- import android.os.IBinder;
- import android.util.Log;
- import com.tencent.smtt.sdk.QbSdk;
- import com.tencent.smtt.sdk.QbSdk.PreInitCallback;
-
- public class X5ProcessInitService extends Service {
-
- private static final String TAG = "X5ProcessInitService";
-
- @Override
- public void onCreate() {
- /* 只进行本地内核的预加载、不做版本检测及内核下载 */
- QbSdk.preInit(this.getApplicationContext(), new PreInitCallback() {
- @Override
- public void onCoreInitFinished() {
-
- }
-
- @Override
- public void onViewInitFinished(boolean b) {
- Log.i(TAG, "init web process x5: " + b);
- }
- });
- }
-
- @Override
- public IBinder onBind(Intent intent) {
- Log.i(TAG, "Service OnBind");
- return null;
- }
- }
|