Middelware for location-based applications with social network integration
This section will present a short tutorial on how to make Eclipse ready for UbiNomad Library
-
Import an existing Android application
-
Select root directory
- Google Play Services: [android-sdk]/extras/google/google_play_services/libproject/google-play-services_lib
- Other dependencies: [UbiNomadLib]
-
Select projects to import
- Google Play Services: google-play-services_lib
- Other dependencies: UbiNomadLib, Facebook SDK, and foursquare-oauth-library
-
Press finish
-
Congratulation the IDE is ready
If UbiNomadLib is marked with a red x, it may be a build problem:
-
Right-click on the project and press Properties
-
If any library is marked with a red x, remove it and add it again.
-
There should be 3 libraries included marked with a green checkmark
To have clean setup for a UbiNomad application, this section will go through the steps to set it up.
-
Import an existing Android application
-
Select root directory: UbiNomadLib/samples
-
Import HelloUbiNomad, and set a name for your application
-
Press Finish
-
A project with your chosen name should be visible in the project explorer. It will also be marked with a red x
-
Right-click on the project and choose Properties
-
There should be a red x on the UbiNomadLib project. Remove the project and replace it with UbiNomadLib.
-
You should now be able to run the application.
-
(Optional) Change package name to your liking. If you change the package name, you will need to change it to the same in AndroidManifest.
-
(Optional) To be able to use Facebook, create an application on developers.facebook.com. Add the application id to res/values/strings.xml. Follow Facebooks getting started guide to be able to get key hashes
-
(Optional) To be able to use Foursquare, create an application on developers.foursquare.com. Add client_id and client_secret to the constructor when register an oauth key.
If you get the error message "2 versions of support-library" it can be fixed by:
There are two ways in which you are able to extend the library: You may add additional place providers, or you may add functionality. This section will describe how to start.
- Extend ExternalProvider
- Implement each method the provider supports. If it does not support a function return null
- Extend ProviderConnector
- Implement the methods in the extended ProviderConnector
- Create a new method in the ExternalProvider interface
- Implement the method in each existing Place Provider