title: Constructor of worker it doen't called?
body: <p>I try to implement a timer using Work Manager.</p>
  <p>&quot;Timer button was hit&quot; is appear in logcat, but nothing comes from worker. What I do wrong?</p>
  <p>This is my ViewModel class:</p>
  <pre><code>public class MainViewModel extends ViewModel {
  
      public static final String LOG_TAG = &quot;MainActivity&quot;;
      private final WorkManager workManager;
  
      public MainViewModel(WorkManager workManager) {
          this.workManager = workManager;
      }
  
      public void count() {
          Log.d(LOG_TAG, &quot;Timer button was hit!&quot;);
  
          OneTimeWorkRequest request = new OneTimeWorkRequest.Builder(MainWorker.class).build();
          workManager.beginUniqueWork(&quot;count-work&quot;, ExistingWorkPolicy.APPEND, request).enqueue();
      }
  }
  
  </code></pre>
  <p>This is my worker. Nothing appear in logcat from here. I don't know why.</p>
  <pre><code>public class MainWorker extends Worker {
  
  
      public MainWorker(@NonNull Context context, @NonNull WorkerParameters workerParams) {
          super(context, workerParams);
          Log.d(MainViewModel.LOG_TAG, &quot;Created&quot;);
      }
  
      @NonNull
      @Override
      public Result doWork() {
          Log.d(MainViewModel.LOG_TAG, &quot;Work start&quot;);
          return Result.success();
      }
  }
  
  </code></pre>
  <p>This is my activity:</p>
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          MainViewModel viewModel = new MainViewModel(WorkManager.getInstance(this));
          ActivityMainBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_main);
          binding.setMainViewModel(viewModel);
      }
  }
  
  </code></pre>