In an attempt to promote my apps a little this month, I've adding a couple of things to one of my apps. I want to encourage users to rate the app in the market. I also want to let them easily share the app with others.
Accomplishing this is very simple and only requires a few lines of code.
First the code to open the market page so users can rate and comment:
Intent rateIntent = new Intnet(Intent.ACTION_VIEW);
I created a place in the settings screen and placed the above code in the onClick. I also show a dialog after a user completes their 3rd activity asking them if they would like to rate the app. I figure by then the users has used the app enough to give helpful feedback.
Next I created a way to let the user share the app with others. I use android's built in ACTION_SEND intent that the user should be familiar with since its the default way of sharing everything in android.
Intent sareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_TEXT,"Check out this app! https://market.android.com/details?id=your.application.package.name");
shareIntent.putExtra(Intent.EXTRA_SUBJECT,"Check out this app!");
I created a place in the settings screen just like above. I also show a dialog after the user completes the whole 30 day challenge and ask them if they would like to share or rate application.
Maybe this will help the app get more ratings and more downloads. We will see. I will put the same thing in my Bealse Street Music Fest app once I update it for next year's festival.