@@ -0,0 +1,2673 @@
+package com.zfdang.zsmth_android.services;%0A%0Aimport android.app.Notification;%0Aimport android.app.NotificationChannel;%0Aimport android.app.NotificationManager;%0Aimport android.app.PendingIntent;%0Aimport android.app.Service;%0Aimport android.content.Intent;%0Aimport android.os.Build;%0Aimport android.os.IBinder;%0Aimport android.os.SystemClock;%0Aimport android.util.Log;%0A%0Aimport androidx.annotation.Nullable;%0Aimport androidx.core.app.NotificationCompat;%0A%0Aimport com.zfdang.zsmth_android.MainActivity;%0Aimport com.zfdang.zsmth_android.R;%0A%0Apublic class UpdateUserStatusService extends Service %7B%0A%0A    private final String TAG = this.getClass().getSimpleName();%0A    private static final int ONGOING_NOTIFICATION_ID =  108;%0A    private boolean running = true;%0A%0A    @Override%0A    public void onCreate() %7B%0A        super.onCreate();%0A%0A        String NOTIFICATION_CHANNEL_ID = %22com.zfdang.zsmth.userstatus%22;%0A%0A        try %7B%0A            Intent notificationIntent = new Intent(this, MainActivity.class);%0A            PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);%0A%0A            Notification.Builder mBuilder = new Notification.Builder(this)%0A                    .setOngoing(true)%0A                    .setSmallIcon(R.drawable.ic_launcher)%0A                    .setContentTitle(%22zSMTH%E5%90%8E%E5%8F%B0%E6%A3%80%E6%9F%A5%E6%9C%8D%E5%8A%A1%22)%0A                    .setContentText(%22%E5%90%8E%E5%8F%B0%E7%A8%8B%E5%BA%8F%E4%BC%9A%E5%9C%A8%E7%A8%8B%E5%BA%8F%E8%BF%90%E8%A1%8C%E6%9C%9F%E9%97%B4%EF%BC%8C%E6%8C%81%E7%BB%AD%E6%A3%80%E6%9F%A5%E5%90%84%E7%A7%8D%E9%80%9A%E7%9F%A5%E5%B9%B6%E4%BF%9D%E6%8C%81%E7%99%BB%E5%BD%95%E7%8A%B6%E6%80%81...%22)%0A                    .setContentIntent(pendingIntent);%0A%0A            NotificationManager mNotifyMgr = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);%0A            if (Build.VERSION.SDK_INT %3E= Build.VERSION_CODES.O) %7B%0A                NotificationChannel channel = new NotificationChannel(%0A                        NOTIFICATION_CHANNEL_ID,%0A                        %22zSMTH%E5%90%8E%E5%8F%B0%E6%A3%80%E6%9F%A5%E6%9C%8D%E5%8A%A1%22,%0A                        NotificationManager.IMPORTANCE_LOW%0A                );%0A                mNotifyMgr.createNotificationChannel(channel);%0A                mBuilder.setChannelId(NOTIFICATION_CHANNEL_ID); //%E5%BF%85%E9%A1%BB%E6%B7%BB%E5%8A%A0%EF%BC%88Android 8.0%EF%BC%89 %E3%80%90%E5%94%AF%E4%B8%80%E6%A0%87%E8%AF%86%E3%80%91%0A            %7D%0A%0A            Notification notification = mBuilder.build();%0A            startForeground(ONGOING_NOTIFICATION_ID, notification);%0A        %7D catch (Exception se) %7B%0A            Log.e(TAG, %22showNotification: %22 + se.toString());%0A        %7D%0A    %7D%0A%0A    @Override%0A    public int onStartCommand(Intent intent, int flags, int startId) %7B%0A        Log.d(TAG, %22onStartCommand%22);%0A%0A        // If we get killed, after returning from here, restart%0A        return START_STICKY;%0A    %7D%0A%0A%0A    @Override%0A    public void onDestroy() %7B%0A        running = false;%0A        super.onDestroy();%0A    %7D%0A%0A    @Nullable%0A    @Override%0A    public IBinder onBind(Intent intent) %7B%0A        return null;%0A    %7D%0A%7D%0A

revert back to original login workflow