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

Can android lollipop be upgraded to marshmallow?

0 Answers  


Why do we use gridlayout in android

0 Answers  


what is the difference between this and getapplicationcontext in android?

0 Answers  


Explain IP datagram, Fragmentation and MTU

1 Answers  


what are the other notifications in android?

0 Answers  






What’s wake locks?

0 Answers  


How do I turn off, or reboot Android?

1 Answers  


Where are permissions declared?

0 Answers  


Features of Android:

1 Answers  


What is sensormanager?

0 Answers  


Are the android apps first scrutinised by google?

0 Answers  


What are the storage facilities available on android?

0 Answers  


Categories