wiki:Proto/cModules/d0NetworkServiceAPI/c0Applications
close Warning: Can't synchronize with repository "(default)" ("(default)" is not readable or not a Git repository.). Look in the Trac log for more information.

Version 1 (modified by wontoniii, 9 years ago) ( diff )

--

2. Application Development

2.1. Android Requirements

All the following sections assume that the jmfapi.jar file (JFMAPI library) has been already created following the instructions found in the Library Installation section.

Only the aspects concerning the usage of the MobilityFirst libraries will be covered in this documentation page. Additional information regarding setting up and Android Development environment can be found at the Android Developer Page.

2.2. Android Studio Setup

Create a new Android Project following the wizard.

Copy the jmfapi.jar that you created into the libs folder that you will find inside the folder named after the module you just created.

In the project manager on the left, right click on the jar file and select Add As Library.... The current version of Android Studio (0.5.1) will report an error. If this happens close and reopen the project and it will be solved.

Now you can import the classes you need to use from the JMFAPI library by doing:

import edu.rutgers.winlab.jmfapi.*;
Note: See TracWiki for help on using the wiki.