일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- HMI
- STS
- Linux
- pythoncom37.dll
- Python
- Anaconda
- 원한
- checkbox
- build
- DataTables
- 파이썬
- 명령어
- Custom
- ORA-28002
- 말라키
- 맥코트
- LOG
- JQuery
- geckodriver
- 가상환경
- 분노
- error
- Eclipse
- 리눅스
- SCADA
Archives
- Today
- Total
2010년 5월 1일, 2막
[Android] WebView에서 local file 접근 본문
1. assets 폴더 생성 : /app/src/main/assets/ 생성
2. assets/ 디렉토리 접근 : "file:///android_asset/" 식으로 접근
ex).
web_view.loadUrl("file:///android_asset/sample.html")
mWebView.loadUrl("file:///android_asset/www/index.html");
출처 : [Android] WebView에서 local file 접근하기(feat. Android Assets) :: 준비된 개발자 (tistory.com)
[Android] WebView에서 local file 접근하기(feat. Android Assets)
안드로이드에서 WebView를 사용하면 별도의 서버에서 호스팅 되고 있는 웹 컨텐츠를 보여줄 수도 있고, 별도의 웹 서버를 두지 않고 local static file(html, css, js)만을 사용하여 웹 페이지를 제공할 수
readystory.tistory.com
'Computer > Tips' 카테고리의 다른 글
[엑셀] 최대값, 최소값의 인덱스 찾기 (0) | 2024.05.22 |
---|---|
[Android] 인터넷 연결 안될 때 (0) | 2023.05.25 |
Ubuntu 22.04 in VirtualBox (0) | 2023.03.02 |
폴더 내 파일 리스트 추출 in 윈도우 cmd (0) | 2022.10.19 |
WSL2에서 systemctl 사용 (0) | 2022.08.03 |