<?xml version="1.0" encoding="utf-8"?>
<manifest package="us.keithirwin.tracman"
		xmlns:android="http://schemas.android.com/apk/res/android">

	<uses-permission android:name="android.permission.INTERNET"/>
	<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
	<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
	<uses-permission android:name="android.permission.BATTERY_STATS"/>
	<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

	<uses-feature android:name="android.hardware.location.gps" />

	<application
		android:allowBackup="true"
		android:icon="@drawable/logo_by"
		android:label="@string/app_name"
		android:supportsRtl="true"
		android:theme="@style/AppTheme">
		<activity android:name=".LoginActivity">
			<intent-filter android:label="@string/app_name">
				<action android:name="android.intent.action.MAIN"/>

				<category android:name="android.intent.category.LAUNCHER"/>
			</intent-filter>
		</activity>
		<activity
			android:name=".MainActivity"
			android:label="@string/app_name"
			android:parentActivityName=".LoginActivity">
			<meta-data
				android:name="android.support.PARENT_ACTIVITY"
				android:value="us.keithirwin.tracman.LoginActivity"/>
		</activity>
		<activity
			android:name=".SettingsActivity"
			android:label="@string/settings_name"
			android:parentActivityName=".MainActivity">
			<meta-data
				android:name="android.support.PARENT_ACTIVITY"
				android:value=".MainActivity"/>
		</activity>

		<service
			android:name=".LocationService"
			android:exported="false">
		</service>

		<receiver
			android:name=".BootReceiver"
			android:enabled="true"
			android:exported="true"
			android:permission="android.permission.RECEIVE_BOOT_COMPLETED">
			<intent-filter>
				<action android:name="android.intent.action.BOOT_COMPLETED"/>
				<action android:name="android.intent.action.QUICKBOOT_POWERON"/>

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

	</application>

</manifest>
