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
Cyprusnews is an online news site that provides up-to-the-minute protection and is committed to self-reliance,…
Executive CV writing services specialize in crafting well-written documents that attract recruiters' interest. They also…
Introduction: Overview of Becoming a Commercial Pilot Becoming a commercial pilot is not just about…
Beginners looking to start trading forex should choose a platform with plenty of educational materials,…
When it comes to transforming your home with epoxy flooring, one of the most exciting…
Corporate training gives employees everything they need to know to thrive on the job. It…