質問編集履歴

2

誤字

2025/01/09 05:05

投稿

m._.i
m._.i

スコア0

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  ### 該当のソースコード
10
10
 
11
- ```MyActivity.java
11
+ ```MainActivity.java
12
12
  package com.example.myapplication;
13
13
 
14
14
  import android.os.Bundle;

1

コードの追加

2025/01/09 00:30

投稿

m._.i
m._.i

スコア0

test CHANGED
File without changes
test CHANGED
@@ -104,6 +104,44 @@
104
104
  }
105
105
  ```
106
106
 
107
+ ```
108
+ AndroidManifest.xml
109
+ <?xml version="1.0" encoding="utf-8"?>
110
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
111
+ xmlns:tools="http://schemas.android.com/tools">
112
+
113
+ <uses-permission android:name="android.permission.BLUETOOTH" />
114
+ <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
115
+ <uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
116
+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
117
+ <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
118
+ <uses-permission android:name="android.permission.INTERNET" />
119
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
120
+
121
+ <application
122
+ android:allowBackup="true"
123
+ android:dataExtractionRules="@xml/data_extraction_rules"
124
+ android:fullBackupContent="@xml/backup_rules"
125
+ android:icon="@mipmap/ic_launcher"
126
+ android:label="@string/app_name"
127
+ android:roundIcon="@mipmap/ic_launcher_round"
128
+ android:supportsRtl="true"
129
+ android:theme="@style/Theme.MyApplication"
130
+ tools:targetApi="31">
131
+ <activity
132
+ android:name=".MainActivity"
133
+ android:exported="true">
134
+ <intent-filter>
135
+ <action android:name="android.intent.action.MAIN" />
136
+
137
+ <category android:name="android.intent.category.LAUNCHER" />
138
+ </intent-filter>
139
+ </activity>
140
+ </application>
141
+
142
+ </manifest>
143
+ ```
144
+
107
145
  ### 試したこと・調べたこと
108
146
  - [x] teratailやGoogle等で検索した
109
147
  - [x] ソースコードを自分なりに変更した