-4

I am creating application like hotel management. i work is good but i want one main facility in my application. I am implementing a one button when am click on this it will fetch my contact list and when i am selecting a contact from contact list. I want to send message using Internet. In this message i want to Refer my contact to install my application. But how i can implement in my application i really don't know. So please if anyone have code like this or any reference then please share with me. Thank You in advance.

1 Answers1

0

I recently developed this type of application.

Try this.

Part 1: to send / share the message

Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
// carefully observe the package name with `referrer` query param.
sendIntent.putExtra(Intent.EXTRA_TEXT, "Your message goes here. Append this https://play.google.com/store/apps/details?id=org.shreemeera.apps.petals&referrer=pramod.waghmare");
sendIntent.setType("text/plain");
startActivity(Intent.createChooser(sendIntent,"Share your app name"));

Part 2: Know who refer to install your application Refer : Get referrer after installing app from Android Market

Community
  • 1
  • 1
Pramod Waghmare
  • 1,208
  • 11
  • 19