Skip to content

Implement an Android ASAP application

Thomas Schwotzer edited this page Jan 18, 2021 · 16 revisions

Start with Java

We strongly suggest to implement you application logic as free as possible from Android. In any case, read the Implement an ASAP application before you go on with Android. It not long. Hava look.

This documentation assumes that your ASAP related code is implemented and tested on Java and you plan to run use it on Android.

Concept of this lib: service and application side

This library has two major components: There is a service in which an ASAPPeer runs. The service tries to (re-)created ad-hoc connections whenever possible and - of course - allowed from you. ASAP sessions are performed in that service. You do not have to care about this service at all. We call it service side.

You implement an Android application. That is what we call the application side. Both side communicate with message (application to service side) and broadcasts (service to application side). You will get in contact with any of those details but in one occasions: When you setup your application. Afterwards, you will not be bothered with any details of ASAP or layer 2 protocols. Your Java code will work without any change if you used the interfaces explained in Implement an ASAP application.

Setup

Clone this wiki locally