MainActivity.java :  » Contact » sync-contacts » com » googlecode » synccontacts » activity » Android Open Source

Android Open Source » Contact » sync contacts 
sync contacts » com » googlecode » synccontacts » activity » MainActivity.java
package com.googlecode.synccontacts.activity;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;
import com.googlecode.synccontacts.R;
import com.googlecode.synccontacts.interfaces.SocialNetwork;
import com.googlecode.synccontacts.listeners.OpenSettingListener;

public class MainActivity extends Activity {
    private Button oSync, oSetting;
    private Button vSync, vSetting;
    private Button fSync, fSetting;

    /**
     * Called when the activity is first created.
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        oSync = (Button) findViewById(R.id.oSync);
        vSync = (Button) findViewById(R.id.vSync);
        fSync = (Button) findViewById(R.id.fSync);
        oSetting = (Button) findViewById(R.id.oSetting);
        vSetting = (Button) findViewById(R.id.vSetting);
        fSetting = (Button) findViewById(R.id.fSetting);
        oSetting.setOnClickListener(new OpenSettingListener(SocialNetwork.ODNOKLASSNIKI_TYPE,this));
    }
}
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.