在 AppStore 或 PlayStore 中打开应用程序安装页面
Open app installation page in AppStore or PlayStore
我在 PlayStore (android) 和 AppStore (iOS) 中有一个付费应用程序。我正在开发一个免费应用程序,它具有与付费应用程序类似的功能,但底部有广告横幅,播放时有时间限制。在这个免费应用程序中,有一个按钮允许用户 upgrade/install 付费应用程序,当用户单击此按钮时,如果免费应用程序正在 Android 设备上播放,将显示 PlayStore 上的应用程序页面.否则,将显示 AppStore 上的应用程序页面(免费应用程序正在 iOS 设备上播放)。我如何在 CodenameOne 中执行此操作?
您将需要使用:
Display.getInstance().execute(url);
对于 Android,请在此处查看如何构建 url:
How to open the Google Play Store directly from my Android application?
对于 iOS,请在此处查看如何构建 url:
How to link to apps on the app store
我在 PlayStore (android) 和 AppStore (iOS) 中有一个付费应用程序。我正在开发一个免费应用程序,它具有与付费应用程序类似的功能,但底部有广告横幅,播放时有时间限制。在这个免费应用程序中,有一个按钮允许用户 upgrade/install 付费应用程序,当用户单击此按钮时,如果免费应用程序正在 Android 设备上播放,将显示 PlayStore 上的应用程序页面.否则,将显示 AppStore 上的应用程序页面(免费应用程序正在 iOS 设备上播放)。我如何在 CodenameOne 中执行此操作?
您将需要使用:
Display.getInstance().execute(url);
对于 Android,请在此处查看如何构建 url: How to open the Google Play Store directly from my Android application?
对于 iOS,请在此处查看如何构建 url: How to link to apps on the app store