What is the purpose of getIntent () method?

What is the purpose of getIntent () method?
Answer
you can retrieve this data using getIntent in the new activity: Intent intent = getIntent(); intent. getExtra(“someKey”) … So, it’s not for handling returning data from an Activity, like onActivityResult, but it’s
for passing data to a new Activity.
 

Tìm kiếm

Back
Top