Under what condition could the code sample below crash your application? How would you modify the code to avoid this potential problem? Explain your answer.
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, textMessage);
sendIntent.setType(HTTP.PLAIN_TEXT_TYPE); // "text/plain" MIME type
startActivity(sendIntent);
No Answer is Posted For this Question
Be the First to Post Answer
What are the different approaches that are required to share the objects?
What is the relationship between the life cycle of an asynctask and an activity?
What is an explicit intent?
What is sdk stand for?
What is the core work of intent filter?
What are the other notifications?
What is an activity in Android?
0 Answers TryTechnicals Pvt Ltd,
Can you list and explain the four java classes related to using sensors on the android platform?
How many ways data stored in Android?
What main components of android application?
What were your initial impressions of Android development?
What is android 9 called?