예제 #1
0
 @Override
 public void onWindowFocusChanged(boolean hasFocus) {
   super.onWindowFocusChanged(hasFocus);
   if (hasFocus) {
     changeBindText();
   }
 }
예제 #2
0
 @Override
 public void onClick(View v) {
   super.onClick(v);
   switch (v.getId()) {
     case R.id.more_bind:
       if (getBoleanValueForKey(LOCAL_CONFIGKEY_BIND_FLG)) {
         startActivity(new Intent(this, ChangeBindActivity.class));
       } else {
         startActivity(new Intent(this, BindActivity.class));
       }
       break;
     case R.id.more_recommend:
       openShare();
       break;
     case R.id.more_haoping:
       startActivity(new Intent(this, HaoPinTestActivity.class));
       break;
     case R.id.moreCheckUpdate:
       showToast(R.string.more_update_text);
       break;
     case R.id.more_About:
       break;
     default:
       break;
   }
 }
예제 #3
0
 @Override
 protected void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   setContentView(R.layout.activity_more);
 }