SplashActivity.java :  » Schedule » scheduled-message-sender » es » kivitel » android » sms » gui » Android Open Source

Android Open Source » Schedule » scheduled message sender 
scheduled message sender » es » kivitel » android » sms » gui » SplashActivity.java
/**
 * 
 */
package es.kivitel.android.sms.gui;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import es.kivitel.android.sms.*;
/**
 * @author Delia
 *
 */
public class SplashActivity extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.splash);
    
    Button btn = (Button) findViewById(R.id.btnSplashInit);
    btn.setOnClickListener(new View.OnClickListener(){
      public void onClick(android.view.View v) {
        v.getContext().startActivity(new Intent(SplashActivity.this,MainActivity.class));
        ((Activity) v.getContext()).finish();
        
        

      }      
    });
    }
  
}
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.