Liferay Mobile SDK Sample
Switch branches/tags
Nothing to show
Latest commit abaa06d Aug 19, 2015 @brunofarache brunofarache Ignore lint errors

Liferay Mobile SDK logo

Liferay Android SDK Sample

This is the sample application for the Liferay Android SDK.

It's a simple app that displays users in a table view. By clicking on an user, it will display its contact details such as name, email, birthday and phones. By default, it uses the following credentials to authenticate:

Email:; password: test; server:

You can change these values in the class.

Most of the interesting code are in and . In these classes you can see how to create sessions and call portal services.

If you want to make asynchronous requests, take a look on how is used. If you have an existing AsyncTask and want to use that to make services calls, take a look at

Import into your IDE

Android Studio

  1. Click on Import Project…

  2. Choose buid.gradle from the root folder

  3. And that's it, Android Studio should automatically use Gradle Wrapper and create a file for you.


This project uses Gradle as the build and dependency management system. If you don't want to use Gradle, you can download the Android SDK JAR and its dependencies and copy them to your project's /libs folder, follow the instructions described here.

In order to build with Gradle, you have to:

  1. Create a files with a sdk.dir= property pointing to your Android SDK folder.

  2. Run $ ./gradlew build from the project root folder. This will automatically download the Android SDK and dependencies for you.

There are many more useful tasks, for example, for running your project in an emulator or device. Run $ ./gradlew tasks to see which tasks are available.

For more information on how the Android Gradle plugin works, read their documentation.