简体   繁体   中英

Android - How can I link my free app to the Pro version

如何将我的免费Android应用程序链接到“付费”版本,以便免费的用户可以立即点击该链接并被带到完整版的Android市场页面。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM