| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 
 |  
public class MainActivity extends AppCompatActivity {
 
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
 
    //naviguer de la vue MainActivity vers la vue Preference_connexion
    Button myButton = (Button)findViewById(R.id.btnInsription);
    protected void navigateToPreferenceConnexion() {
        Intent myIntent = new Intent();
        myIntent.setClass(this, Preference_connexion.class);
        startActivity(myIntent);
    }
} | 
Partager