2017-12-24 11 views

답변

0

Android의 의도는 이름에서 알 수있는 것처럼 "의도"를 표현하여 다른 구성 요소에 대한 작업을 수행하는 데 사용됩니다. 의도 한 일반적인 사용 개체가 시작 및 열리는 활동의 정보 (컨텍스트)가 포함되어 startActivity를 (intentObject), 그것을 함께 사용하는 것입니다, 아래 참조 :

Intent intent = new Intent(context, MyActivityB);//pass the information(contexts of the current activity and the activity I want to open). 
startActivity(intent);//Use startActivity method to start the activity defined in the object intent. 

기타 작업은 다음과 같습니다에 응용 프로그램을 여는 중 이메일을 보내거나 소셜 미디어 등을 엽니 다.