我的免费应用程序(尚未上市)有一个按钮,应该引导用户访问付费应用程序......为此,我使用:
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse("market://details?id=com.android.example"));
startActivity(intent);
问题是我应该用什么来代替 com.android.example?这是我第一次创建项目时制作的包的名称吗?
最佳答案
是的,Market 使用的 id 与 AndroidManifest.xml 文件中指定的包名称相同:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.etc.etc.yourpackagename">
...
</manifest>
关于java - 关于上传和应用程序以及引用的一般问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6634154/