GithubHelp home page GithubHelp logo

linving / android_client_server_sample Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erls-corporation/android_client_server_sample

0.0 1.0 0.0 190 KB

Android example with server project, android client and DTO library (app in market: Mubble)

Home Page: http://mubble.org

Java 100.00%

android_client_server_sample's Introduction

Requirements for the project
----------------------------

- Eclipse or IntelliJ
- Gradle 1.0-rc3
- Android SDK

Project structure
-----------------
- android-client (Android App)
- server (server application which android access)
- dto (shared classes between android-client and server application to communicate)

Set up project
--------------
Configuration in android-client

- Goto android-client/local.properties and change to your Android SDK path
    -> If wrong path you get message:
            A problem occurred evaluating project ':android-client'.
                Cause: taskdef class com.android.ant.SetupTask cannot be found
                 using the classloader AntClassLoader[]
                Cause: com.android.ant.SetupTask
- Generate key store
    cd android-client/keystore/
    keytool -genkey -v -keystore mubble.keystore -alias alias_name -keyalg RSA -validity 10000
- Add keystore information to android-client/build.gradle (under androidPackage)
- Goto android-client/res/values/strings.xml and change key prefsApiUrlDefault to your rest URL, e.g. your local IP from http://api.mubble.org

Changes in server:
- Open JettyStart and enter your MongoDB connection data


Setup IDE (Eclipse/Intellij)
----------------------------
Run
    gradle eclipse
or better
    gradle idea

--> Open Project in IDE

How to run
----------
- Run JettyStart for Backend
- Setup Android emulator
- Run in Emulator (supporting from 1.6)

How to bundle
-------------
- Important to have a keystore to sign apps (see setup project)
- gradle build
- Build result
    - Signed Android App: android-client/build/distributions/android-client-0.1-DEV.apk
    - Deployable Server-App: server/build/libs/server-0.1-DEV.war

android_client_server_sample's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.