Hi,
there are some problems with the Twitter example that I fixed, so I want to share this.
I had to address my Twitter implementation because Amazon informed me that on the new Kindle Fire HDX device the Twitter login for my game “Freeze!” won’t work anymore.
After I checked it I found this to be true, the Twitter implementation worked on all tested Android devices (NEXUS 7, Galaxy Ace 2, S3, etc.) and on the older Kindle devices, but not on the HDX.
After some debugging I saw that it is a memory issue, the view for the very high resolution of the HDX just needed too much memory. The Twitter example from the Corona example folders works on the HDX, but my game with lots of other stuff going on in the background had a problem.
Additionally there is the problem with the scale = “zoomEven” setting I use, it causes the Twitter web popup from the example to be displayed incorrectly on some devices, e.g. the iPhone 5 (because the Twitter web view does not respect the correct size of the screen).
SOLUTION:
I updated the Twitter example and
* replaced the old native.showWebPopup() with the newer native.newWebView(), this took care of the memory issue
* changed the positioning of the native.newWebView() for graphics 2.0
* adapted the behavior for the closing of the web view
* optimized the size settings for the web view, they now respect the correct screen size regardless of the scale setting (“zoomEven” or “letterbox”)
Please find the updated example attached. It might even solve some problems of your Twitter implementation you might not be aware of.
All changes took place in the file: “Twitter.lua”
Best,
Andreas