StartWizExchApp.java :  » Blog-Twitter » wizexchproz » wiz » exch » activity » Android Open Source

Android Open Source » Blog Twitter » wizexchproz 
wizexchproz » wiz » exch » activity » StartWizExchApp.java
package wiz.exch.activity;

import wiz.exch.util.SharedSetting;
import wiz.exch.util.WizTwitterAPI;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;

public class StartWizExchApp extends Activity {


  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    
    //Setting SharedSetting
    SharedSetting sharedSetting = SharedSetting.getInstance();
    sharedSetting.setSharedPreferences(this);
    
    //Twitter LOG_IN Process

    WizTwitterAPI twitterAPI = WizTwitterAPI.getInstance();
    twitterAPI.login();

    //Register Image Event Listener
    ImageView regButton = (ImageView)findViewById(R.id.wiz_sub_image01);
    regButton.setOnClickListener(new OnClickListener() {

      @Override
      public void onClick(View v) {
        Intent regInt = new Intent(StartWizExchApp.this, WizRegister.class);
        startActivity(regInt);
      }
    });

    //Search Image Event Listener
    ImageView schButton = (ImageView)findViewById(R.id.wiz_sub_image03);
    schButton.setOnClickListener(new OnClickListener() {

      @Override
      public void onClick(View v) {
        Intent schInt = new Intent(StartWizExchApp.this, WizSearch.class);
        startActivity(schInt);
      }
    });

    //   
    ImageView testImage = (ImageView)findViewById(R.id.test_image);
    testImage.setOnClickListener(new OnClickListener() {

      @Override
      public void onClick(View v) {
        Intent testReg = new Intent(StartWizExchApp.this, WizMapActivity.class);
        startActivityForResult(testReg, 101);
      }
    });
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.