Skip to content
Simon edited this page Dec 2, 2013 · 5 revisions

If you want to use SimpleUI as a library project just take a look at the SimpleUiExamples and do in the same way (Manifest.xml and libs folder with all needed jars). You can also use the simpleui.jar from SimpleUi\jars instead of including SimpleUI as a library project.

  • Import the jars from the SimpleUi\jars folder to your projects libs folder

  • copy the needed permissions, activities etc to your manifest.xml:

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    ...
    <!-- add the following permission entry and uses-permission entries for the google maps v2 -->
    <permission
        android:name="de.rwth.permission.MAPS_RECEIVE"
        android:protectionLevel="signature" />
    <uses-permission android:name="de.rwth.permission.MAPS_RECEIVE" />
    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-feature
        android:glEsVersion="0x00020000"
        android:required="true" />
    <application ... >
        ...
    <activity
        android:name="v2.simpleUi.SimpleUI"
        android:theme="@android:style/Theme.Translucent" >
    </activity>
    <service android:name="tools.KeepProcessAliveService" >
    </service>
    <!-- get your key at https://code.google.com/apis/console -->
    <meta-data
        android:name="com.google.android.maps.v2.API_KEY"
        android:value="your maps key" />
    <activity
        android:name="tools.ErrorHandler"
        android:process=":myexeptionprocess"
        android:taskAffinity="tools.ErrorHandler" >
        <intent-filter>
            <category android:name="android.intent.category.DEFAULT" />
            <action android:name="android.intent.action.VIEW" />
            <data android:mimeType="errors/testErrorHandlerSimpleUiTests" />
        </intent-filter>
    </activity>
        </application>
    </manifest>

Infos about the jars

I added all jars in the repository to make sure simpleui is compatible with them but still for some of them (google-play-services, android-support library) you should try to use the latest version instead.

Clone this wiki locally