Cristobal Viedma
I'm trying to port an iPhone application that I made to Android. Said
application relies heavily on pulling data from my server. On the
iPhone this works like a charm, either by using XHR or JSONP (only
tried those 2 so far). On the Android OS however, I just can't make
any contact to the server. Both methods just time out, as if there was
no internet connection.
Is cross domain scripting not supported on Android?
Here is my JSONP code that works just fine on the iPhone, but doesn't
work at all on Android OS:
I think the bounty is up to $200. Anyone, Bueller. . .?
-ml
-Dx
I just finished testing JSON and AJAX for cross domain issues. It is
true you have to test on the same browser/ server if you are outside
of Android or the Emulator. Either method works within the Android;
see "you are so remote.apk" for AJAX and "JSON Test D.apk" for JSON.
Both are free on Android tools market and don't really do much except
for cross domain issues. I put them there so I could test on my G1
android 1.5 in the real world. If anyone cares about the source code
or how to do this in PhoneGap/ Eclipse, I will be happy to give some
more details.
Regards,
Tom Birchmire
I have the same problem but with symbian! I can´t do XHR call using
xml document. I don´t recieve any response from the server as if I havn
´t internet connection. I don´t know if it´s emulator problem or
what... did anybody try to use xhr calls using symbian?
On 27 mayo, 17:26, Avinash <kazaavin...@gmail.com> wrote:
> Hello Tom,
>
> I have downloaded and tested both the apps on my Android device and both are
> working fine.
> Would you be kind enough to share the code please.
>
> Thank you very much,
> Avinash
>
> > phonegap+u...@googlegroups.com<phonegap%2Bunsubscribe@googlegroups.c om>
Thanks for the heads-up. You pointed me in the right direction, now I
got JSONP to work, I guess XHR would work, too. What I had to do is
add the permission flag "INTERNET" to AndroidManifest.xml, see:
http://developer.android.com/reference/android/Manifest.permission.html#INTERNET
:)
Hello Tom,
I have downloaded and tested both the apps on my Android device and both are working fine.Would you be kind enough to share the code please.
Thank you very much,
Avinash
On Thu, May 27, 2010 at 11:14 AM, Thomas (geomancer) <tbirc...@usa.net> wrote:
Hello All,
I just finished testing JSON and AJAX for cross domain issues. It is
true you have to test on the same browser/ server if you are outside
of Android or the Emulator. Either method works within the Android;
see "you are so remote.apk" for AJAX and "JSON Test D.apk" for JSON.
Both are free on Android tools market and don't really do much except
for cross domain issues. I put them there so I could test on my G1
android 1.5 in the real world. If anyone cares about the source code
or how to do this in PhoneGap/ Eclipse, I will be happy to give some
more details.
Regards,
Tom Birchmire