I am trying to associate one of my buttons with an intention to open the contacts application on my device. Any help on how to use intent or another method to discover it?
public class MainActivity extends Activity implements View.OnClickListener { View v; Button contacts; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); getContacts(); contacts.setOnClickListener(this); } private void getContacts() {
}
source share