From db69b849b5d73afe19cf7eeca96d7202809cf743 Mon Sep 17 00:00:00 2001 From: gumartinm Date: Wed, 14 Dec 2011 04:11:49 +0100 Subject: [PATCH] Finally I will not use AsyncTask for the log in Activity because must not be an asynchronous activity. --- Android/Testing/Test2/res/layout/main2.xml | 13 +++++++++++++ .../Test2/src/de/android/test2/NextActivity.java | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 Android/Testing/Test2/res/layout/main2.xml create mode 100644 Android/Testing/Test2/src/de/android/test2/NextActivity.java diff --git a/Android/Testing/Test2/res/layout/main2.xml b/Android/Testing/Test2/res/layout/main2.xml new file mode 100644 index 0000000..5203a2b --- /dev/null +++ b/Android/Testing/Test2/res/layout/main2.xml @@ -0,0 +1,13 @@ + + + + + + \ 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 index 0000000..140d54c --- /dev/null +++ b/Android/Testing/Test2/src/de/android/test2/NextActivity.java @@ -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); + } +} -- 2.1.4