Do not turn off WIFI or BT while in use.
Added if blocks to check if WIFI or BT is in used before changing their state. Also added a new receiver to monitor the number of connected BT devices Signed-off-by: Ricky Barrette <rickbarrette@gmail.com>
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.RickBarrette.android.LocationRinger"
|
||||
android:installLocation="internalOnly"
|
||||
android:versionCode="209"
|
||||
android:versionName="1.0" >
|
||||
android:versionCode="219"
|
||||
android:versionName="2a1fd40" >
|
||||
|
||||
<uses-sdk android:minSdkVersion="8" />
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
<!-- licensing library -->
|
||||
<uses-permission android:name="com.android.vending.CHECK_LICENSE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
|
||||
|
||||
<application
|
||||
android:allowBackup="true"
|
||||
@@ -133,6 +134,12 @@
|
||||
</activity>
|
||||
<activity android:name="LegalActivity" >
|
||||
</activity>
|
||||
<receiver android:name=".receivers.BluetoothReceiver">
|
||||
<intent-filter>
|
||||
<action android:name="android.bluetooth.device.action.ACL_CONNECTED"/>
|
||||
<action android:name="android.bluetooth.device.action.ACL_DISCONNECTED"/>
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
Reference in New Issue
Block a user