I am trying to publish app for the first time.

I want to put a share button in my app, when the user clicks it will open up all the messaging apps, and can share the link to others, when the other person clicks on it, it will take to my app in the google play store.

I have looked through [here](https://stackoverflow.com/q/9948373/2508414), I think this is the way I need to do.

Problem is how do I get the link for my app which is not yet publish in google play store.

Do I need to publish my app first without the SHARE option and then get the market link, like mentioned [here](http://developer.android.com/intl/es/distribute/tools/promote/linking.html), I am thinking the link might be like this **market://details?id=package\_name**, and then release an update with the SHARE option?