<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="agent.sense.android.iot.carbon.wso2.org.wso2_senseagent" >

    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.BATTERY_STATS" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
    <uses-permission android:name="com.google.android.gms.permission.ACTIVITY_RECOGNITION" />
    <uses-permission android:name="android.permission.RECEIVE_SMS"/>
    <uses-permission android:name="android.permission.READ_SMS" />

    <uses-sdk android:minSdkVersion="19" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/wso2logo"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name="org.wso2.carbon.iot.android.sense.RegisterActivity"
            android:label="@string/app_name"
            android:windowSoftInputMode="adjustResize|stateVisible" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <service
            android:name="org.wso2.carbon.iot.android.sense.event.SenseService"
            android:enabled="true"
            android:label="@string/app_name" >
        </service>

        <service
            android:name="org.wso2.carbon.iot.android.sense.data.publisher.DataPublisherService"
            android:enabled="true"
            android:label="@string/app_name" >
        </service>

        <service
            android:name="org.wso2.carbon.iot.android.sense.event.streams.battery.BatteryReaderService"
            android:enabled="true"
            android:label="@string/app_name" >
        </service>

        <service android:name="org.wso2.carbon.iot.android.sense.event.streams.activity.ActivityReceiver"/>

        <receiver android:name="org.wso2.carbon.iot.android.sense.event.SenseScheduleReceiver" >
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
                <action android:name="android.intent.action.QUICKBOOT_POWERON" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </receiver>

        <activity
            android:name="org.wso2.carbon.iot.android.sense.realtimeviewer.ActivitySelectSensor"
            android:label="My Sensors"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:theme="@style/AppTheme.NoActionBar" >
        </activity>
        <activity
            android:name="org.wso2.carbon.iot.android.sense.speech.detector.WordRecognitionActivity"
            android:label="Speech Recongnizer"
            android:theme="@style/AppTheme.NoActionBar" >
        </activity>

        <activity
            android:name="org.wso2.carbon.iot.android.sense.beacon.MonitoringActivity"
            android:label="Beacon Monitor"
            android:theme="@style/AppTheme.NoActionBar" >
        </activity>

        <activity
            android:name="org.wso2.carbon.iot.android.sense.bmonitor.BeaconMonitoringActivity"
            android:label="Beacon Monitor"
            android:theme="@style/AppTheme.NoActionBar" >
        </activity>
    </application>

</manifest>
