From: gumartinm Date: Wed, 14 Dec 2011 03:11:49 +0000 (+0100) Subject: Finally I will not use AsyncTask for the log in Activity X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=db69b849b5d73afe19cf7eeca96d7202809cf743;p=JavaForFun Finally I will not use AsyncTask for the log in Activity because must not be an asynchronous activity. --- 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); + } +}