How to: (new) HTTP API

by yves » Fri, 10 Apr 2009 01:48:33 GMT


Sponsored Links
 I've read a lot of tutorials explaining how to use the HTTP Client
from the previous Android SDK.
With SDK 1.1 r1 this API has totally changed.

Is there any tutorial for this new API?

Is it possible to interact with a J EE application? I mean, on the one
side there is the J EE Application on the Internet, on the other side
there is the Android Device which uses the J EE Application (through
REST)? Is it also possible to stay "logged in" on the Android
application (Sessions)? Can I set Cookies on the Android Device?

Thanks in advance
Yves

--~--~---------~--~----~------------~-------~--~----~



How to: (new) HTTP API

by yves » Fri, 10 Apr 2009 01:48:59 GMT


 I've read a lot of tutorials explaining how to use the HTTP Client
from the previous Android SDK.
With SDK 1.1 r1 this API has totally changed.

Is there any tutorial for this new API?

Is it possible to interact with a J EE application? I mean, on the one
side there is the J EE Application on the Internet, on the other side
there is the Android Device which uses the J EE Application (through
REST)? Is it also possible to stay "logged in" on the Android
application (Sessions)? Can I set Cookies on the Android Device?

Thanks in advance
Yves

--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


How to: (new) HTTP API

by Mark Murphy » Fri, 10 Apr 2009 06:10:08 GMT


 


HttpClient is a product of the Apache Foundation. Documentation,
including examples, can be found at:

 http://hc.apache.org .


Presumably yes.


Presumably yes.


Yes.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://twitter.com/commonsguy 

Android App Developer Books:  http://commonsware.com/books.html 

--~--~---------~--~----~------------~-------~--~----~



How to: (new) HTTP API

by yves » Sat, 11 Apr 2009 01:22:02 GMT


 Thank you





--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Problem using ActivityInstrumentationTestCase class

Hey guys,

I have written a simple ActivityInstrumentationTestCase class to test
my activity and I have completed the settings for JUnit framework
using link "http://code.google.com/android/kb/
troubleshooting.html#addjunit" under title "I can't run a JUnit test
class in Eclipse/ADT" , but when I run the JUnit, I got the below
error.

java.lang.NoClassDefFoundError: android/test/
ActivityInstrumentationTestCase
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClass
(RemoteTestRunner.java:683)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.loadClasses
(RemoteTestRunner.java:425)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:445)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:673)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:386)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:196)
Caused by: java.lang.ClassNotFoundException:
android.test.ActivityInstrumentationTestCase
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClassInternal(Unknown Source)
        ... 17 more




- Sundar

--~--~---------~--~----~------------~-------~--~----~

2. Overriding Camera Button takePicture inside App

I am writing an application that starts the camera via the menu...
then it launches the camera preview.

I know I can use my own takePicture Method.... but how do I override
the one being performed by the camera button?



--~--~---------~--~----~------------~-------~--~----~

3. GPS / LocationListener / Location.getSpeed(), m/s or knots?

4. Regarding .apk file converting to .java file

5. android gps module ;do not exist the path data/misc/location;

6. Android DevCamp in Amsterdam!

7. Socket node and Session Controller node