Original remote: <https://github.com/openhab/openhab-android>
This app is a native client for openHAB which allows easy access to your sitemaps.
## Local setup
<ahref="https://play.google.com/store/apps/details?id=org.openhab.habdroid"><imgsrc="https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png"alt="Get it on Play Store"height="80"></a>
<ahref="https://f-droid.org/app/org.openhab.habdroid"><imgsrc="docs/images/get-it-on-fdroid.png"alt="Get it on F-Droid"height="80"></a>
<ahref="https://github.com/openhab/openhab-android/releases"><imgsrc="assets/direct-apk-download.png"alt="Get it on GitHub"height="80"></a>
- Connect to the Pi running at `141.76.65.29` with the known credentials and a local port-forward from `8080` to `127.0.0.1:8080`, or use the following ssh config:
## Features
* Control your openHAB server and [openHAB Cloud instance](https://github.com/openhab/openhab-cloud)
Beta builds are distributed via [GitHub](https://github.com/openhab/openhab-android/releases) and [F-Droid](https://f-droid.org/packages/org.openhab.habdroid.beta). Those builds can be installed alongside the stable version.
## Localization
Concerning all `strings.xml` files at [mobile/src/\*/res/values-\*/](mobile/src/main/res/)
All language/regional translations are managed with [Crowdin](https://crowdin.com/).
Please do NOT contribute translations as pull requests against the `mobile/src/*/res/values-*/strings.xml` files directly, but submit them through the Crowdin web service:
If you want to contribute to Android application we are here to help you to set up development environment. openHAB client for Android is developed using Android Studio and also can be build with maven.
- Download and install [Android Studio](https://developer.android.com/sdk/installing/studio.html) Android -> SDK Manager
- Check out the latest code from Github via Android Studio
- Install SDKs and Gradle if you get asked
- Click on "Build Variants" on the left side and change the build variant of the module "mobile" to fullDebug
You are ready to contribute!
Before producing any amount of code please have a look at [contribution guidelines](CONTRIBUTING.md)
## Build flavors
An optional build flavor "foss" is available for distribution through F-Droid. This build has map view, GCM and crash reporting removed and will not be able to receive push notifications from openHAB Cloud.
For using map view support in the "full" build flavor, you need to visit the [Maps API page](https://developers.google.com/maps/android) and generate an API key via the 'Get a key' button at the top. Then add a line in the following format to the 'gradle.properties' file (either in the same directory as this readme file, or in $HOME/.gradle): `mapsApiKey=<key>`, replacing `<key>` with the API key you just obtained.
## Trademark Disclaimer
Product names, logos, brands and other trademarks referred to within the openHAB website are the property of their respective trademark holders. These trademark holders are not affiliated with openHAB or our website. They do not sponsor or endorse our materials.
Google Play and the Google Play logo are trademarks of Google Inc.
- Now, you can open <http://localhost:8080>
- To use this within the openHAB app, change the settings to not use demo mode, and the local server to `http://10.0.2.2:8080` (See [a StackOverflow thread](https://stackoverflow.com/questions/5806220/how-to-connect-to-my-http-localhost-web-server-from-android-emulator-in-eclips) why to use this IP instead of `localhost`)