title: Some nethods in my main Activity are showing as never used
body: <p>These two methods <code>addUser()</code> and <code>viewDetails()</code> methods are not being used in this my main activity file. I could find the reason, I don't know where do I have to call them. I am using Android Studio.</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      EditText userName, password;
  
      DatabaseAdapter databaseHelper;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
          userName = (EditText) findViewById(R.id.editTextUser);
          password = (EditText) findViewById(R.id.editTextPass);
          databaseHelper = new DatabaseAdapter(this);
      }
  
      public void addUser(View view) {
  
          String user = userName.getText().toString();
          String pass = password.getText().toString();
  
          long id = databaseHelper.insertData(user, pass);
          if (id &lt; 0) {
              Message.message(this, "Unsuccessful");
          } else {
              Message.message(this, "Successful");
          }
      }
  
      public void viewDetails(View view) {
          String data = databaseHelper.getAllData();
          Message.message(this, data);
      }
  }
  </code></pre>