I am integrating Twitter support in the app I am developing. I already succeeded in posting a tweet to Twitter using Alloy.builtins.social.
Basically what I have right now is a popup which shows the message to be posted in a text area. The user can edit this message and can either decide to cancel or send (post) the message.
My question: How can I detect if the user canceled the authorize operation in any way? What I would like is to detect this and automatically close the popup I opened earlier.
I am using the latest version of Titanium Studio and am building for SDK 3.2.2.GA. At the moment I am testing on an Android 2.3 device but I also want to support iPhone.