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. base64 trouble

I'm trying to decode base64 with the following code

String base64name = hmm[1];
byte[] b = Base64.decode(base64name, Base64.DEFAULT);


However, I get this error:


05-18 11:35:03.320: WARN/dalvikvm(3782): threadid=3: thread exiting
with uncaught exception (group=0x4001dc20)
05-18 11:35:03.324: ERROR/AndroidRuntime(3782): Uncaught handler:
thread main exiting due to uncaught exception
05-18 11:35:03.589: ERROR/AndroidRuntime(3782):
java.lang.NoClassDefFoundError: android.util.Base64
05-18 11:35:03.589: ERROR/AndroidRuntime(3782):     at
com.coolfone.hmm.onCreate(hmm.java:60)
05-18 11:35:03.589: ERROR/AndroidRuntime(3782):     at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047)
05-18 11:35:03.589: ERROR/AndroidRuntime(3782):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2459)
05-18 11:35:03.589: ERROR/AndroidRuntime(3782):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2512)
05-18 11:35:03.589: ERROR/AndroidRuntime(3782):     at
android.app.ActivityThread.access$2200(ActivityThread.java:119)
05-18 11:35:03.589: ERROR/AndroidRuntime(3782):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
05-18 11:35:03.589: ERROR/AndroidRuntime(3782):     at
android.os.Handler.dispatchMessage(Handler.java:99)
05-18 11:35:03.589: ERROR/AndroidRuntime(3782):     at
android.os.Looper.loop(Looper.java:123)
05-18 11:35:03.589: ERROR/AndroidRuntime(3782):     at
android.app.ActivityThread.main(ActivityThread.java:4363)
05-18 11:35:03.589: ERROR/AndroidRuntime(3782):     at
java.lang.reflect.Method.invokeNative(Native Method)
05-18 11:35:03.589: ERROR/AndroidRuntime(3782):     at
java.lang.reflect.Method.invoke(Method.java:521)
05-18 11:35:03.589: ERROR/AndroidRuntime(3782):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:862)
05-18 11:35:03.589: ERROR/AndroidRuntime(3782):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
05-18 11:35:03.589: ERROR/AndroidRuntime(3782):     at
dalvik.system.NativeStart.main(Native Method)



Any ideas why?


-- 

2. Vertical Ads in Landscape Mode

Is there a way to show ads vertically in landscape mode in an Android game? 
Something like the following:

http://stackoverflow.com/questions/5684097/how-to-show-admob-ads-vertical-in-landscape-mode-android

 I have tried all sorts of orientation settings, layouts etc, but nothing 
helps. And I haven't been able to find an answer to this anywhere.

Thanks.

-- 

3. How to target a running app with a KeyEvent?

4. How apply a theme in a fragment?

5. What is the difference between native and other ? (dumpsys meminfo)

6. GPS port for crespo

7. create a new init service or process and connect to a socket