有没有办法可以从应用程序(活动)中请求用户对应用程序进行评级/审核/评论.
我可以想到的一个选择是在Android应用程序中创建一个链接,用户可以在其中输入评论/评级/评论.我正在寻找的是允许用户在不离开应用程序的情况下执行此操作.
此外,我需要找出用户是否已经审核过.(在哪种情况下,我可以选择将链接更改为"修改评论"而不是"添加评论").
这可能吗?[更新]
或者,如果我重定向到市场页面,是否可以将用户直接带到评论部分(不是页面顶部)
[更新]还有更多答案吗?
我使用Eclipse的导出向导签署了该应用程序.当我发布这个时,用户开始抱怨应用程序的行为不正确.(基本上,APK没有必要的图像和音频,因此显示不正确的行为).
我尝试过的有关应用程序和签名的一些信息.
任何帮助表示赞赏.该应用程序已经上市,因此希望尽量减少不利影响.
删除了LVL.还是一样的错误
尝试评论LVL代码并直接调用intent.还是一样的错误.通过评论LVL,Lite和完整版的代码库是相同的.只有资源数量不同.完整版具有Lite Version的所有资源+约5倍的资源.
更新 这是我暂时修复它的方式.我删除了库项目,并将所有类和资源移动到Implementation Project(完整版).现在它正在运作.
如上所述,这只是一个临时解决方案.我仍然需要知道如何用库来解决这个问题.否则我将不得不创建大量的代码重复.
我知道这问题很少见.他们都没有清楚解决方案.让我解释一下这个问题.
笔记.
让我知道任何解决方案.如果你有与Android 2.3.3模拟器类似的问题,也请告诉我.
[更新] -snippets
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
...
img_topLeft = (ImageView) findViewById(R.id.Img_Alph_Q_TopLeft);
img_topRight = (ImageView) findViewById(R.id.Img_Alph_Q_TopRight);
img_bottomLeft = (ImageView) findViewById(R.id.Img_Alph_Q_BottomLeft);
img_bottomRight = (ImageView) findViewById(R.id.Img_Alph_Q_BottomRight);
...
}
protected void onResume() {
super.onResume();
img_topLeft.setImageResource(R.drawable.xxx);
img_topRight.setImageResource(R.drawable.xxx);
img_bottomLeft.setImageResource(R.drawable.xxx);
img_bottomRight.setImageResource(R.drawable.xxx);
...
}
Run Code Online (Sandbox Code Playgroud)
03-21 08:59:17.362:ERROR/dalvikvm-heap(5883):4320000字节的外部分配对于此过程来说太大了.03-21 08:59:17.412:ERROR/GraphicsJNI(5883):VM不允许我们分配4320000字节03-21 08:59:17.432:ERROR/AndroidRuntime(5883):致命异常:主03-21 08: 59:17.432:ERROR/AndroidRuntime(5883):java.lang.OutOfMemoryError:位图大小超过VM预算03-21 08:59:17.432:ERROR/AndroidRuntime(5883):at android.graphics.Bitmap.nativeCreate(Native Method) 03-21 08:59:17.432:ERROR/AndroidRuntime(5883):在android.graphics.Bitmap.createBitmap(Bitmap.java:477)03-21 08:59:17.432:ERROR/AndroidRuntime(5883):在android. graphics.Bitmap.createBitmap(Bitmap.java:444)03-21 08:59:17.432:ERROR/AndroidRuntime(5883):在android.graphics.Bitmap.createScaledBitmap(Bitmap.java:349)03-21 08:59: 17.432:ERROR/AndroidRuntime(5883):在android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:498)03-21 08:59:17.432:ERROR/AndroidRuntime(5883):在android.graphics.BitmapFactory.decodeStream(BitmapFactory) .java:473)03-21 08:59:17.432:ERROR/AndroidRuntime(5883):在android.graphics.BitmapFact ory.decodeResourceStream(BitmapFactory.java:336)03-21 08:59:17.432:ERROR/AndroidRuntime(5883):在android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:697)03-21 08:59: 17.432:ERROR/AndroidRuntime(5883):在android.content.res.Resources.loadDrawable(Resources.java:1709)03-21 08:59:17.432:ERROR/AndroidRuntime(5883):在android.content.res.Resources .getDrawable(Resources.java:581)03-21 08:59:17.432:ERROR/AndroidRuntime(5883):在android.widget.ImageView.resolveUri(ImageView.java:501)03-21 08:59:17.432:ERROR/AndroidRuntime(5883):在android.widget.ImageView.setImageResource(ImageView.java:280)03-21 …
我已经看到了一些关于取消吐司的问题.他们都没有工作.
我有一个定制的吐司.该代码只有一行,与http://developer.android.com/guide/topics/ui/notifiers/toasts.html#CustomToastView相同
区别如下.
在这个方法的开头,我添加了以下行来取消toast.
if (toast!=null){
toast.cancel();
}
Run Code Online (Sandbox Code Playgroud)当用户选择(onClick)视图/布局时,将调用该方法.问题是当用户选择几次时,toast将排队(toast.cancel不起作用).
有解决方案吗
[更新]我尝试将toast对象设为静态变量.还是不行.
我在xml文件中有一个整数数组,如下所示
<integer-array name="myArray">
<item>@drawable/pic1</item>
<item>@drawable/pic2</item>
<item>@drawable/pic3</item>
<item>@drawable/pic4</item>
</integer-array>
Run Code Online (Sandbox Code Playgroud)
在代码中,我正在尝试加载此数组
int[] picArray = getResources().getIntArray(R.array.myArray);
Run Code Online (Sandbox Code Playgroud)
预期的结果是
R.drawable.pic1, R.drawable.pic2,R.drawable.pic3
Run Code Online (Sandbox Code Playgroud)
但相反,它带有一个数组,所有值都为零
谁能告诉我有什么问题?