// Path: sender/Android/JoKenNERD/app/src/main/java/com/littleredgroup/jokennerd/custom/BaseActionBarActivity.java
// public class BaseActionBarActivity extends ActionBarActivity {
// 
// 
//     public void showToastLong(String message) {
//         Toast.makeText(this, message, Toast.LENGTH_LONG).show();
//     }
// 
//     public void showToastLong(int message) {
//         Toast.makeText(this, message, Toast.LENGTH_LONG).show();
//     }
// 
//     public void showToastShort(String message) {
//         Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
//     }
// 
//     public void showToastShort(int message) {
//         Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
//     }
// 
//     @Override
//     public void startActivity(Intent intent) {
//         super.startActivity(intent);
//         overridePendingTransition(R.anim.abc_fade_in, R.anim.abc_fade_out);
//     }
// 
//     @Override
//     public void onBackPressed() {
//         super.onBackPressed();
//         overridePendingTransition(R.anim.abc_fade_in, R.anim.abc_fade_out);
//     }
// }
// 
// Path: sender/Android/JoKenNERD/app/src/main/java/com/littleredgroup/jokennerd/utils/Constants.java
// public class Constants {
// 
//     public static final String KEY_ACTION = "action";
//     public static final String KEY_VALUE = "value";
//     public static final String KEY_NAME = "name";
//     public static final String KEY_RESULT = "result";
//     public static final String KEY_SUCESS = "sucess";
//     public static final String KEY_ERROR = "error";
// 
//     public static final String ACTION_CHOICE = "choice";
//     public static final String ACTION_CONNECT = "connect";
//     public static final String ACTION_UPDATE = "update";
// 
//     public static final int CHOICE_ROCK = 1;
//     public static final int CHOICE_PAPER = 2;
//     public static final int CHOICE_SCISSOR = 3;
//     public static final int CHOICE_LIZARD = 4;
//     public static final int CHOICE_SPOCK = 5;
// 
//     public static final String RESULT_WIN = "win";
//     public static final String RESULT_LOSE = "loses";
//     public static final String RESULT_DRAW = "draw";
//     public static final String RESULT_ALREADY_CONNECTED = "already_connected";
//     public static final String RESULT_ROOM_IS_FULL = "room_full";
//     public static final String RESULT_SUCCESS_CONECTED = "sucess_conected";
// 
//     public static final String TAG_NAME = "name";
// 
//     public static final String URL_CHROMECAST = "https://www.google.com.br/chrome/devices/chromecast/";
//     public static final String URL_GOOGLE_SDK_CAST = "https://developers.google.com/cast/";
//     public static final String URL_HACKATHON_GDGJF = "http://emjuizdefora.com/gdgjf/eventos/projeto-campeao-1o-hackathon-gdgjf/";
// 
// }
// 
// Path: sender/Android/JoKenNERD/app/src/main/java/com/littleredgroup/jokennerd/utils/Utils.java
// public class Utils {
// 
//     public static void openHiperlink(Activity activity, String url) {
//         Intent i = new Intent(Intent.ACTION_VIEW);
//         i.setData(Uri.parse(url));
//         activity.startActivity(i);
//     }
// }


import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import com.littleredgroup.jokennerd.custom.BaseActionBarActivity;
import com.littleredgroup.jokennerd.utils.Constants;
import com.littleredgroup.jokennerd.utils.Utils;
package com.littleredgroup.jokennerd;



/**
 * Created by Victor Hugo on 21/03/2015.
 */
public class AboutActivity extends BaseActionBarActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);

        Toolbar mToolbar = (Toolbar) findViewById(R.id.about_toolbar);
        setSupportActionBar(mToolbar);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.about, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                onBackPressed();
                break;

            case R.id.action_googlecast:
                Utils.openHiperlink(this, Constants.URL_GOOGLE_SDK_CAST);
                break;

            case R.id.action_chromecast:
                Utils.openHiperlink(this, Constants.URL_CHROMECAST);
