EXP 18
EXP 18
ACTION_VIEW,uri);
startActivity(i);
<?xml version="1.0" encoding="utf-8"?> }
<LinearLayout });
xmlns:android="http://schemas.android.com/apk/res/ }
android" }
xmlns:app="http://schemas.android.com/apk/res-
auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="wrap_content"
android:orientation="vertical"
android:layout_height="wrap_content"
tools:context=".MainActivity">
<EditText
android:id="@+id/editText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:ems="10"
android:inputType="textPersonName"
android:text=" " />
<Button
android:id="@+id/button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="Navigate" />
</LinearLayout>
package com.example.navigate;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
<EditText
android:id="@+id/editText"
android:layout_width="match_parent"
android:layout_height="wrap_content" AndroidManifest.xml
android:ems="10" <?xml version="1.0" encoding="utf-8"?>
android:inputType="phone" /> <manifest
xmlns:android="http://schemas.android.com/apk/res/
<Button android"
android:id="@+id/button" package="com.example.dialer">
android:layout_width="match_parent" <uses-permission
android:layout_height="wrap_content" android:name="android.permission.CALL_PHONE"/>
android:text="Button" /> <application
android:allowBackup="true"
</LinearLayout> android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
<EditText
android:id="@+id/editText2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textPersonName"
android:hint="Enter Number"/>
<TableRow android:id="@+id/tableRow1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_marginTop="15dp" >
<Button
android:id="@+id/button"
android:layout_marginRight="25dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Factorial" />
<Button
android:id="@+id/button2"
android:layout_marginLeft="25dp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Clear" />
</TableRow>
</LinearLayout>
package com.example.factorial;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
<Button
android:id="@+id/button4"
}