Back to project page interamap.
The source code is released under:
MIT License
If you think the Android project interamap listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.richso.interamap; /*from w w w.jav a 2s. com*/ import android.content.Intent; import android.os.Bundle; import android.support.v4.app.FragmentActivity; import android.view.View; import android.widget.Button; import android.widget.EditText; import com.richso.interamap.utils.Constant; /** * Created with IntelliJ IDEA. * User: nikolai * Date: 11.09.13 * Time: 11:45 * To change this template use File | Settings | File Templates. */ public class RegistrationScreen extends FragmentActivity implements View.OnClickListener{ private Button btnSignUp; private EditText editLogin; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_registration); init(); } private void init() { editLogin = (EditText)findViewById(R.id.loginRegistrationEdit); btnSignUp = (Button)findViewById(R.id.signUpRegistrationBtn); btnSignUp.setOnClickListener(this); } @Override public void onClick(View v) { switch ( v.getId() ) { case R.id.signUpRegistrationBtn: openHomeScreen(); break; default:break; } } private void openHomeScreen() { Intent intent = new Intent(RegistrationScreen.this, HomeScreen.class); intent.putExtra(Constant.Extra.username, editLogin.getText()); startActivity(intent); } }