-
Notifications
You must be signed in to change notification settings - Fork 46
Setup
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.
-
simpleui.jar = the main jar with optional dependencies to the other listed ones
-
google-play-services.jar http://developer.android.com/google/play-services/index.html
-
android-support-v4.jar http://developer.android.com/tools/support-library/index.html
-
butterknife-3.0.1.jar if you want to use https://github.com/JakeWharton/butterknife
-
dagger-1.1.0.jar, dagger-compiler-1.1.0.jar, javawriter-2.2.1.jar, javax.inject.jar if you want to use https://github.com/square/dagger
-
libGoogleAnalyticsServices.jar if you want to use https://developers.google.com/analytics/devguides/collection/android/
-
otto-1.3.4.jar if you want to use http://square.github.io/otto/
-
picasso-2.0.2.jar if you want to use https://github.com/square/picasso