質問編集履歴

1

Manifestのコ-ドを追加しました

2018/09/15 05:00

投稿

MickeyWaffle08
MickeyWaffle08

スコア7

test CHANGED
File without changes
test CHANGED
@@ -164,6 +164,66 @@
164
164
 
165
165
 
166
166
 
167
+ ### 該当のソースコード(Manifest)
168
+
169
+
170
+
171
+ ```xml
172
+
173
+ <?xml version="1.0" encoding="utf-8"?>
174
+
175
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
176
+
177
+ package="com.example.g27.a0915_bluetooth">
178
+
179
+
180
+
181
+ <uses-permission android:name="android.permission.BLUETOOTH"/>
182
+
183
+ <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
184
+
185
+ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
186
+
187
+
188
+
189
+ <application
190
+
191
+ android:allowBackup="true"
192
+
193
+ android:icon="@mipmap/ic_launcher"
194
+
195
+ android:label="@string/app_name"
196
+
197
+ android:supportsRtl="true"
198
+
199
+ android:theme="@style/AppTheme">
200
+
201
+ <activity android:name=".MainActivity"
202
+
203
+ android:configChanges="orientation">
204
+
205
+ <intent-filter>
206
+
207
+ <action android:name="android.intent.action.MAIN" />
208
+
209
+
210
+
211
+ <category android:name="android.intent.category.LAUNCHER" />
212
+
213
+ </intent-filter>
214
+
215
+ </activity>
216
+
217
+ </application>
218
+
219
+
220
+
221
+ </manifest>
222
+
223
+ ```
224
+
225
+
226
+
167
227
  ### 試したこと
168
228
 
169
229
 
@@ -177,3 +237,5 @@
177
237
 
178
238
 
179
239
  Android Studio(2.1.1)
240
+
241
+ [参考にしたサイト](https://android.keicode.com/basics/bluetooth-rfcomm-socket-2.php)