package org.gdg.frisbee.android.activity;

import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;

import org.gdg.frisbee.android.Const;

/**
 * Created with IntelliJ IDEA.
 * User: maui
 * Date: 02.07.13
 * Time: 00:03
 * To change this template use File | Settings | File Templates.
 */
public class StartActivity extends ActionBarActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        SharedPreferences mPreferences = getSharedPreferences("gdg", MODE_PRIVATE);

        Intent intentForStart = null;
        if(mPreferences.getBoolean(Const.SETTINGS_FIRST_START, true))
            intentForStart = new Intent(StartActivity.this, FirstStartActivity.class);
        else
            intentForStart = new Intent(StartActivity.this, MainActivity.class);

        startActivity(intentForStart);
        finish();
    }
}

@@ -32,24 +32,56 @@
 .activity;%0A%0A
+import android.app.AlertDialog;%0A
 import andro
@@ -208,32 +208,136 @@
 ionBarActivity;%0A
+import android.text.TextUtils;%0Aimport android.widget.Toast;%0A%0Aimport org.gdg.frisbee.android.BuildConfig;
 %0Aimport org.gdg.
@@ -358,16 +358,50 @@
 d.Const;
+%0Aimport org.gdg.frisbee.android.R;
 %0A%0A/**%0A *
@@ -713,24 +713,206 @@
 nceState);%0A%0A
+        if (BuildConfig.DEBUG && TextUtils.isEmpty(getString(R.string.play_app_id)))%7B%0A            Toast.makeText(this, %22no API keys defined!%22, Toast.LENGTH_SHORT).show();%0A        %7D%0A%0A
         Shar

add toast if api keys are missing, fixes #157