Skip to content

Commit

Permalink
Fixed an error with permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Kangur committed Dec 24, 2012
1 parent 5836a1d commit 4f34b10
Show file tree
Hide file tree
Showing 25 changed files with 17 additions and 8 deletions.
6 changes: 3 additions & 3 deletions AndroidManifest.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bluetooth"
android:versionCode="4"
android:versionCode="5"
android:versionName="1.0" >

<uses-sdk
Expand All @@ -22,11 +22,11 @@
<uses-permission android:name="android.permission.INTERNET" />

<uses-feature
android:name="android.hardware.accelerometer"
android:name="android.hardware.sensor.accelerometer"
android:required="true" />
<uses-feature
android:name="android.hardware.screen.portrait"
android:required="false" />
android:required="true" />

<application
android:name=".BluetoothRemoteControlApp"
Expand Down
6 changes: 3 additions & 3 deletions bin/AndroidManifest.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.bluetooth"
android:versionCode="4"
android:versionCode="5"
android:versionName="1.0" >

<uses-sdk
Expand All @@ -22,11 +22,11 @@
<uses-permission android:name="android.permission.INTERNET" />

<uses-feature
android:name="android.hardware.accelerometer"
android:name="android.hardware.sensor.accelerometer"
android:required="true" />
<uses-feature
android:name="android.hardware.screen.portrait"
android:required="false" />
android:required="true" />

<application
android:name=".BluetoothRemoteControlApp"
Expand Down
Binary file modified bin/classes/com/bluetooth/ActionListActivity$1.class
Binary file not shown.
Binary file modified bin/classes/com/bluetooth/ActionListActivity.class
Binary file not shown.
Binary file modified bin/classes/com/bluetooth/DeviceListBaseAdapter$ViewHolder.class
Binary file not shown.
Binary file modified bin/classes/com/bluetooth/DeviceListBaseAdapter.class
Binary file not shown.
Binary file not shown.
Binary file modified bin/classes/com/bluetooth/activities/AccelerometerControl.class
Binary file not shown.
Binary file modified bin/classes/com/bluetooth/activities/KillAllHumans$1.class
Binary file not shown.
Binary file modified bin/classes/com/bluetooth/activities/KillAllHumans$2.class
Binary file not shown.
Binary file modified bin/classes/com/bluetooth/activities/KillAllHumans.class
Binary file not shown.
Binary file modified bin/classes/com/bluetooth/activities/LineFollower$1.class
Binary file not shown.
Binary file modified bin/classes/com/bluetooth/activities/LineFollower$2.class
Binary file not shown.
Binary file modified bin/classes/com/bluetooth/activities/LineFollower$3.class
Binary file not shown.
Binary file modified bin/classes/com/bluetooth/activities/LineFollower.class
Binary file not shown.
Binary file modified bin/classes/com/bluetooth/activities/PIDSettings.class
Binary file not shown.
Binary file modified bin/classes/com/bluetooth/activities/VoiceControl.class
Binary file not shown.
2 changes: 2 additions & 0 deletions src/com/bluetooth/ActionListActivity.java
Expand Up @@ -17,6 +17,8 @@

import java.util.ArrayList;

import com.bluetooth.R;

import android.content.Intent;
import android.os.Bundle;
import android.os.Message;
Expand Down
2 changes: 2 additions & 0 deletions src/com/bluetooth/DeviceListBaseAdapter.java
Expand Up @@ -17,6 +17,8 @@

import java.util.ArrayList;

import com.bluetooth.R;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
Expand Down
2 changes: 1 addition & 1 deletion src/com/bluetooth/DeviceSelectActivity.java
Expand Up @@ -18,8 +18,8 @@
import java.util.ArrayList;
import java.util.Set;

import com.bluetooth.DeviceListBaseAdapter;
import com.bluetooth.Device;
import com.bluetooth.DeviceListBaseAdapter;
import com.bluetooth.R;

import android.app.Activity;
Expand Down
1 change: 1 addition & 0 deletions src/com/bluetooth/activities/AccelerometerControl.java
Expand Up @@ -17,6 +17,7 @@

import com.bluetooth.BluetoothActivity;
import com.bluetooth.R;

import android.content.Context;
import android.graphics.PixelFormat;
import android.hardware.Sensor;
Expand Down
3 changes: 2 additions & 1 deletion src/com/bluetooth/activities/KillAllHumans.java
Expand Up @@ -44,6 +44,7 @@
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

import com.bluetooth.BluetoothActivity;
import com.bluetooth.BluetoothRemoteControlApp;
import com.bluetooth.R;
Expand Down Expand Up @@ -320,7 +321,7 @@ private void setState(final int newState)
soundName = kill[randomInt.nextInt(kill.length)];
break;
}

mediaPlayer = MediaPlayer.create(getApplicationContext(), getResources().getIdentifier(soundName, "raw", this.getPackageName()));
mediaPlayer.setOnCompletionListener(new OnCompletionListener()
{
Expand Down
1 change: 1 addition & 0 deletions src/com/bluetooth/activities/LineFollower.java
Expand Up @@ -16,6 +16,7 @@
package com.bluetooth.activities;

import java.io.IOException;

import com.bluetooth.BluetoothActivity;
import com.bluetooth.BluetoothRemoteControlApp;
import com.bluetooth.R;
Expand Down
1 change: 1 addition & 0 deletions src/com/bluetooth/activities/PIDSettings.java
Expand Up @@ -17,6 +17,7 @@

import com.bluetooth.BluetoothRemoteControlApp;
import com.bluetooth.R;

import android.app.Dialog;
import android.content.Context;
import android.os.Handler;
Expand Down
1 change: 1 addition & 0 deletions src/com/bluetooth/activities/VoiceControl.java
Expand Up @@ -21,6 +21,7 @@
import com.bluetooth.BluetoothActivity;
import com.bluetooth.BluetoothRemoteControlApp;
import com.bluetooth.R;

import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
Expand Down

0 comments on commit 4f34b10

Please sign in to comment.