Finally I will not use AsyncTask for the log in Activity
authorgumartinm <gu.martinm@gmail.com>
Wed, 14 Dec 2011 03:11:49 +0000 (04:11 +0100)
committergumartinm <gu.martinm@gmail.com>
Wed, 14 Dec 2011 03:11:49 +0000 (04:11 +0100)
because must not be an asynchronous activity.

Android/Testing/Test2/res/layout/main2.xml [new file with mode: 0644]
Android/Testing/Test2/src/de/android/test2/NextActivity.java [new file with mode: 0644]

diff --git a/Android/Testing/Test2/res/layout/main2.xml b/Android/Testing/Test2/res/layout/main2.xml
new file mode 100644 (file)
index 0000000..5203a2b
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    android:layout_width="fill_parent"
+    android:layout_height="fill_parent"
+    android:gravity="right"
+    android:orientation="vertical" >
+
+    <TextView
+        android:layout_width="fill_parent"
+        android:layout_height="wrap_content"
+        android:text="@string/hello" />
+    
+</LinearLayout>
\ No newline at end of file
diff --git a/Android/Testing/Test2/src/de/android/test2/NextActivity.java b/Android/Testing/Test2/src/de/android/test2/NextActivity.java
new file mode 100644 (file)
index 0000000..140d54c
--- /dev/null
@@ -0,0 +1,17 @@
+package de.android.test2;
+
+import android.app.Activity;
+import android.os.Bundle;
+import android.webkit.CookieManager;
+import android.webkit.CookieSyncManager;
+
+public class NextActivity extends Activity {
+        /** Called when the activity is first created. */
+    @Override
+    public void onCreate(Bundle savedInstanceState) {
+        super.onCreate(savedInstanceState);
+        CookieSyncManager.createInstance(this);
+        String myCookie = CookieManager.getInstance().getCookie("192.168.1.34/userfront.php");
+        setContentView(R.layout.main2);
+    }
+}