Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- analizer
- IN
- sklearn
- numpy
- len()
- wcss
- 최댓값
- pandas
- 최솟값
- insert()
- data
- string
- 분류 결과표
- del
- 덴드로그램
- count()
- dendrogram
- Python
- DataFrame
- hierarchical_clustering
- Machine Learning
- nan
- append()
- Dictionary
- function
- DataAccess
- 반복문
- elbow method
- list
- matplotlib
Archives
- Today
- Total
개발공부
[Android] 네트워크 통신을 위한 AndroidManifest.xml 파일 설정법 본문
android:targetSandboxVersion="1"
이 앱에서 사용할 타겟 샌드박스입니다. 샌드박스 버전 번호가 높을수록 보안 수준이 높습니다. 기본값은 1이며 2로도 설정할 수 있습니다. 이 속성을 2로 설정하면 앱이 다른 SELinux 샌드박스로 전환됩니다.
<uses-permission android:name="android.permission.INTERNET"/>
인터넷 접속권한을 얻습니다.
android:usesCleartextTraffic="true"
android:usesCleartextTraffic를 true로 설정하시면 모든 Http 주소에 접근할 수 있습니다.
적용하면 아래와 같습니다.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.fullspringwater.jsonparsingapp"
android:targetSandboxVersion="1">
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:usesCleartextTraffic="true"
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.JsonParsingApp"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>'Android' 카테고리의 다른 글
| [Android] AlertDialog 사용법, 백 버튼 이벤트 예제 (0) | 2022.07.12 |
|---|---|
| [Android] CountDownTimer 사용법 (0) | 2022.07.12 |
| [Android] 네트워크 통신을 위한 Volley 예제, 타임아웃 설정, JSON 데이터 파싱 (0) | 2022.07.12 |
| [Android] 액티비티 라이프 사이클 (LifeCycle) (0) | 2022.07.12 |
| [Android Studio] TextView의 setText 함수 특징 (문자열만 가능) (0) | 2022.07.08 |