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:
[lua]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[/lua]
ends up as an email address that looks like
<?subject =I%20scored%20" .. points .. "%20playing%20Blocfall&body=Think%20you%20can%20do%20better%3F%0Ahttp%3A%2F%2Fwww.blocfall.com%2F%0D>,
Second, the keyboard that open to type this email doesn’t have an obvious button to dismiss it. You can get rid of it by the back button on the Nexus One but it would be good to have a way to dismiss the keyboard as an touch event.
Third, Android saves the game state through some mechanism of it own and relaunching the app resumes the game from the exact same spot. This would be fine but for the fact that I have already coded a save game mechanism so that the user has a choice to resume play from the home screen. Is there an additional step that needs to be taken in applicationExit events, like os.exit(), to make sure the app has really quit and that a relaunch resumes using the methods coded through Corona rather than through however it is that Android caches the app state?
Thanks.
[import]uid: 1560 topic_id: 3456 reply_id: 303456[/import]
[import]uid: 1560 topic_id: 3456 reply_id: 11285[/import]