Android quirks

I just tried my first build for Android and found that a few things work differently. If anyone has recommendations about how to fix these issues, I'd be happy to hear about it.

First, the Mailto: button I have, which works fine on the iPhone, puts the escaped text into the To box of the Android email client:

1
2
3
4
local emailButtonPress = function ( event )
system.openURL("mailto:?subject=I%20scored%20" .. points .. "%20playing%20TK&body=Think%20you%20can%20do%20better%3F%0Ahttp%3A%2F%2Fwww.TK.com%2F%0D")
return true
end

I don't think that Android caches the app but rather think that it still runs. I have to test this.

I should add that the Ansca-provided Facebook code doesn't work as expected in Android either.

The session = facebook.newConnection( fb_api_key, fb_secret ) call concatenates the FB URL with the directory path in Android that gets sent, so that you get this browser error:

Web page not available

The Web page at /data/data//app_datahttp://www.facebook.com/login.php?next=fbconnect..[etc]
might be temporarily down...

The same FB code works fine presently in an iPhone build I've tried.

Android apps can suspend. There's no built in way to save state, so that's most likely what is going on.

You can dismiss the soft KB by setting focus to nil.

The escaped text is clearly a bug. I logged that.

The FB web problem should be fixed in Game Edition builds. See this thread:
http://developer.anscamobile.com/forum/2010/10/12/do-webpopups-just-not-work-android

There's still a problem with the Facebook demo code on Android: No native keyboard pops up when the UID or password field is made the focus.

I've been using this code in my iPhone app and it works fine. But not on Android.

There's no way to actually login to Facebook using the demo code for Android.

The problem with email and escaped text is fixed for next build.

Great, thanks. Soon I hope :-)

views:1298 update:2011/10/9 22:34:50
corona forums © 2003-2011