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 most recent News From Cyprus

Cyprusnews is an online news site that provides up-to-the-minute protection and is committed to self-reliance,…

7 hours ago

Executive CV Writing Services

Executive CV writing services specialize in crafting well-written documents that attract recruiters' interest. They also…

8 hours ago

Understanding the Costs of Earning a Commercial Pilot License

Introduction: Overview of Becoming a Commercial Pilot Becoming a commercial pilot is not just about…

9 hours ago

The Best Forex Trading Platform For Beginners

Beginners looking to start trading forex should choose a platform with plenty of educational materials,…

15 hours ago

Choosing the Right Epoxy Flooring Color for Your Toledo Home

When it comes to transforming your home with epoxy flooring, one of the most exciting…

18 hours ago

Corporate Training – A Rewarding Career

Corporate training gives employees everything they need to know to thrive on the job. It…

1 day ago