Explain me what is the difference between an implicit intent and explicit intent?
Submitted by: MuhammadThere are two types of Intent implicit and explicit intent, let see some more difference between them.
Implicit: Implicit intent is when you call system default intent like send email, send SMS, dial number.
For example,
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, textMessage);
sendIntent.setType("text/plain")
startactivity(sendIntent);
Explicit: Explicit intent when you call you're on application activity from one activity to another
For example, first activity to second activity:
Intent intent = new Intent(first.this, second.class);
startactivity(intent);
Submitted by: Muhammad
Implicit: Implicit intent is when you call system default intent like send email, send SMS, dial number.
For example,
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, textMessage);
sendIntent.setType("text/plain")
startactivity(sendIntent);
Explicit: Explicit intent when you call you're on application activity from one activity to another
For example, first activity to second activity:
Intent intent = new Intent(first.this, second.class);
startactivity(intent);
Submitted by: Muhammad
Read Online Team Leader Android Developer Job Interview Questions And Answers
Top Team Leader Android Developer Questions
☺ | Tell us where will you declare your activity so the system can access it? |
☺ | Tell me where can you define the icon for your Activity? |
☺ | Tell us how do you find any view element into your program? |
☺ | How to perform actions that are provided by other application e.g. sending email? |
☺ | Tell me what is An Intent? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |