AkshayHadapad

MyWork

Mar 23rd, 2020
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1. import android.content.Context;
  2. import android.os.Handler;
  3. import android.os.Looper;
  4. import android.util.Log;
  5. import android.widget.Toast;
  6.  
  7. import androidx.annotation.NonNull;
  8. import androidx.work.Worker;
  9. import androidx.work.WorkerParameters;
  10.  
  11. import static android.content.ContentValues.TAG;
  12.  
  13. public class MyWork extends Worker {
  14.     public MyWork(@NonNull Context context, @NonNull WorkerParameters workerParams) {
  15.         super(context, workerParams);
  16.     }
  17.  
  18.     @NonNull
  19.     @Override
  20.     public Result doWork() {
  21.         Log.e(TAG, "doWork: WOrkinh???");
  22.         return Result.success();
  23.     }
  24.  
  25. }
Add Comment
Please, Sign In to add comment