일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- DFS
- 동적 계획법
- 백준
- LeetCode
- Data Structure
- 자바
- Python
- Algorithm
- 안드로이드
- BFS
- 다이나믹 프로그래밍
- CS
- network
- 그레이들
- frontend
- 알고리즘
- react
- Redux
- TypeScript
- VIM
- 프로그래머스
- java
- Javascript
- DP
- Graph
- vscode
- Database
- git
- 리트코드
- db
Archives
- Today
- Total
목록activty (1)
늘 겸손하게

안녕하세요 besforyou입니다 이번 글에서는 activity 간 데이터를 주고받는 방법에 대하여 소개하겠습니다 Activity 호출과 함께 데이터 전달 MainActivity에서 아래와 같은 데이터가 있다고 가정합시다. 1 String data_to_send = "Hello world! I want to be rich!"; cs secondActivity라는 액티비티를 생성하면서 위의 데이터를 전달해야 한다면 1 Intent intent = new Intent(MainActivity.this, secondActivity.class); cs 우선 Intent를 생성하고 1 intent.putExtra("data", data_to_send); cs intent의 putExtra 메소드로 전달할 데이터의 ..
Programming/Android
2021. 8. 5. 17:40