Add login screen
[unical.git] / src / ro / ieval / unical / mainActivity.java
CommitLineData
bdd8f09c
PT
1package ro.ieval.unical;
2import java.io.BufferedReader;
3import java.io.IOException;
4import java.io.InputStreamReader;
819197b2
PT
5import java.io.PrintStream;
6import java.io.PrintWriter;
bdd8f09c
PT
7import java.net.MalformedURLException;
8import java.net.URL;
9import java.net.URLConnection;
10import java.util.Date;
11
819197b2
PT
12import javax.net.ssl.HttpsURLConnection;
13
bdd8f09c
PT
14import ro.ieval.unical.R;
15import com.google.gson.Gson;
16
7be52756 17import android.content.Intent;
8188ed47 18import android.content.SharedPreferences;
bdd8f09c
PT
19import android.graphics.Color;
20import android.os.Bundle;
21import android.os.Handler;
8188ed47 22import android.preference.PreferenceManager;
bdd8f09c 23import android.util.Base64;
8188ed47
PT
24import android.view.View;
25import android.widget.Button;
bdd8f09c
PT
26import android.widget.EditText;
27import android.widget.TextView;
28
7be52756
PT
29import com.facebook.*;
30
31import com.facebook.model.*;
bdd8f09c
PT
32
33public class mainActivity extends android.app.Activity {
bdd8f09c
PT
34
35 @Override
36 protected void onCreate(Bundle savedInstanceState) {
37 // All Begins here :)
38 // And here it began the olympic app that does olympic thing
7be52756 39
8188ed47
PT
40 //log in
41 super.onCreate(savedInstanceState);
42 final SharedPreferences prefs=PreferenceManager.getDefaultSharedPreferences(this);
43 if(prefs.getBoolean("FirstTime", true)) {
44 prefs.edit().putBoolean("FirstTime", false).commit();
45 Intent i=new Intent(this,loginActivity.class);
46 startActivity(i);
47 }
bdd8f09c
PT
48 }
49}
This page took 0.01375 seconds and 4 git commands to generate.