質問編集履歴

3

URL追記

2017/07/17 00:45

投稿

sakuma_yujin
sakuma_yujin

スコア27

test CHANGED
File without changes
test CHANGED
@@ -276,4 +276,4 @@
276
276
 
277
277
  ```
278
278
 
279
- 入らなかったため
279
+ 入らなかったためエラーログは[こちら](https://teratail.com/questions/84534?modal=q-comp)に新たに投稿させていただきました

2

修正依頼の修正、情報追加

2017/07/17 00:45

投稿

sakuma_yujin
sakuma_yujin

スコア27

test CHANGED
File without changes
test CHANGED
@@ -1,3 +1,279 @@
1
1
  androidstudioでアプリを作り実行しようとしているのですが再生ボタンを押した後起動した瞬間にアプリが落ちてしまいます
2
2
 
3
3
  原因など同事例に心当たりがある方、解決方法がわかる方いましたら回答よろしくお願いします
4
+
5
+
6
+
7
+ ↓Manifestファイルです
8
+
9
+
10
+
11
+ ```ここに言語を入力
12
+
13
+ <?xml version="1.0" encoding="utf-8"?>
14
+
15
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
16
+
17
+ xmlns:tools="http://schemas.android.com/tools"
18
+
19
+ package="com.example.syoribuuser.firstfragment">
20
+
21
+
22
+
23
+ <uses-sdk
24
+
25
+ android:minSdkVersion="INSERT_YOUR_DESIRED_minSdkVersion_HERE"
26
+
27
+ tools:overrideLibrary="android.support.test.uiautomator.v15"/>
28
+
29
+
30
+
31
+ <uses-permission android:name="android.permission.INTERNET" />
32
+
33
+ <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
34
+
35
+ <uses-permission android:name="android.permission.READ_PHONE_STATE" />
36
+
37
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
38
+
39
+ <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
40
+
41
+ <uses-permission android:name="android.permission.GET_ACCOUNTS" />
42
+
43
+ <uses-permission android:name="android.permission.USE_CREDENTIALS" />
44
+
45
+
46
+
47
+
48
+
49
+ <application
50
+
51
+ android:allowBackup="true"
52
+
53
+ android:icon="@mipmap/ic_launcher"
54
+
55
+ android:label="@string/app_name"
56
+
57
+ android:roundIcon="@mipmap/ic_launcher_round"
58
+
59
+ android:theme="@style/AppTheme">
60
+
61
+ <meta-data android:name="com.google.android.gms.version"
62
+
63
+ android:value="@integer/google_play_services_version" />
64
+
65
+
66
+
67
+
68
+
69
+ <activity android:name="com.example.syoribuuser.firstfragment$Management.Manager">
70
+
71
+ <intent-filter>
72
+
73
+ <action android:name="android.intent.action.MAIN" />
74
+
75
+ <category android:name="android.intent.category.LAUNCHER" />
76
+
77
+ </intent-filter>
78
+
79
+ </activity>
80
+
81
+
82
+
83
+ <activity android:name="com.example.syoribuuser.firstfragment$Firstin.MainActivity" />
84
+
85
+ <activity android:name="com.example.syoribuuser.firstfragment$Firstin.First" />
86
+
87
+ <activity android:name="com.example.syoribuuser.firstfragment$Firstin.Third" />
88
+
89
+ <activity android:name="com.example.syoribuuser.firstfragment$Firstin.Second" />
90
+
91
+ <activity android:name="com.example.syoribuuser.firstfragment$Firstin.Fourth" />
92
+
93
+ <activity android:name="com.example.syoribuuser.firstfragment$Firstin.Fifth" />
94
+
95
+ <activity android:name="com.example.syoribuuser.firstfragment$Firstin.Sixth" />
96
+
97
+ <activity android:name=".Setting" />
98
+
99
+ <activity android:name="com.example.syoribuuser.firstfragment$Mainpage.MyFragmentStatePagerAdapter" />
100
+
101
+ <activity android:name="com.example.syoribuuser.firstfragment$Mainpage.Fragment0" />
102
+
103
+ <activity android:name="com.example.syoribuuser.firstfragment$Mainpage.Fragment1" />
104
+
105
+ <activity android:name="com.example.syoribuuser.firstfragment$Mainpage.Fragment2" />
106
+
107
+ <activity
108
+
109
+ android:name="com.example.syoribuuser.firstfragment$Twitter.Shisaku"
110
+
111
+ android:label="Shisaku"
112
+
113
+ android:theme="@android:style/Theme.Holo.Light.DarkActionBar"
114
+
115
+ />
116
+
117
+ <activity
118
+
119
+ android:name="com.example.syoribuuser.firstfragment$Twitter.TwitterOAuthActivity"
120
+
121
+ android:launchMode="singleTask">
122
+
123
+ <intent-filter>
124
+
125
+ <action android:name="android.intent.action.VIEW" />
126
+
127
+
128
+
129
+ <category android:name="android.intent.category.DEFAULT" />
130
+
131
+ <category android:name="android.intent.category.BROWSABLE" />
132
+
133
+
134
+
135
+ <data
136
+
137
+ android:host="twitter"
138
+
139
+ android:scheme="miraikikakusya" />
140
+
141
+ </intent-filter>
142
+
143
+ </activity>
144
+
145
+ <activity
146
+
147
+ android:name="com.example.syoribuuser.firstfragment$Twitter.TweetActivity"
148
+
149
+ android:windowSoftInputMode="adjustResize" />
150
+
151
+ <activity android:name="com.example.syoribuuser.firstfragment$Twitter.FirstTwitter" />
152
+
153
+ <activity android:name="com.example.syoribuuser.firstfragment$Mainpage.Main2Activity" />
154
+
155
+
156
+
157
+
158
+
159
+ <activity
160
+
161
+ android:name=".GoogleIn" >
162
+
163
+ <intent-filter>
164
+
165
+ <category android:name="android.intent.category.DEFAULT" />
166
+
167
+ </intent-filter>
168
+
169
+
170
+
171
+ </activity>
172
+
173
+
174
+
175
+
176
+
177
+ </application>
178
+
179
+
180
+
181
+ </manifest>
182
+
183
+ ```
184
+
185
+
186
+
187
+
188
+
189
+ ↓一番最初に呼び出されるコードです。ここで最初の起動かどうかにより飛ばされる場所が変わります。ですがIntent以前にエラーが起こっているのでここ以外のエラーかと思われます
190
+
191
+
192
+
193
+ ```java
194
+
195
+ package com.example.syoribuuser.firstfragment.Management;
196
+
197
+
198
+
199
+
200
+
201
+ import android.content.Intent;
202
+
203
+ import android.os.Bundle;
204
+
205
+ import android.support.v4.app.AppLaunchChecker;
206
+
207
+ import android.support.v7.app.AppCompatActivity;
208
+
209
+ import android.util.Log;
210
+
211
+
212
+
213
+ import com.example.syoribuuser.firstfragment.Firstin.MainActivity;
214
+
215
+ import com.example.syoribuuser.firstfragment.Mainpage.Main2Activity;
216
+
217
+ import com.example.syoribuuser.firstfragment.R;
218
+
219
+
220
+
221
+ public class Manager extends AppCompatActivity {
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+ @Override
230
+
231
+ protected void onCreate(Bundle savedInstanceState) {
232
+
233
+ super.onCreate(savedInstanceState);
234
+
235
+ setContentView(R.layout.activity_manager);
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+ if(AppLaunchChecker.hasStartedFromLauncher(this)){
244
+
245
+
246
+
247
+ Intent intent = new Intent(this, Main2Activity.class);
248
+
249
+ startActivityForResult(intent, 0);
250
+
251
+ } else {
252
+
253
+ Intent intent = new Intent(this, Setting.class);
254
+
255
+ startActivityForResult(intent, 0);
256
+
257
+ }
258
+
259
+
260
+
261
+ AppLaunchChecker.onActivityCreate(this);
262
+
263
+
264
+
265
+
266
+
267
+ }
268
+
269
+
270
+
271
+ }
272
+
273
+
274
+
275
+
276
+
277
+ ```
278
+
279
+ 入らなかったため

1

内容変えました

2017/07/17 00:41

投稿

sakuma_yujin
sakuma_yujin

スコア27

test CHANGED
@@ -1 +1 @@
1
- アプリのデバッグでアプリが起動しない
1
+ アプリ起動の瞬間に落ちる
test CHANGED
@@ -1,7 +1,3 @@
1
- androidstudioでアプリを作り実行しようとしているのですが再生ボタンを押した後インストールまでは正常に終わるのですがエミュレータ、実機上で自動的に起動しません
1
+ androidstudioでアプリを作り実行しようとしているのですが再生ボタンを押した後起動した瞬間にアプリが落ちてしいます
2
-
3
- 他のアプリは正常に起動するので実機、エミュレータ、AndroidStudio側の問題ではないと思われます。
4
-
5
-
6
2
 
7
3
  原因など同事例に心当たりがある方、解決方法がわかる方いましたら回答よろしくお願いします