Android - How can I link my free app to the Pro version
android, google-play
Solution
Create a view somewhere that will advertise your Pro version. Perhaps it's an ImageView, perhaps it's a Button or a link, whatever it might be, just make sure it's something the user can click.
Then do the following:
view.setOnClickListener( new OnClickListener(){
public void onClick(View v) {
startActivity( new Intent( Intent.ACTION_VIEW, Uri.parse("market://search?q=pname:XXX") ) );
}
}
... where XXX is the package name for your Pro application, as specified in your AndroidManifest.xml.
When the user clicks the view, Android will launch your Pro application's page on the market.
Problem
How can I link my free android application to the "paid" version so a user of the free one can instantly click on the link and be taken to the android market page for the full version.