title: Android ViewModel additional arguments
body: <p>Is there a way to pass additional argument to my custom <code>AndroidViewModel</code> constructor except Application context. 
  Example:</p>
  
  <pre><code>public class MyViewModel extends AndroidViewModel {
      private final LiveData&lt;List&lt;MyObject&gt;&gt; myObjectList;
      private AppDatabase appDatabase;
  
      public MyViewModel(Application application, String param) {
          super(application);
          appDatabase = AppDatabase.getDatabase(this.getApplication());
  
          myObjectList = appDatabase.myOjectModel().getMyObjectByParam(param);
      }
  }
  </code></pre>
  
  <p>And when I want to user my custom <code>ViewModel</code> class I use this code in my fragment:</p>
  
  <pre><code>MyViewModel myViewModel = ViewModelProvider.of(this).get(MyViewModel.class)
  </code></pre>
  
  <p>So I don't know how to pass additional argument <code>String param</code> into my custom <code>ViewModel</code>. I can only pass Application context, but not additional arguments. I would really appreciate any help. Thank you. </p>
  
  <p>Edit: I've added some code. I hope it's better now.</p>