Commit | Line | Data |
---|---|---|
bdd8f09c PT |
1 | package ro.ieval.unical; |
2 | import java.io.BufferedReader; | |
3 | import java.io.IOException; | |
4 | import java.io.InputStreamReader; | |
819197b2 PT |
5 | import java.io.PrintStream; |
6 | import java.io.PrintWriter; | |
bdd8f09c PT |
7 | import java.net.MalformedURLException; |
8 | import java.net.URL; | |
9 | import java.net.URLConnection; | |
10 | import java.util.Date; | |
11 | ||
819197b2 PT |
12 | import javax.net.ssl.HttpsURLConnection; |
13 | ||
bdd8f09c PT |
14 | import ro.ieval.unical.R; |
15 | import com.google.gson.Gson; | |
16 | ||
7be52756 | 17 | import android.content.Intent; |
8188ed47 | 18 | import android.content.SharedPreferences; |
bdd8f09c PT |
19 | import android.graphics.Color; |
20 | import android.os.Bundle; | |
21 | import android.os.Handler; | |
8188ed47 | 22 | import android.preference.PreferenceManager; |
bdd8f09c | 23 | import android.util.Base64; |
8188ed47 PT |
24 | import android.view.View; |
25 | import android.widget.Button; | |
bdd8f09c PT |
26 | import android.widget.EditText; |
27 | import android.widget.TextView; | |
28 | ||
7be52756 PT |
29 | import com.facebook.*; |
30 | ||
31 | import com.facebook.model.*; | |
bdd8f09c PT |
32 | |
33 | public 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 | } |