728x90
해당현상
해결책: Manifest.xml의 <intent-filter> 사이에 아래의 코드 추가
<action android:name="android.intent.action.VIEW" />
<예시>
- 기존
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<application
android:name="경로.MyApp"
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:largeHeap="true">
<activity
android:name="경로.LogInActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
|
cs |
- 변경
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<application
android:name="경로.MyApp"
android:allowBackup="true"
android:hardwareAccelerated="true"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:largeHeap="true">
<activity
android:name="경로.LogInActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:theme="@style/AppTheme.NoActionBar"
android:windowSoftInputMode="stateHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
|
cs |
Reference
728x90
'Dev > Android' 카테고리의 다른 글
[Android] SHA-1 fingerprint of keystore certificate (0) | 2019.10.16 |
---|---|
[Android] Room 라이브러리 사용법 (Android Architecture Component) (0) | 2019.10.11 |
[Android] LocationManager 사용법 (0) | 2019.10.02 |
[Android] SurfaceView - surfaceCreated, surfaceDestoryed (0) | 2019.09.26 |
[해석] 모듈식 안드로이드 앱 아키텍쳐를 구축하라 (1) (Google I/O'19) (0) | 2019.09.09 |