Back to project page SnapetsAndroid.
The source code is released under:
Apache License
If you think the Android project SnapetsAndroid 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.keyconsultant.parse.logintutorial; /*w w w . ja v a 2s . c o m*/ import android.app.Activity; import android.os.Bundle; import android.widget.TextView; import com.keyconsultant.parse.logintutorial.model.user.UserManager; public class MainActivity extends Activity { private TextView currentUserTextView; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); currentUserTextView = (TextView)findViewById(R.id.tvCurrentUsername); } @Override protected void onResume() { super.onResume(); currentUserTextView.setText("Welcome, " + UserManager.getInstance().getUser().getUsername()); } }