박정현

코드 수정

1 +<?xml version="1.0" encoding="utf-8"?>
1 <manifest xmlns:android="http://schemas.android.com/apk/res/android" 2 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2 package="com.example.talktalkspeak"> 3 package="com.example.talktalkspeak">
3 4
5 +
4 <uses-permission android:name="android.permission.BLUETOOTH" /> 6 <uses-permission android:name="android.permission.BLUETOOTH" />
5 <uses-permission android:name="android.permission.RECEIVE_SMS"/> 7 <uses-permission android:name="android.permission.RECEIVE_SMS"/>
8 + <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
6 9
7 <application 10 <application
8 android:allowBackup="true" 11 android:allowBackup="true"
...@@ -12,10 +15,10 @@ ...@@ -12,10 +15,10 @@
12 android:supportsRtl="true" 15 android:supportsRtl="true"
13 android:theme="@style/AppTheme"> 16 android:theme="@style/AppTheme">
14 17
15 - <activity android:name=".MainActivity"> 18 + <activity android:name="com.example.talktalkspeak.MainActivity">
16 <intent-filter> 19 <intent-filter>
17 - <action android:name="android.intent.action.MAIN" /> 20 + <action android:name="android.intent.action.MAIN"/>
18 - <category android:name="android.intent.category.LAUNCHER" /> 21 + <category android:name="android.intent.category.LAUNCHER"/>
19 </intent-filter> 22 </intent-filter>
20 </activity> 23 </activity>
21 24
......
...@@ -203,7 +203,7 @@ public class MainActivity extends AppCompatActivity implements TextToSpeech.OnIn ...@@ -203,7 +203,7 @@ public class MainActivity extends AppCompatActivity implements TextToSpeech.OnIn
203 registerReceiver(this.kakaoReceiver, new IntentFilter("android.service.notification.NotificationListenerService")); 203 registerReceiver(this.kakaoReceiver, new IntentFilter("android.service.notification.NotificationListenerService"));
204 setSeekBar(); 204 setSeekBar();
205 if (!permissionGrantred()) { 205 if (!permissionGrantred()) {
206 - startActivity(new Intent("android.setting.ACTION_NOTIFICATION_LISTENER_SETTINGS")); 206 + startActivity(new Intent("android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS"));
207 } 207 }
208 } 208 }
209 209
......