質問編集履歴
3
AndroidManifest.xmlの公開
test
CHANGED
File without changes
|
test
CHANGED
@@ -13,7 +13,117 @@
|
|
13
13
|
```
|
14
14
|
特になし
|
15
15
|
```
|
16
|
-
|
16
|
+
### AndroidManifest.xml
|
17
|
+
```kotlin
|
18
|
+
<?xml version="1.0" encoding="utf-8"?>
|
19
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
20
|
+
xmlns:tools="http://schemas.android.com/tools">
|
21
|
+
<uses-permission android:name="android.permission.INTERNET " />
|
22
|
+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
23
|
+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
|
24
|
+
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
|
25
|
+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
|
26
|
+
|
27
|
+
<application
|
28
|
+
android:allowBackup="true"
|
29
|
+
android:dataExtractionRules="@xml/data_extraction_rules"
|
30
|
+
android:fullBackupContent="@xml/backup_rules"
|
31
|
+
android:icon="@mipmap/ic_launcher"
|
32
|
+
android:label="@string/app_name"
|
33
|
+
android:roundIcon="@mipmap/ic_launcher_round"
|
34
|
+
android:supportsRtl="true"
|
35
|
+
android:theme="@style/Theme.Ohurocchi"
|
36
|
+
tools:targetApi="31"
|
37
|
+
tools:ignore="LockedOrientationActivity">
|
38
|
+
<activity
|
39
|
+
android:name=".BackgroundActivity"
|
40
|
+
android:exported="false"
|
41
|
+
android:screenOrientation="portrait"/>
|
42
|
+
<activity
|
43
|
+
android:name=".DressupActivity"
|
44
|
+
android:exported="false"
|
45
|
+
android:screenOrientation="portrait"/>
|
46
|
+
<activity
|
47
|
+
android:name=".BathlogActivity"
|
48
|
+
android:exported="false"
|
49
|
+
android:screenOrientation="portrait"/>
|
50
|
+
<activity
|
51
|
+
android:name=".NameActivity"
|
52
|
+
android:exported="true"
|
53
|
+
android:screenOrientation="portrait"/>
|
54
|
+
<activity
|
55
|
+
android:name=".CreditActivity"
|
56
|
+
android:exported="true"
|
57
|
+
android:screenOrientation="portrait" />
|
58
|
+
<activity
|
59
|
+
android:name=".AlarmActivity"
|
60
|
+
android:exported="true"
|
61
|
+
android:screenOrientation="portrait" />
|
62
|
+
<activity
|
63
|
+
android:name=".TitleActivity"
|
64
|
+
android:exported="true"
|
65
|
+
android:screenOrientation="portrait">
|
66
|
+
<intent-filter>
|
67
|
+
<action android:name="android.intent.action.MAIN" />
|
68
|
+
<category android:name="android.intent.category.LAUNCHER" />
|
69
|
+
</intent-filter>
|
70
|
+
|
71
|
+
<meta-data
|
72
|
+
android:name="android.app.lib_name"
|
73
|
+
android:value="" />
|
74
|
+
</activity>
|
75
|
+
<activity
|
76
|
+
android:name=".HomeActivity"
|
77
|
+
android:exported="true"
|
78
|
+
android:screenOrientation="portrait" />
|
79
|
+
<activity
|
80
|
+
android:name=".SettingActivity"
|
81
|
+
android:exported="true"
|
82
|
+
android:screenOrientation="portrait">
|
83
|
+
</activity>
|
84
|
+
<activity
|
85
|
+
android:name=".CharaActivity"
|
86
|
+
android:exported="true"
|
87
|
+
android:screenOrientation="portrait">
|
88
|
+
</activity>
|
89
|
+
<activity
|
90
|
+
android:name=".DressbuyActivity"
|
91
|
+
android:exported="true"
|
92
|
+
android:screenOrientation="portrait">
|
93
|
+
</activity>
|
94
|
+
<activity
|
95
|
+
android:name=".CommonActivity"
|
96
|
+
android:exported="true"
|
97
|
+
android:screenOrientation="portrait">
|
98
|
+
</activity>
|
99
|
+
<activity
|
100
|
+
android:name=".AuthActivity"
|
101
|
+
android:exported="true"
|
102
|
+
android:screenOrientation="portrait">
|
103
|
+
</activity>
|
104
|
+
|
105
|
+
<meta-data
|
106
|
+
android:name="preloaded_fonts"
|
107
|
+
android:resource="@array/preloaded_fonts" />
|
108
|
+
<provider
|
109
|
+
android:name="androidx.core.content.FileProvider"
|
110
|
+
android:authorities="${applicationId}.fileprovider"
|
111
|
+
android:exported="false"
|
112
|
+
android:grantUriPermissions="true">
|
113
|
+
<meta-data
|
114
|
+
android:name="android.support.FILE_PROVIDER_PATHS"
|
115
|
+
android:resource="@xml/provider_paths" />
|
116
|
+
</provider>
|
117
|
+
|
118
|
+
<receiver
|
119
|
+
android:name=".AlarmNotification"
|
120
|
+
android:process=":remote" >
|
121
|
+
</receiver>
|
122
|
+
|
123
|
+
</application>
|
124
|
+
|
125
|
+
</manifest>
|
126
|
+
```
|
17
127
|
### AlarmActivity.kt
|
18
128
|
|
19
129
|
```kotlin
|
2
タイトルの変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
繰り返し通知を実装すると当日だけ通知され
|
1
|
+
繰り返し通知を実装すると当日だけ不安定な感覚で通知される。
|
test
CHANGED
File without changes
|
1
情報の変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
### 実現したいこと
|
2
2
|
|
3
3
|
|
4
|
-
- [ ] 通知
|
4
|
+
- [ ] 通知機能が正常に動作するようにする
|
5
5
|
|
6
6
|
### 前提
|
7
7
|
|
8
8
|
kotlinで通知機能を取り入れたアプリを作っています。
|
9
|
-
通知の繰り返し機能を実装すると設定した時間に
|
9
|
+
通知の繰り返し機能を実装すると設定した時間に翌日以降はほぼ正確に通知されるようになりましたが、当日はなぜか12分後や8分後と不安定になってしまいました。
|
10
10
|
|
11
11
|
### 発生している問題・エラーメッセージ
|
12
12
|
|
@@ -168,7 +168,7 @@
|
|
168
168
|
|
169
169
|
|
170
170
|
### 試したこと
|
171
|
-
|
171
|
+
繰り返しの設定のコードを消すと当日は正確に通知されます。
|
172
172
|
|
173
173
|
|
174
174
|
### 補足情報(FW/ツールのバージョンなど)
|