/** Ha csatlakoztunk a servicehez, akkor fut le. */ private void onServiceReady() { Intent intent = new Intent(ProfileActivity.this, TCPService.class); intent.putExtra("MESSENGER", new Messenger(messageHandler)); tcps.onBind(intent); if (!tcps.isLogedIn()) { intent = new Intent(ProfileActivity.this, LoginActivity.class); startActivity(intent); return; } setSwitches(); swtichInit(); TextView name = (TextView) findViewById(R.id.profileName); name.setText(tcps.getMyName()); }
public void onClick(View v) { Log.d("ASD", "ADS"); tcps.logOut(); startActivity(new Intent(ProfileActivity.this, LoginActivity.class)); }
public void onClick(View v) { tcps.removeMyself(); startActivity(new Intent(ProfileActivity.this, LoginActivity.class)); }