Permalink
Browse files

rename android facebook to sdk

  • Loading branch information...
serp256 committed Aug 7, 2012
1 parent 146c15f commit b54addcd6713d094ca1729c9238ae58050cf1ba7
Showing with 1 addition and 7,964 deletions.
  1. +0 −5 META.android
  2. +1 −1 src/android/java/project.properties
  3. BIN src/social/facebook/android/Facebook.apk
  4. +0 −24 src/social/facebook/android/README.md
  5. +0 −48 src/social/facebook/android/examples/Hackbook/AndroidManifest.xml
  6. +0 −130 src/social/facebook/android/examples/Hackbook/README.md
  7. +0 −83 src/social/facebook/android/examples/Hackbook/build.xml
  8. +0 −14 src/social/facebook/android/examples/Hackbook/default.properties
  9. +0 −17 src/social/facebook/android/examples/Hackbook/project.properties
  10. BIN src/social/facebook/android/examples/Hackbook/res/drawable-hdpi/splash.png
  11. BIN src/social/facebook/android/examples/Hackbook/res/drawable/icon.png
  12. BIN src/social/facebook/android/examples/Hackbook/res/drawable/icon_hack.png
  13. BIN src/social/facebook/android/examples/Hackbook/res/drawable/login.png
  14. +0 −5 src/social/facebook/android/examples/Hackbook/res/drawable/login_button.xml
  15. BIN src/social/facebook/android/examples/Hackbook/res/drawable/login_down.png
  16. BIN src/social/facebook/android/examples/Hackbook/res/drawable/logout.png
  17. +0 −5 src/social/facebook/android/examples/Hackbook/res/drawable/logout_button.xml
  18. BIN src/social/facebook/android/examples/Hackbook/res/drawable/logout_down.png
  19. BIN src/social/facebook/android/examples/Hackbook/res/drawable/me.png
  20. BIN src/social/facebook/android/examples/Hackbook/res/drawable/splash.png
  21. BIN src/social/facebook/android/examples/Hackbook/res/drawable/x.png
  22. +0 −43 src/social/facebook/android/examples/Hackbook/res/layout-land/main.xml
  23. +0 −43 src/social/facebook/android/examples/Hackbook/res/layout-port/main.xml
  24. +0 −11 src/social/facebook/android/examples/Hackbook/res/layout/connection_item.xml
  25. +0 −45 src/social/facebook/android/examples/Hackbook/res/layout/fields_connections_list.xml
  26. +0 −14 src/social/facebook/android/examples/Hackbook/res/layout/fields_item.xml
  27. +0 −41 src/social/facebook/android/examples/Hackbook/res/layout/fql_query.xml
  28. +0 −33 src/social/facebook/android/examples/Hackbook/res/layout/friend_item.xml
  29. +0 −11 src/social/facebook/android/examples/Hackbook/res/layout/friends_list.xml
  30. +0 −103 src/social/facebook/android/examples/Hackbook/res/layout/graph_explorer.xml
  31. +0 −9 src/social/facebook/android/examples/Hackbook/res/layout/main_list_item.xml
  32. +0 −8 src/social/facebook/android/examples/Hackbook/res/layout/permission_item.xml
  33. +0 −59 src/social/facebook/android/examples/Hackbook/res/layout/permissions_list.xml
  34. +0 −24 src/social/facebook/android/examples/Hackbook/res/layout/place_item.xml
  35. +0 −11 src/social/facebook/android/examples/Hackbook/res/layout/places_list.xml
  36. +0 −5 src/social/facebook/android/examples/Hackbook/res/layout/splash.xml
  37. +0 −67 src/social/facebook/android/examples/Hackbook/res/layout/token_refresh.xml
  38. +0 −67 src/social/facebook/android/examples/Hackbook/res/layout/update_post_response.xml
  39. +0 −71 src/social/facebook/android/examples/Hackbook/res/layout/upload_photo_response.xml
  40. +0 −10 src/social/facebook/android/examples/Hackbook/res/values/colors.xml
  41. +0 −88 src/social/facebook/android/examples/Hackbook/res/values/strings.xml
  42. +0 −25 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/BaseDialogListener.java
  43. +0 −41 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/BaseRequestListener.java
  44. +0 −112 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/FQLQuery.java
  45. +0 −305 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/FieldsConnectionsDialog.java
  46. +0 −110 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/FriendsGetProfilePics.java
  47. +0 −216 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/FriendsList.java
  48. +0 −359 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/GraphExplorer.java
  49. +0 −627 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/Hackbook.java
  50. +0 −30 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/IntentUriHandler.java
  51. +0 −151 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/LoginButton.java
  52. +0 −251 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/PermissionsDialog.java
  53. +0 −363 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/Places.java
  54. +0 −138 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/SessionEvents.java
  55. +0 −57 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/SessionStore.java
  56. +0 −29 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/SplashActivity.java
  57. +0 −96 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/TokenRefreshDialog.java
  58. +0 −116 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/UpdateStatusResultDialog.java
  59. +0 −185 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/UploadPhotoResultDialog.java
  60. +0 −153 src/social/facebook/android/examples/Hackbook/src/com/facebook/android/Utility.java
  61. +0 −20 src/social/facebook/android/examples/simple/AndroidManifest.xml
  62. +0 −14 src/social/facebook/android/examples/simple/default.properties
  63. BIN src/social/facebook/android/examples/simple/res/drawable/icon.png
  64. BIN src/social/facebook/android/examples/simple/res/drawable/login.png
  65. +0 −5 src/social/facebook/android/examples/simple/res/drawable/login_button.xml
  66. BIN src/social/facebook/android/examples/simple/res/drawable/login_down.png
  67. BIN src/social/facebook/android/examples/simple/res/drawable/logout.png
  68. +0 −5 src/social/facebook/android/examples/simple/res/drawable/logout_button.xml
  69. BIN src/social/facebook/android/examples/simple/res/drawable/logout_down.png
  70. +0 −65 src/social/facebook/android/examples/simple/res/layout/main.xml
  71. +0 −5 src/social/facebook/android/examples/simple/res/values/colors.xml
  72. +0 −10 src/social/facebook/android/examples/simple/res/values/strings.xml
  73. +0 −23 src/social/facebook/android/examples/simple/src/com/facebook/android/BaseDialogListener.java
  74. +0 −40 src/social/facebook/android/examples/simple/src/com/facebook/android/BaseRequestListener.java
  75. +0 −281 src/social/facebook/android/examples/simple/src/com/facebook/android/Example.java
  76. +0 −139 src/social/facebook/android/examples/simple/src/com/facebook/android/LoginButton.java
  77. +0 −146 src/social/facebook/android/examples/simple/src/com/facebook/android/SessionEvents.java
  78. +0 −53 src/social/facebook/android/examples/simple/src/com/facebook/android/SessionStore.java
  79. +0 −19 src/social/facebook/android/examples/stream/AndroidManifest.xml
  80. BIN src/social/facebook/android/examples/stream/assets/like_icon.png
  81. +0 −14 src/social/facebook/android/examples/stream/assets/login.css
  82. +0 −13 src/social/facebook/android/examples/stream/assets/login.html
  83. BIN src/social/facebook/android/examples/stream/assets/login_button.png
  84. +0 −118 src/social/facebook/android/examples/stream/assets/stream.css
  85. +0 −88 src/social/facebook/android/examples/stream/assets/stream.js
  86. +0 −14 src/social/facebook/android/examples/stream/default.properties
  87. BIN src/social/facebook/android/examples/stream/res/drawable-hdpi/icon.png
  88. BIN src/social/facebook/android/examples/stream/res/drawable-ldpi/icon.png
  89. BIN src/social/facebook/android/examples/stream/res/drawable-mdpi/icon.png
  90. +0 −4 src/social/facebook/android/examples/stream/res/values/strings.xml
  91. +0 −70 src/social/facebook/android/examples/stream/src/com/facebook/stream/App.java
  92. +0 −67 src/social/facebook/android/examples/stream/src/com/facebook/stream/AsyncRequestListener.java
  93. +0 −192 src/social/facebook/android/examples/stream/src/com/facebook/stream/Dispatcher.java
  94. +0 −76 src/social/facebook/android/examples/stream/src/com/facebook/stream/FileIO.java
  95. +0 −70 src/social/facebook/android/examples/stream/src/com/facebook/stream/Handler.java
  96. +0 −126 src/social/facebook/android/examples/stream/src/com/facebook/stream/LoginHandler.java
  97. +0 −78 src/social/facebook/android/examples/stream/src/com/facebook/stream/LogoutHandler.java
  98. +0 −174 src/social/facebook/android/examples/stream/src/com/facebook/stream/Session.java
  99. +0 −118 src/social/facebook/android/examples/stream/src/com/facebook/stream/StreamHandler.java
  100. +0 −205 src/social/facebook/android/examples/stream/src/com/facebook/stream/StreamJsHandler.java
  101. +0 −538 src/social/facebook/android/examples/stream/src/com/facebook/stream/StreamRenderer.java
  102. +0 −20 src/social/facebook/android/facebook/proguard-project.txt
  103. 0 src/social/facebook/android/{facebook → sdk}/AndroidManifest.xml
  104. 0 src/social/facebook/android/{facebook → sdk}/build.xml
  105. 0 src/social/facebook/android/{examples/Hackbook → sdk}/proguard-project.txt
  106. 0 src/social/facebook/android/{facebook → sdk}/project.properties
  107. BIN src/social/facebook/android/{facebook → sdk}/res/drawable-hdpi/close.png
  108. BIN src/social/facebook/android/{facebook → sdk}/res/drawable-hdpi/facebook_icon.png
  109. BIN src/social/facebook/android/{facebook → sdk}/res/drawable-ldpi/close.png
  110. BIN src/social/facebook/android/{facebook → sdk}/res/drawable-ldpi/facebook_icon.png
  111. BIN src/social/facebook/android/{facebook → sdk}/res/drawable-xhdpi/close.png
  112. BIN src/social/facebook/android/{facebook → sdk}/res/drawable/close.png
  113. BIN src/social/facebook/android/{facebook → sdk}/res/drawable/facebook_icon.png
  114. 0 src/social/facebook/android/{facebook → sdk}/src/com/facebook/android/AsyncFacebookRunner.java
  115. 0 src/social/facebook/android/{facebook → sdk}/src/com/facebook/android/DialogError.java
  116. 0 src/social/facebook/android/{facebook → sdk}/src/com/facebook/android/Facebook.java
  117. 0 src/social/facebook/android/{facebook → sdk}/src/com/facebook/android/FacebookError.java
  118. 0 src/social/facebook/android/{facebook → sdk}/src/com/facebook/android/FbDialog.java
  119. 0 src/social/facebook/android/{facebook → sdk}/src/com/facebook/android/Util.java
  120. +0 −18 src/social/facebook/android/tests/AndroidManifest.xml
  121. +0 −12 src/social/facebook/android/tests/default.properties
  122. BIN src/social/facebook/android/tests/res/drawable/icon.png
  123. +0 −73 src/social/facebook/android/tests/res/layout/main.xml
  124. +0 −5 src/social/facebook/android/tests/res/values/colors.xml
  125. +0 −8 src/social/facebook/android/tests/res/values/strings.xml
  126. +0 −579 src/social/facebook/android/tests/src/com/facebook/android/tests/Tests.java
