Categories: ANDROID APP

How one can Open/Begin one other App reminiscent of gmail, whatsapp, SMS, Fb out of your {custom} Android App?



This video reveals the steps to start out every other App out of your Android App utilizing the intent mechanism. To develop this characteristic, it is very important know the precise bundle title of the App being opened.

The supply code of this App will be discovered at:
https://programmerworld.co/android/how-to-open-start-another-app-such-as-gmail-whatsapp-sms-facebook-from-your-custom-android-app/

We hope you want this video. For any question, strategies or appreciations we can be glad to listen to from you at: programmerworld1990@gmail.com or go to us at: https://programmerworld.co

bundle com.instance.myopenfunctionapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.content material.Intent;
import android.os.Bundle;
import android.supplier.Telephony;
import android.view.View;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
tremendous.onCreate(savedInstanceState);
setContentView(R.structure.activity_main);
}

public void gmailButton(View view){
Intent intent = getPackageManager().getLaunchIntentForPackage(“com.google.android.gm”);
if(intent != null){
startActivity(intent);
}
}

public void whatsappbutton(View view){
Intent intent = getPackageManager().getLaunchIntentForPackage(“com.whatsapp”);
if(intent != null){
startActivity(intent);
}
}

public void FacebookButton(View view){
Intent intent = getPackageManager().getLaunchIntentForPackage(“com.fb.katana”);
if(intent != null){
startActivity(intent);
}
}

public void smsButton(View view){
Intent intent = getPackageManager().getLaunchIntentForPackage(Telephony.Sms.getDefaultSmsPackage(this));
if(intent != null){
startActivity(intent);
}
}
}

source

linda

Recent Posts

The Ultimate Guide to YouTube to MP4 Converters

A YouTube to MP4 conversion software is a software or on-the-web tool designed to download…

2 days ago

Unox Equipment: A Chef’s Companion

Cooking is an art, and each artist needs the right equipment to bring their masterpiece…

2 days ago

Comparing Electric Scooters: Features and Performance

Hey there, scooter enthusiast! Whether you're a seasoned rider or just thinking about zipping around…

2 days ago

Discovering Affordable Massage Services throughout Busan

Hey there, massage fans! If you're in Busan and also searching for a way to…

3 days ago

Guide to Aroma Massage Services in Busan

Hey there! If you're planning a trip to Busan, or if you're already here and…

3 days ago

Is Instant Famous Worth It? A Detailed Review of Their Follower Services

Are you looking for ways to get more followers on your social media accounts to…

3 days ago