Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting One Android App from Another App

What is the best way to start one android app from another app? Is it to send custom broadcast event and have broadcast receiver of other app catch this event and do a start activity on something? Thanks

like image 943
Androider Avatar asked Dec 06 '25 13:12

Androider


1 Answers

Use an Intent: http://developer.android.com/guide/topics/intents/intents-filters.html

Use Context.startActivity() to just launch, or Activity.startActivityForResult() if you want to get a result when it's done.

If you are tightly coupled with the other application, you can use an explicit Intent. Otherwise, send an implicit Intent.

like image 144
Sparky Avatar answered Dec 08 '25 03:12

Sparky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!