Skip to content
Thomas Schwotzer edited this page Aug 27, 2021 · 16 revisions

There are two ways to set up a project. Clone another similar project an throw out everything you do not need. Setup a clean empty project and add what you need. Both way have their pros and cons.

Throwing out code can be boring and it tends to be a bit weird. You are going to deal with code for which you do not have any interest. It is like tidy up a cellar room. But it works.

You will not miss any detail when starting from the scratch. Your write (or copy) the manifest, copy (and understand) each line of code e.g. to get a reference to a SharkPeer. It takes usually a bit more time but you will be more familiar with the system afterwards.

Either way leads to a running GUI for your application anyway. You choose.

Cloning

The easiest way to set up a new project is cloning an existing one.

Fresh

A little movie gives an overview what you had to do to use ASAP - and what you would gain in return (German / English).

This library is the Android platform support of ASAPJava. The general concept of implementing a ASAP app also applies to Android.

Android specifics are explained in this developers guide.

If you like, have a look in our more complex ASAP based messenger SharkNet2 (which is and probably will always be work in progress).

Setup Android Studio for your ASAP Android app

This movie shows how to set up Android Studio to become ready for a new ASAP. application.

Very important: permissions. Please, add permission in your manifest file, e.g. like this

<!-- ASAPEngine needs to write in files -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<!-- ASAP requires networks access ->
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

<!-- if you plan to use Wifi direct -->
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />

<!-- if you plan to use Bluetooth -->
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />

Clone this wiki locally