i made PostActivity.java to get users input after a widget click
i added post options to the settings.xml
TravelPostWidget.java
i added an if block to check users settings for posting
LocationReceiver.java
i made a convince method for posting and added an if block that generates a post base on users settings
created method postToWall(). this method should post without user interaction
in FacebookAuth.java i splite the init() method into two. authorize() and logout().
created postToWallDialog() in FacebookAuth.java to display a dialog when posting to wall.
created a custom exception called SessionNotValidException to be thrown when facebook hates us
t seems the facebook sdk is not saving an access token when trying to make a direct facebook graph request.
it does save the access token when calling a dialog but prompts for credentials. i believe the authorization process is failing. not sure why. still researching.
created package com.TwentyCodes.android.Facebook in TravelPost.
moved FacebookAuth.java to package.
created SessionStore.java and SessionEvents.java in Facebook package
created BaseRequestListener.java and BaseDialogListener.java in Facebook package.
modified FacebookAuth.java again. this file will be the object that interfaces with the facebook sdk.
modified FacebookAuth.postToWall(). testing now
added facebook sign in preference to R.xml.settings. currently Travel Post is acting like Your Mom. this should be changed before final testing.
currently app crashes. i don't have enough time to check trace but i sent an email. for now im saving work and will continue tomorrow.
the FC was related to onActivityForResult(). there was a string authcode that needed to be surrended with a null check as its either null or containing data.
it is null when twitter is not used.
all classes are integrated into Travel Post. as of right now I can post to my wall from Travel Post but it requires user interaction.
committing work so far and will continue to remove user interaction.
increased build but not version as facebook is not complete yet. build was set to 5 as several changes were made prior this one but the build was not increased
I found ReverseGeocode.java in one of the comments mentioning that it is a work around. i made a method getAddressFromLocation() that will do the job base on this source.
the reason why it was failing before is that i created a request token to get an auth url, and then i would create a new one when i get the auth code.
finished twitter intergration
i have made a java se twitter app to learn the api, and started the porting over to android.
right now the issue im having is that the onActivityResult() is not being called at the right time.
added required information into travelpostwidgetinfo.xml
TravelPostWidget.java
created onReceive(), onUpdate(), onDestroy()
added debug logs to TravelPostWidget.java
added TravelPostWidget.java to the AndroidManifest.xml
got the widget button to start the service via a pending intent
basic testing seems to be all working, i need to run some more test on the service befor i call it done
incorpatared the exception handler into TravelPost.java
Added android permission READ_LOGS to the manifest for the exception handler
created LocationService.java, and LocationReceiver.java to handle the location services required.
updated version build code to 0.0.0 b 0 as we do not have a working version yet