Environment Setup

Development Environment

The sample application is developed under the following configuration:

  • IDE: Android Studio 1.5
  • Build: Gradle 2.13 (always use the latest version)
  • JDK: 8.0

‘apidemo’ Module

Manifest configurations are as follows:

<SDK Version>

  • minSdkVersion: 21
  • targetSdkVersion: 23 

<Permission>

  • android.permission.BLUETOOTH
  • android.permission.BLUETOOTH_ADMIN
  • android.permission.ACCESS_FINE_LOCATION
  • android.permission.INTERNET
  • android.permission.ACCESS_NETWORK_STATE
  • android.permission.ACCESS_WIFI_STATE
  • android.permission.CHANGE_WIFI_STATE
  • android.permission.READ_EXTERNAL_STORAGE
  • android.permission.WRITE_EXTERNAL_STORAGE

<Feature>

  • android.hardware.bluetooth_le

‘helloFriendsCamera’ Module

Manifest configurations are as follows:

<SDK Version>

  • minSdkVersion: 21
  • targetSdkVersion: 23 

<Permission>

  • android.permission.INTERNET
  • android.permission.ACCESS_NETWORK_STATE

<Feature>

  • android.hardware.bluetooth_le

Viewer

The ‘apidemo’ application uses an image viewer module based on the Google Cardboard VR viewer.

Download and import the following client libraries for Cardboard SDK for Android from the Google Developers site:

  • cardboard.jar
  • libprotobuf-java-2.6-nano.jar

From Cardboard SDK for Android v0.6.0, the libprotobuf-java-2.6-nano.jar library is incorporated into the cardboard.jar library. For more details, see Release Notes of Cardboard SDK for Android.

 

Import the project file of the sample application to Android Studio to get started.

Running Environment

Enable Bluetooth and Wi-Fi from the Settings menu on the application side.

 

The mobile device running the application must support BLE (Bluetooth Low Energy) to connect with Friends Camera device.

 

Navigation