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

Post New Answer

More Android OS Interview Questions

What are the different approaches that are required to share the objects?

0 Answers  


What is the relationship between the life cycle of an asynctask and an activity?

0 Answers  


What is an explicit intent?

0 Answers  


What is sdk stand for?

0 Answers  


What is the core work of intent filter?

0 Answers  






What are the other notifications?

0 Answers  


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?

0 Answers  


How many ways data stored in Android?

1 Answers   UGC Corporation,


What main components of android application?

0 Answers  


What were your initial impressions of Android development?

1 Answers  


What is android 9 called?

0 Answers  


Categories