summaryrefslogtreecommitdiff
path: root/client/src/com/macaroon/piztor/InitAct.java
diff options
context:
space:
mode:
authorTeddy <ted.sybil@gmail.com>2013-08-25 21:05:00 +0800
committerTeddy <ted.sybil@gmail.com>2013-08-25 21:05:00 +0800
commit263967cbb477983ae8680b431c1d93f102971c30 (patch)
treeffb7a63d5987ce6368caec1e07d2f5df0fb35986 /client/src/com/macaroon/piztor/InitAct.java
parent69a0eecd6a831127d04970c4c1b5749c641b8e5e (diff)
restructured the project
Diffstat (limited to 'client/src/com/macaroon/piztor/InitAct.java')
-rw-r--r--client/src/com/macaroon/piztor/InitAct.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/client/src/com/macaroon/piztor/InitAct.java b/client/src/com/macaroon/piztor/InitAct.java
new file mode 100644
index 0000000..d5a6059
--- /dev/null
+++ b/client/src/com/macaroon/piztor/InitAct.java
@@ -0,0 +1,34 @@
+package com.macaroon.piztor;
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.os.Handler;
+import android.view.Menu;
+
+public class InitAct extends PiztorAct {
+
+ @Override
+ protected void onCreate(Bundle savedInstanceState) {
+ id = "initAct";
+ super.onCreate(savedInstanceState);
+ AppMgr.init();
+ setContentView(R.layout.activity_init);
+ }
+
+ @Override
+ protected void onStart() {
+ super.onStart();
+ if (UserInfo.token == -1)
+ AppMgr.trigger(AppMgr.noToken);
+ else {
+ //TODO jump to main
+ }
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ getMenuInflater().inflate(R.menu.init, menu);
+ return true;
+ }
+
+}