Skip to content

Installation Tutorial

Dominik Pirngruber edited this page Apr 12, 2016 · 8 revisions

Step by Step Instructions

Developement Environment

  • Apache
  • PHP
  • MYSQL
  • Android Studio

(The easiest way is using the "Xampp" Application --> Download and Installation informations can be found here)

Download

When you're familiar with the github environment, just clone this repo. Else you can download the Master.zip file.

Installation

File System

You have everything you need in this repo so you'll find a Folder called "android-im_WEBAPI" in this Repo, this Folder contains every "WebAPI" related configs and scripts. So copy this to your xampp "htdocs" directory and rename it to "android-im".

Database Setup

The Tables will be created on the first index.php call.

WebAPI Config

open your index.php in the android-im folder and modifie the following Parameter to fit your needs: $dbHost = "localhost"; $dbUsername = "DBUSERNAME"; $dbPassword = "DBPASSWORD"; $dbName = "DBNAME";

Android Studio Project setup

Simply import the github package into your Android Studio as new Project.

Code Configuration for FirstRun

You'll have to configure 1 thing in the code for your Environment.

  • In src/at.vcity.androidIM/communication/SocketOperator.java 24. private static final String AUTHENTICATION_SERVER_ADDRESS = "http://192.168.7.5/android-im/";

change the "192.168.7.5" to the IP-Adress of your Server (where the WebAPI is reachable)

You should be able to run this project now and use all the yet buildt in features