Commit Graph

40 Commits

Author SHA1 Message Date
3c1415e059 refs #110
i force fb to check if account info is still valid when the user clicks on "Facebook Sign In" after the initially sign in.
2011-02-15 16:09:19 +00:00
44e32e4a14 updated to use the new exceptionhandler library 2011-02-13 23:29:51 +00:00
50f2ffd7a5 fixed a typo go me! 2011-02-12 19:00:40 +00:00
894efa804b i added a shared_prefs check in LocationReceiver.java that checks to see if facebook has been authorized by checking for the saved access_token. from my test this has fixed the chrashing issue i metioned before. 2011-02-12 18:23:14 +00:00
3bf935095b I have got FB auth to work properly in the settings, also i was able to post to facebook with out user interaction.
I intergrated facebok posting into LocationReceiver.java and have successfully posted my location to my wall as travel post.

i am having issues with receiver crashing when trying to post to facebook, if facebook isnt authorized yet.

im thinking of using a shared_prefs to save whether or not if facebook has been authorized
2011-02-12 17:54:34 +00:00
ff0e2a287e TravelPost.java
create updateWidget() that is called from onDestroy that updates the widget to the current settings
2011-02-11 15:37:02 +00:00
26be6cea67 added new icons by jen from task #114 2011-02-11 15:06:58 +00:00
dafa2f284c i migrated all strings to string.xml
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
2011-02-07 01:08:44 +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
8d56ea8776 centered the travel post button in the widget layout 2011-02-06 20:45:36 +00:00
45a348460b addded twitter api auth tokens for travel post 2011-02-05 18:19:48 +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
17f76029e5 removed LocationService.java and ReverseGeocode.java as the have been intergrated into the Location Library
svn+ssh://tcdevsvn1/svn/libraries/trunk/LocationLib
2011-02-03 12:16:34 +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
42bd331b27 removing, as its not project specfic 2011-02-02 16:48:22 +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
4c624a34e3 LocationService.java
i moved the broadcastLocation() call to onDestroy(), and replace all previous calls with kstopSelf(mStartId);
2011-01-31 17:04:56 +00:00
1e5667d018 added a temp widget icon 2011-01-31 05:38:16 +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
dbf1c509b2 TravelPost.java
im a lot closer to finishing twitter intergration.

however it is breaking at line 103 when it tries to get the users auth tokens from twitter
2011-01-30 20:49:00 +00:00
660cb3f10b fixed the onActivityResult bug i was having, it was due to a manifiest tag i added during testing 2011-01-30 17:34:11 +00:00
6a5645b307 not much done, however im alot closer to haveing twitter intergration finished.
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.
2011-01-29 19:26:00 +00:00
53845d6131 created webauth.xml to be used with displaying the web auth site, and allowing the user to input their auth code
i created WebAuth.java to be used to display the social client auth site, and get the users auth code

started intergration of twitter
2011-01-24 18:12:18 +00:00
db27e1528a created travelpostwidget.xml to be used as the widget layout
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
2011-01-24 01:30:15 +00:00
1e39e770bd inital commit of a working example of a widget 2011-01-23 19:35:50 +00:00
e1ec4143dc Share project "HelloWidget" into "svn+ssh://tcdevsvn1/svn/travel_post" 2011-01-23 19:35:04 +00:00
72923068ec Modified TravelPost.java to extend PreferenceActivity instead of activity, and created the settings.xml to be used for the activity.
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
2011-01-21 18:25:23 +00:00
warren powers
8cd11db88c deleting test app 2011-01-17 03:40:54 +00:00
warren powers
6eb8e7858b xml files cannot contain capital letters. somehow it committed with the error. fixed error and committed. TravelPostWidgetInfo.xml is now renamed to travelpostwidgetinfo.xml 2011-01-17 03:40:14 +00:00
warren powers
e14c957a20 created TravelPostWidget.java
created xml folder and added TravelPostWidgetInfo.xml to it.
2011-01-16 20:59:52 +00:00
matt joseph
3c0796a79f testcommit 2011-01-16 20:44:01 +00:00
warren powers
61212cb55e created TavelPost.java and ChangeLog.txt
added PostMortemReportExceptionHandler.java
2011-01-16 20:40:42 +00:00
warren powers
b80f3abf75 initial commit. no work done. 2011-01-16 20:34:01 +00:00
warren powers
786e16468b Share project "TravelPost" into "svn+ssh://tcdevsvn1/svn/travel_post" 2011-01-16 20:33:49 +00:00
146dae75b4 test again 2011-01-16 20:26:56 +00:00
warren powers
3c55754b5b modified system.out.println 2011-01-16 20:24:51 +00:00
d3416252d1 made a test class to print hello world 2011-01-16 20:17:00 +00:00
4b81645c7d test commit 2011-01-16 20:10:01 +00:00
d24b76f20d Share project "test" into "svn+ssh://tcdevsvn1/svn/travel_post" 2011-01-16 20:09:55 +00:00