안드로이드 폰에서 '공유'버튼을 누르면 아래에서 슬라이드 돼서 올라오는 앱 리스트 화면이 있다.
내가 열심히 만든 앱도 여기에 뜨면 기분이 참 좋을 것 같은데...!!
이건 AndroidMAnifest.xml 파일에 <intent-filter>를 추가해주면 된다.
How to make my Android app appear in the share list of another specific app
this is in my manifes...
stackoverflow.com
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/*" />
</intent-filter>
이런 식이다.
참고로 저 mimeType의 종류는 아래 블로그에 잘 정리되어 있으니 확인해 보시길.
https://devbible.tistory.com/160
[Android] MIME Type 리스트
MIME-Type Description File Extension application/acad AutoCAD drawing files dwg application/clariscad ClarisCAD files ccad application/dxf DXF (AutoCAD) dxf application/msaccess Microsoft Access fil..
devbible.tistory.com
이렇게 intent filter로 넘겨받은 데이터를 어떻게 처리할지는 또 다른 문제...이긴 하지만 일단 여기까지.
'Web & PWA' 카테고리의 다른 글
Firebase Auth 와 Angular Guard 함께 사용하기 (0) | 2022.12.28 |
---|---|
버튼 클릭 시 키보드 고정 (Ionic Angular) (0) | 2021.08.18 |
TEXTAREA Autosizing Scroll Jumping 버그 해결 (0) | 2021.08.17 |
ios Safe Area : 앱 컨텐츠가 아이폰 노치와 겹친다면!!!!! (0) | 2021.04.19 |