Menu

Modify the AndroidManifest.xml File

Gabor Novak

Required modifications in the AndroidManifest.xml file

Requirements for the event listening mechanism

Permissions:

    <uses-permission android:name="android.permission.READ_CALL_LOG" />
    <uses-permission android:name="android.permission.READ_CONTACTS" />
    <uses-permission android:name="android.permission.WRITE_CONTACTS" />

Service:

    <service
        android:name="edu.nus.msf.service.MsfEventListenerService"
        android:enabled="true"
        android:label="Msf Event Listener Service" >
    </service>

Broadcast Receiver:

    <receiver android:name="edu.nus.msf.receiver.BootCompletedIntentReceiver" >
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
        </intent-filter>
    </receiver>

Requirements for the automatic backup function

Permission:

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

Service:

    <service
        android:name="edu.nus.msf.service.MsfBackupService"
        android:enabled="true"
        android:label="MsfBackupService" >
    </service>

Requirements for the automatic data upload

Permissions:

    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />

Service:

    <service
        android:name="edu.nus.msf.service.MsfUploadService"
        android:enabled="true"
        android:label="UploadService" >
    </service>

Broadcast Receiver:

    <receiver android:name="edu.nus.msf.receiver.NetworkChangeReceiver" >
        <intent-filter>
            <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
        </intent-filter>
    </receiver>

Requirements for the location based notification system

You need to register your own Broadcast Receiver class for this action: "edu.nus.msf.NOTIFICATION", somehow like this:

    <receiver android:name="íyour.own.applicaiton.MsfNotificationReceiver" >
        <intent-filter>
            <action android:name="edu.nus.msf.NOTIFICATION" />
        </intent-filter>
    </receiver>

Service:

   <service
        android:name="edu.nus.msf.service.MsfNotificationService"
        android:enabled="true"
        android:label="MsfNotificationService" >
    </service>

Requirements for the chart helper functions

Activity:

<activity android:name="org.achartengine.GraphicalActivity" />

Requirements for the utils

To use the "UserUtils.getUserUniqueId(Context context)" method:

Permission:

    <uses-permission android:name="android.permission.READ_PHONE_STATE" />

To use the "UserUtils.getMainEmailAddress(Context context)" method:

Permission:

    <uses-permission android:name="android.permission.GET_ACCOUNTS" />

Related

Wiki: First Steps with MSF