Sunday, 8 September 2013

launch an installed app with my own by pressing a button

launch an installed app with my own by pressing a button


How can I launch an app (3rd party app) that is installed on my phone with
my own app. I'm having several buttons in my app and when one is pressed
an app that is installed should open, for example Bank of America app. (I
want to create like a customized menu). I totally new to android
programming, but could it work like this? What URI string could I use or
how do I figure it out? Thanks a lot!

Button b_boa = (Button) findViewById(R.id.button_boa);
b_boa.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent open_boa = new Intent(Intent.ACTION_VIEW,
Uri.parse("_________"));
startActivity(open_boa);
}
});

No comments:

Post a Comment