[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-10-22 Thread androidian
This doesn't seem to work (setting the hostnameverifier). I get a ClassCastException on the line: HttpsURLConnection uc = (HttpsURLConnection) requestUrl.openConnection(); Here's the stacktrace: 10-22 22:54:11.110: ERROR/AndroidRuntime(192): Caused by: java.lang.ClassCastException:

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-10-14 Thread haig
I wasn't able to resolve the problem either. Hopefully we can get some resolution to this On Oct 10, 6:52 am, androidian [EMAIL PROTECTED] wrote: Does anyone have a cleaner solution to this problem (i.e. apart from modifying/hacking google's own gdata code)? It seems strange that you'd have

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-09-11 Thread haig
Hi Stunti, I still am receiving errors, but it is slightly different: Host is unresolved: www.google.com:443 Any thoughts? On Sep 9, 7:34 am, stunti [EMAIL PROTECTED] wrote: You need to modify the code of gdata. The certificates used by HttpURLConnection are not available to validate the

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-09-11 Thread haig
The getRequestConnection method that was modified http://pastebin.com/f5efc9f0d Error: http://pastebin.com/f6f115f2d On Sep 11, 11:40 am, haig [EMAIL PROTECTED] wrote: Hi Stunti, I still am receiving errors, but it is slightly different: Host is unresolved:www.google.com:443 Any thoughts?

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-09-09 Thread stunti
You need to modify the code of gdata. The certificates used by HttpURLConnection are not available to validate the hostname during a SSL connexion. A small workaround below. around line 332 in com.google.gdata.client.http.HttpGDataRequest You might also want to disable GZIP compression as it

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-09-07 Thread haig
I am having similar problems, hope someone can help. In my example, myService is a GoogleService GoogleService myService = new GoogleService(blogger, exampleCo- exampleApp-1); Standalone client works fine, but not in my android app. Error from logcat:

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-09-04 Thread schtieF
So any news on this topic, am i able to use google data apis (gdata) on android? thanx stefan On 25 Aug., 22:40, Justin (Google Employee) [EMAIL PROTECTED] wrote: You didn't answer what type myService is here. Cheers, Justin Android Team @ Google

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-08-25 Thread Justin (Google Employee)
You didn't answer what type myService is here. Cheers, Justin Android Team @ Google --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-08-22 Thread Justin (Google Employee)
What's the output from logcat? Cheers, Justin Android Team @ Google On Aug 22, 7:20 am, Manu [EMAIL PROTECTED] wrote: Hi Folks, Trying to insert even in google calendar but with no luck. Any pointers? String [EMAIL PROTECTED]; String pass=xyz; myService.setUserCredentials(name,

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-08-22 Thread Manu
Justing, It appears that the code is throwing exception in line myService.setUserCredentials(name, pass); The catch block for AuthenticationException is showing as the exception error message ERROR:Error connecting with login URI { // TODO Auto-generated catch block

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-08-22 Thread Manu
Justin, How can I print the exception to a logcat? Is it feasible?. I tried attaching src of gdata to android project for debugging but compilation fails and so cannot debug. Thanks Manoj On Aug 23, 12:23 am, Manu [EMAIL PROTECTED] wrote: Justing, It appears that the code is throwing

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-08-22 Thread Manu
Here is the stack trace log output for StackTraceElement stack[]=e.getStackTrace(); for(StackTraceElement i:stack) { android.util.Log.v(!!!,i.getClassName()+:+i.getMethodName() +:+i.getLineNumber()); } I/ActivityManager( 51): Annotation: Broadcast of Intent {

[android-developers] Re: Code working in standalone java; doesnot work in android (android-sdk-windows-0.9_beta)

2008-08-22 Thread Manu
My mnifest is ?xml version=1.0 encoding=utf-8? manifest xmlns:android=http://schemas.android.com/apk/res/android; package=org.mano uses-permission android:name=android.permission.RECEIVE_SMS / uses-permission android:name=android.permission.INTERNET / application