Commit Graph

12 Commits

Author SHA1 Message Date
warren powers
9c8a0c8696 added handling of onclicks for each social site.
also handled removal of sites.

also removed locationlib. There are too many issues with skyhook. Since this project does not use skyhook I will handle location internally.

had to make a small modification to Add Social Site preference. For some reason the key value changed. works now.
2011-07-17 21:59:14 +00:00
warren powers
1245960577 renamed Twitter.java to TwitterServices.java and copied code from original TwitterServices.java (why change what works?)
added thread needed to start twitter authorization to TravelPostMain.java. Created TwitterWebAuth.java and twitterwebauth.xml
modified some strings to better explain failure points.

tested and working for authorization.
2011-07-13 16:11:32 +00:00
warren powers
13aec96feb added logs to FacebookActivity.onComplete()
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
2011-07-07 19:44:55 +00:00
warren powers
d2fa3a0cc6 created FacebookActivity.java and facebookactivity.xml. this activity is designed to assist with context issues during facebook authorization for the initial authorization.
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.
2011-07-07 00:46:44 +00:00
warren powers
0e8bf9a40e reorg 2011-03-12 18:38:42 +00:00
warren powers
414f1a18bf changed postToWall() to postWall() in FacebookAuth.java.
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.
2011-02-06 23:09:35 +00:00
54cb2b8f04 added android:installLocation="internalOnly" tag to the manifest because the app is a widget, and uses services as recommended by the android developer site 2011-02-04 23:26:29 +00:00
warren powers
10d37c5044 created FacebokAuth.java
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
2011-02-02 17:23:18 +00:00
d654b1a1f8 Due to this bug http://code.google.com/p/android/issues/detail?id=8816 google's Geocoder class does not function.
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.
2011-01-31 17:57:17 +00:00
1ad7485edb added an ongoing notification to the location service, that is started with the service, and removed when the service finished 2011-01-31 05:08:08 +00:00
c52f835f7a I created TwitterServices.java to handle the twitter services.
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
2011-01-31 02:45:04 +00:00
warren powers
61212cb55e created TavelPost.java and ChangeLog.txt
added PostMortemReportExceptionHandler.java
2011-01-16 20:40:42 +00:00