문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

I would say for exposure purposes, why not have a small, i mean very small, advertisement for your paid app? Or have a button to select "Get full version". This way if your "free" app is linked to your "paid" application you might lose an audience.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top