onComplete() is being called but still the activity is not finishing. When you hit back it works as expected.
I've tried adding flags to the calling intent, intializing all lifecycle methods and even arranging the order things are called.
I have tried these intent flags so far:
FLAG_ACTIVITY_NO_HISTORY
FLAG_ACTIVITY_NEW_TASK
FLAG_ACTIVITY_CLEAR_TASK
also modified TravelPostMain.java to fire an intent for this activity.
currently works. facebook authorized. saves the settings. only issue is you get a black screen aftwords. if you hit back all is good.
TODO:
log the onComplete method in facebookactivity to see what is happening.
twitter authorization.
finish widget and posting to sites.
TODO:
Need to finish Facebook and Twitter integration. To avoid context issues in facebook possible perform authorization in its own activity.
Need to handle the widget and posting.