View
@@ -3,11 +3,6 @@ archive(byte)="lightning.cma"
archive(native)="lightning.cmxa"
requires="bigarray extlib xmlm ojson"
-package "facebook" (
- description="Facebook API"
- archive(byte) = "fbconnect.cma"
- archive(native) = "fbconnect.cmxa"
-)
package "tapjoy" (
description="Tapjoy Connect"
@@ -13,4 +13,4 @@
android.library=true
# Project target.
target=android-8
-android.library.reference.1=../../social/facebook/android/facebook
+android.library.reference.1=../../social/facebook/android/sdk
Binary file not shown.
@@ -1,24 +0,0 @@
-This open source Java library allows you to integrate Facebook into your Android application. Except as otherwise noted, the Facebook Android SDK is licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html)
-
-Getting Started
-===============
-
-See our [Android SDK Getting Started Guide](https://developers.facebook.com/docs/mobile/android/build/)
-
-Sample Applications
-===============
-
-This library includes three sample applications to guide you in development.
-
-* __simple__: A bare-bones app that demonstrates authorization, making API calls, and invoking a dialog.
-
-* __stream__: This slightly beefier application lets you view your news feed.
-
-* __Hackbook__: This includes Single Sign On implementation (SSO), sample API calls, and advanced features like Get new Permissions, Run sample FQL Query and Graph API Explorer. Check out [Hackbook for Android](https://developers.facebook.com/docs/mobile/android/hackbook/)
-
-
-Report Issues/Bugs
-===============
-[Bugs](https://developers.facebook.com/bugs)
-
-[Questions](http://facebook.stackoverflow.com/questions/tagged/android)
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.facebook.android"
- android:versionCode="1"
- android:versionName="1.0">
- <supports-screens
- android:smallScreens="true"
- android:normalScreens="true"
- android:largeScreens="true"
- android:anyDensity="true" />
- <application android:icon="@drawable/icon"
- android:label="@string/app_name"
- android:debuggable="true">
- <activity android:name=".SplashActivity"
- android:label="@string/app_name"
- android:screenOrientation="portrait">
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- <activity android:name=".Hackbook"
- android:label="@string/app_name"
- android:configChanges="keyboardHidden|orientation">
- </activity>
- <activity
- android:name=".GraphExplorer"
- android:windowSoftInputMode="stateHidden"
- android:screenOrientation="portrait" />
- <activity android:name=".IntentUriHandler">
- <intent-filter>
- <action android:name="android.intent.action.VIEW" />
- <category android:name="android.intent.category.DEFAULT" />
- <data android:scheme="fbgraphex" />
- </intent-filter>
- </activity>
- <activity
- android:name=".FriendsList"
- android:screenOrientation="portrait" />
- <activity
- android:name=".Places"
- android:screenOrientation="portrait" />
- </application>
- <uses-permission android:name="android.permission.INTERNET" />
- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
- <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" />
- <uses-sdk android:minSdkVersion="8" />
-</manifest>
@@ -1,130 +0,0 @@
-This 'Hackbook for Android' app includes Single Sign On implementation (SSO), sample API calls and Graph API Explorer and is targeted towards android developers who want to make their apps social using Facebook Social Graph. The Code provided here is to showcase how to implement the SSO and make the API calls. If you have any questiosn or comments related to this sample app, please post them here - http://facebook.stackoverflow.com/questions/tagged/hackbook-for-android
-
-Getting Started
-===============
-
-See Android tutorial - https://developers.facebook.com/docs/mobile/android/build/
-
-Configuring the app
-===============
-
-1. Launch Eclipse
-2. Ensure you have installed the Android plugin.
-3. Create Facebook SDK Project - follow the Step-1 instructions in the tutorial
-4. Create the Hackbook Project :
- 4.1 Select __File__ -> __New__ -> __Project__, choose __Android Project__, and then click __Next__.
- 4.2 Select "Create project from existing source".
- 4.3. Choose examples/Hackbook. You should see the project properties populated.
- 4.4. Click Finish to continue.
-5. Add reference to the Facebook SDK - follow the Step-3 instructions in the tutorial
-6. Create a Facebook app if you don't have one already and add the app id in the Hackbook.java->APP_ID
-
-Build the app
-===============
-
-7. And you are done and ready to compile the project:
- 7.1 From the Project menu, select "Build Project".
-
-Run the app
-===============
-
-8. Hopefully project would compile fine. Next run the app on the emulator or on the phone (See http://developer.android.com/guide/developing/eclipse-adt.html#RunConfig for more details.)
- 8.1 If you plan to run on emulator, ensure you have created an Android Virtual Device (AVD):
- 8.1.1 Go to Window -> Android SDK and AVD Manager -> Click New
- 8.1.2 Provide a Name (AVD 2.3 e.g.) and choose the Target (Android 2.3 if available).
- 8.1.3 Click 'Create AVD' at the bottom and that should create an AVD which you can run the app on described next.
-
- 8.2 Go to Run->Run Configurations->Android Application->create a new run configuration by clicking the icon with + button on it.
- 8.3 Name it 'Hackbook'
- 8.4 Under the Project, Browse and choose Hackbook
- 8.5 Go to Target tab -> Choose manual if you wish to run on the phone, else choose Automatic and select an AVD created in step 8.1
- 8.6 Click Run and your 'Hackbook for Android' app should be up and running.
-
-
-Installing the Facebook app
-===============
-
-You will need to have the Facebook application on the handset or the emulator to test the Single Sign On. The SDK includes a developer release of the Facebook application that can be side-loaded for testing purposes. On an actual device, you can just download the latest version of the app from the Android Market, but on the emulator you will have to install it yourself:
-
- adb install FBAndroid.apk
-
-What's in there
-===============
-
-Note: The source tags are provided through out the code base to facilitate easy search for the relevant code. Do a project-wide search for the source tags to get straight to the relevant code. Refer below for source tags for each feature.
-
-1. Login button - This uses SSO to authorize the app. Clicking on Login should activate SSO (if the app is installed) or show OAuth dialog. When authorizing, no permissions are requested and the app will get basic permission by default.
-
-Source Tag - login_tag
-
-- Hackbook.java - this layout the login button and initialize it. Since this is also the calling acitivty, this overrides the onActivityResult() method.
-- LoginButton.java - this calls the mFb.authorize(mActivity, mPermissions, mActivityCode, new LoginDialogListener()) which authorizes the app via SSO or OAuth.
-- SessionStore.java - stores the access token and access expiry time for future app launch. This is important that you save the access token, else user will need to authorize your app each time they launch it which is annoying and user is likely to churn out.
-- SessionEvents.java - Authorization state tracker, calls the listener on login/logout success or error.
-------------------------
-
-2. Update Status - this allows user to update his status by calling the 'feed' dialog. More info on feed dialog - https://developers.facebook.com/docs/reference/dialogs/feed/
-
-Source Tag - update_status_tag, view_post_tag, delete_post_tag
-
-- Hackbook.java - Case 0: update status by calling the 'feed' dialog.
-- UpdateStatusResultDialog.java - shows the object-id returned in the dialog response. You can view or delete the post here.
-------------------------
-
-3. App Requests - this allows to send app requests to user's friends by calling the 'apprequests' dialog. More info - https://developers.facebook.com/docs/reference/dialogs/requests/
-
-Source Tag - app_requests_tag
-
-- Hackbook.java - Case 1: send the app requests by calling the the 'apprequests' dialog.
-------------------------
-
-4. Get Friends - Get user's friends via Graph API or FQL Query. User must be logged-in to use this. Also post on a friend's wall by clicking on his name in the list.
-
-Source Tag - get_friends_tag, friend_wall_tag
-
-- Hackbook.java - Case 2: Use Graph API 'me/friends' which returns friends sorted by UID, currently it's not possible to sort any other way in the Graph API. Use the FQL Query to sort by name - select name, current_location, uid, pic_square from user where uid in (select uid2 from friend where uid1=me()) order by name
-- FriendsList.java - displays the friends profile pic and names as returned by the api. Also post on friend's wall by clicking on the friend.
-- FriendsModel.java - run async tasks to fetch the profile picture limited to 15 tasks at any given time.
-
-5. Upload Photo - Upload a photo either from the media gallery or from a remote server. You require 'photo_upload' to upload photos on user profile.
-
-Source Tag - upload_photo, view_photo_tag, tag_photo_tag
-
-- Hackbook.java - Case 3: Photo is uploaded by posting byte-array or url to me/photos endpoint. Media Gallery is launched by invoking the MediaStore.Images.Media.EXTERNAL_CONTENT_URI intent and overriding the OnActivityResult() to get the picture from the media gallery. Photo from remote server is uploaded by simply providing the image url in the 'url' param in the graph.facebook.com/me/photos endpoint.
-- UploadPhotoResultDialog.java - shows the object-id returned after uploaded the photo. You can view or tag the photo here.
-------------------------
-
-
-6. Place Check-in - Fetch user's current location or use Times Square as the current location and get nearby places which user can check-in at.
-
-Source Tag - fetch_places_tag, check_in_tag
-
-- Hackbook.java - Case 4: Ask to fetch current location or use Times Square as the current location.
-- Places.java - Get user's current location and fetch the nearby places by calling the graph.facebook.com/search?type=places&distance=1000&center=lat,lon. Check-in user at a place by calling the graph.facebook.com/me/checkins&place=<place_id_>&message=<message>&coordinates={"latitude": <lat>, "longitude:": <lon>}
-------------------------
-
-7. Run FQL Query - Type and run any FQL Query and see the results.
-
-Source Tag - fql_query_tag
-
-- FQLQuery.java - Layout the FQL Query Dialog and run the query and show the results.
-------------------------
-
-8. Graph API Explorer - Explore user's social graph, see his and friends' connections and get new permissions. This is similar to the Graph Explorer dev tool - http://developers.facebook.com/tools/explorer/. The ObjectIDs in the API response are linkified and can be clicked to fetch object specific data.
- - Click the 'x' button to clear the textfield
- - Click the green up arrow button in the textfield to get the 'me' object data.
- - Click on 'Get Permissions' to get new permissions including user's, his friends or extended permissions.
- - Click on 'Fields/Connections' to see current object's fields and connections.
- - On the Fields & Connections dialog, in the Fields tab, select the fields to view or in the Connections tab, click the connection to view it's content.
-
-Source Tag - graph_explorer
-
-- Hackbook.java - Case 5: Launch the GraphExplorer intent
-- GraphExplorer.java - Layout and execute the graph explorer
-- IntentUriHandler.java - Handle the fbgraphex: schema generated while linkifying the Object IDs in the graph explorer output
-
-
-
-Report Issues/Bugs
-===============
-Please report issues here - http://facebook.stackoverflow.com/questions/tagged/hackbook-for-android
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project name="Hackbook" default="help">
-
- <!-- The local.properties file is created and updated by the 'android' tool.
- It contains the path to the SDK. It should *NOT* be checked into
- Version Control Systems. -->
- <property file="local.properties" />
-
- <!-- The ant.properties file can be created by you. It is only edited by the
- 'android' tool to add properties to it.
- This is the place to change some Ant specific build properties.
- Here are some properties you may want to change/update:
-
- source.dir
- The name of the source directory. Default is 'src'.
- out.dir
- The name of the output directory. Default is 'bin'.
-
- For other overridable properties, look at the beginning of the rules
- files in the SDK, at tools/ant/build.xml
-
- Properties related to the SDK location or the project target should
- be updated using the 'android' tool with the 'update' action.
-
- This file is an integral part of the build system for your
- application and should be checked into Version Control Systems.
-
- -->
- <property file="ant.properties" />
-
- <!-- The project.properties file is created and updated by the 'android'
- tool, as well as ADT.
-
- This contains project specific properties such as project target, and library
- dependencies. Lower level build properties are stored in ant.properties
- (or in .classpath for Eclipse projects).
-
- This file is an integral part of the build system for your
- application and should be checked into Version Control Systems. -->
- <loadproperties srcFile="project.properties" />
-
- <!-- quick check on sdk.dir -->
- <fail
- message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
- unless="sdk.dir"
- />
-
- <!--
- Import per project custom build rules if present at the root of the project.
- This is the place to put custom intermediary targets such as:
- -pre-build
- -pre-compile
- -post-compile (This is typically used for code obfuscation.
- Compiled code location: ${out.classes.absolute.dir}
- If this is not done in place, override ${out.dex.input.absolute.dir})
- -post-package
- -post-build
- -pre-clean
- -->
- <import file="custom_rules.xml" optional="true" />
-
- <!-- Import the actual build file.
-
- To customize existing targets, there are two options:
- - Customize only one target:
- - copy/paste the target into this file, *before* the
- <import> task.
- - customize it to your needs.
- - Customize the whole content of build.xml
- - copy/paste the content of the rules files (minus the top node)
- into this file, replacing the <import> task.
- - customize to your needs.
-
- ***********************
- ****** IMPORTANT ******
- ***********************
- In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
- in order to avoid having your file be overridden by tools such as "android update project"
- -->
- <!-- version-tag: 1 -->
- <import file="${sdk.dir}/tools/ant/build.xml" />
-
-</project>
@@ -1,14 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system use,
-# "build.properties", and override values to adapt the script to your
-# project structure.
-
-# Indicates whether an apk should be generated for each density.
-split.density=false
-# Project target.
-target=android-8
-android.library.reference.1=../../facebook
@@ -1,17 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system edit
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-#
-# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
-#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
-
-# Indicates whether an apk should be generated for each density.
-split.density=false
-android.library.reference.1=../../facebook
-# Project target.
-target=android-8
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_pressed="true" android:drawable="@drawable/login_down" />
- <item android:drawable="@drawable/login" /> <!-- default -->
-</selector>
@@ -1,5 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:state_pressed="true" android:drawable="@drawable/logout_down" />
- <item android:drawable="@drawable/logout" /> <!-- default -->
-</selector>
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:gravity="center_horizontal">
- <RelativeLayout
- android:layout_width="fill_parent"
- android:padding="6dip"
- android:layout_height="?android:attr/listPreferredItemHeight">
- <ImageView
- android:id="@+id/user_pic"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentTop="true"
- android:layout_alignParentBottom="true"
- android:layout_marginRight="6dip" />
- <TextView
- android:id="@+id/txt"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_toRightOf="@id/user_pic" />
- <com.facebook.android.LoginButton
- android:id="@+id/login"
- android:src="@drawable/login_button"
- android:layout_toRightOf="@id/user_pic"
- android:layout_below="@id/txt"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content" />
- </RelativeLayout>
- <View
- android:layout_width="fill_parent"
- android:layout_height="1dip"
- android:background="@color/grey" />
- <ListView
- android:id="@+id/main_list"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content" />
- <View
- android:layout_width="fill_parent"
- android:layout_height="1dip"
- android:background="@color/grey" />
-</LinearLayout>
Oops, something went wrong.

0 comments on commit b54addc

Please sign in to comment.