Android Open Source - scala1_android Home






From Project

Back to project page scala1_android.

License

The source code is released under:

Copyright (c) 2012, Magnetic Bear Studios Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditio...

If you think the Android project scala1_android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.magneticbear.scala1;
/* www  . ja v  a2  s. c o  m*/
import android.net.Uri;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Home extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_home);
        
        
        // typesafe link
        findViewById(R.id.typesafe_logo).setOnClickListener(new OnClickListener() {
      
      @Override
      public void onClick(View v) {
        UserData.mixpanel.track("HomeToTypeSafeLogo", null);
        
        Intent browse = new Intent( Intent.ACTION_VIEW , Uri.parse( "http://www.typesafe.com" ) );
          startActivity( browse );
      }
    });
        
        setupButtons();
    }

    // Dont show the options menu
   @Override
  public boolean onPrepareOptionsMenu(Menu menu) {
    return false;
  }
    
    @Override
    protected void onDestroy() {
      // Flush mixpanel on the way down
      UserData.mixpanel.flush();
      super.onDestroy();
    }
    
    @Override
    public void onBackPressed() {
      UserData.mixpanel.track("HomeBack", null);
      
      super.onBackPressed();
    }
    
    public void setupButtons()
    {
      findViewById(R.id.btn_events).setOnClickListener(new OnClickListener() 
      {
      @Override
      public void onClick(View v) 
      {
        UserData.mixpanel.track("HomeToEventsList", null);
        
        Intent intent = new Intent(getBaseContext(), Events.class);
        startActivity(intent);
      }
    });
      findViewById(R.id.btn_speakers).setOnClickListener(new OnClickListener() 
      {
      @Override
      public void onClick(View v) 
      {
        UserData.mixpanel.track("HomeToSpeakersList", null);
        
        Intent intent = new Intent(getBaseContext(), Speakers.class);
        startActivity(intent);
      }
    });
      findViewById(R.id.btn_favourites).setOnClickListener(new OnClickListener() 
      {
      @Override
      public void onClick(View v) 
      {
        UserData.mixpanel.track("HomeToFavouritesList", null);
        
        Intent intent = new Intent(getBaseContext(), Favourites.class);
        startActivity(intent);
      }
    });
          
      findViewById(R.id.btn_playground).setOnClickListener(new OnClickListener() 
      {
      @Override
      public void onClick(View v) 
      {
        UserData.mixpanel.track("HomeToPlayground", null);
        
        Intent intent = new Intent(getBaseContext(), Playground.class);
        startActivity(intent);
      }
    });
      findViewById(R.id.btn_about).setOnClickListener(new OnClickListener() 
      {
      @Override
      public void onClick(View v) 
      {
        UserData.mixpanel.track("HomeToAbout", null);
        
        Intent intent = new Intent(getBaseContext(), About.class);
        startActivity(intent);
      }
    });
    }
}




Java Source Code List

com.koushikdutta.urlimageviewhelper.Constants.java
com.koushikdutta.urlimageviewhelper.DiskLruCache.java
com.koushikdutta.urlimageviewhelper.LruCache.java
com.koushikdutta.urlimageviewhelper.SoftReferenceHashTable.java
com.koushikdutta.urlimageviewhelper.UrlImageCache.java
com.koushikdutta.urlimageviewhelper.UrlImageViewCallback.java
com.koushikdutta.urlimageviewhelper.UrlImageViewHelper.java
com.koushikdutta.urlimageviewhelper.UrlLruCache.java
com.koushikdutta.urlimageviewhelper.WrapperDrawable.java
com.magneticbear.scala1.About.java
com.magneticbear.scala1.EventInfo.java
com.magneticbear.scala1.Events.java
com.magneticbear.scala1.Favourites.java
com.magneticbear.scala1.Home.java
com.magneticbear.scala1.OpenAllSSLSocketFactory.java
com.magneticbear.scala1.Playground.java
com.magneticbear.scala1.ServerData.java
com.magneticbear.scala1.SpeakersInfo.java
com.magneticbear.scala1.Speakers.java
com.magneticbear.scala1.Splash.java
com.magneticbear.scala1.Struct_Event_Adapter.java
com.magneticbear.scala1.Struct_Event.java
com.magneticbear.scala1.Struct_Speaker_Adapter.java
com.magneticbear.scala1.Struct_Speaker.java
com.magneticbear.scala1.UserData.java