// Path: sender/Android/JoKenNERD/app/src/main/java/com/littleredgroup/jokennerd/custom/BaseActionBarActivity.java
// public class BaseActionBarActivity extends ActionBarActivity {
// 
// 
//     public void showToastLong(String message) {
//         Toast.makeText(this, message, Toast.LENGTH_LONG).show();
//     }
// 
//     public void showToastLong(int message) {
//         Toast.makeText(this, message, Toast.LENGTH_LONG).show();
//     }
// 
//     public void showToastShort(String message) {
//         Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
//     }
// 
//     public void showToastShort(int message) {
//         Toast.makeText(this, message, Toast.LENGTH_SHORT).show();
//     }
// 
//     @Override
//     public void startActivity(Intent intent) {
//         super.startActivity(intent);
//         overridePendingTransition(R.anim.abc_fade_in, R.anim.abc_fade_out);
//     }
// 
//     @Override
//     public void onBackPressed() {
//         super.onBackPressed();
//         overridePendingTransition(R.anim.abc_fade_in, R.anim.abc_fade_out);
//     }
// }
// 
// Path: sender/Android/JoKenNERD/app/src/main/java/com/littleredgroup/jokennerd/utils/Constants.java
// public class Constants {
// 
//     public static final String KEY_ACTION = "action";
//     public static final String KEY_VALUE = "value";
//     public static final String KEY_NAME = "name";
//     public static final String KEY_RESULT = "result";
//     public static final String KEY_SUCESS = "sucess";
//     public static final String KEY_ERROR = "error";
// 
//     public static final String ACTION_CHOICE = "choice";
//     public static final String ACTION_CONNECT = "connect";
//     public static final String ACTION_UPDATE = "update";
// 
//     public static final int CHOICE_ROCK = 1;
//     public static final int CHOICE_PAPER = 2;
//     public static final int CHOICE_SCISSOR = 3;
//     public static final int CHOICE_LIZARD = 4;
//     public static final int CHOICE_SPOCK = 5;
// 
//     public static final String RESULT_WIN = "win";
//     public static final String RESULT_LOSE = "loses";
//     public static final String RESULT_DRAW = "draw";
//     public static final String RESULT_ALREADY_CONNECTED = "already_connected";
//     public static final String RESULT_ROOM_IS_FULL = "room_full";
//     public static final String RESULT_SUCCESS_CONECTED = "sucess_conected";
// 
//     public static final String TAG_NAME = "name";
// 
//     public static final String URL_CHROMECAST = "https://www.google.com.br/chrome/devices/chromecast/";
//     public static final String URL_GOOGLE_SDK_CAST = "https://developers.google.com/cast/";
//     public static final String URL_HACKATHON_GDGJF = "http://emjuizdefora.com/gdgjf/eventos/projeto-campeao-1o-hackathon-gdgjf/";
// 
// }
// 
// Path: sender/Android/JoKenNERD/app/src/main/java/com/littleredgroup/jokennerd/utils/Utils.java
// public class Utils {
// 
//     public static void openHiperlink(Activity activity, String url) {
//         Intent i = new Intent(Intent.ACTION_VIEW);
//         i.setData(Uri.parse(url));
//         activity.startActivity(i);
//     }
// }


// Path: sender/Android/JoKenNERD/app/src/main/java/com/littleredgroup/jokennerd/AboutActivity.java
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.Menu;
import android.view.MenuItem;
import com.littleredgroup.jokennerd.custom.BaseActionBarActivity;
import com.littleredgroup.jokennerd.utils.Constants;
import com.littleredgroup.jokennerd.utils.Utils;

package com.littleredgroup.jokennerd;



/**
 * Created by Victor Hugo on 21/03/2015.
 */
public class AboutActivity extends BaseActionBarActivity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);

        Toolbar mToolbar = (Toolbar) findViewById(R.id.about_toolbar);
        setSupportActionBar(mToolbar);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.about, menu);
        return true;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                onBackPressed();
                break;

            case R.id.action_googlecast:
                Utils.openHiperlink(this, Constants.URL_GOOGLE_SDK_CAST);
                break;

            case R.id.action_chromecast:
                Utils.openHiperlink(this, Constants.URL_CHROMECAST);
                break;