Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. This following code will create (Explicit/Implicit) Intent (sender/receiver)

ID: 3891438 • Letter: 1

Question

1. This following code will create (Explicit/Implicit) Intent (sender/receiver) activity java file and should included in Intent intent-new Intent(this, SecondActivity.class): intent.putExtraf"myValue".5) startActivitylintent); 2. This code will create (Explicit/Implicit) Intent Intent intentenew Intent(Intent.ACTION DIAL); intent.setData(Uri.parse("tel:0123456789") startActivitylintent) 3. Write code to create activity 4, To pass some string 5. To start activity … 6. Write intent filter to handle the following actions: ACTION_DIAL ACTION SENDTO ACTION SETTINGS 7. Create intents to perform the the following actions: ACTION DIAL ACTION SENDTO ACTION SETTINGS

Explanation / Answer

1) The following code create explicit intent and should include in receiver activity java file.

Explanation:-

---------------------------------------------------------------

2) The code will create implicit intent .

Explanation:-

-------------------------------------

3)Write a code to create a activity

<activity android:name=".activityName"></activity>

4) To pass some stringB and 5 to start activity

Intent intent = new Intent(this, activity2.class);
intent.putExtra("message", message);
startActivity(intent);

-------------------------------------

6) Write intent filter

<intent-filter>
<action android:name="android.intent.action.CALL_DIAL" />              
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.DEFAULT" />
<data android:scheme="dialtel" />
</intent-filter>

<intent-filter>
        <action android:name="android.intent.action.SEND"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <data android:mimeType="text"/>
</intent-filter>

<intent-filter>
        <action android:name="android.intent.action.SETTINGS" />
        <category android:name="android.intent.category.DEFAULT" />
<intent-filter>