我有人抱怨我的应用程序在启动时获取FC(同时其他人从未遇到过单一问题)。这是我的完整活动来源。由于它发生在我没有的设备上,所以我无法修复它。从他们告诉我它不起作用:摩托罗拉Blackflip,摩托罗拉Dext,摩托罗拉CLIQ XT。猜猜摩托罗拉毕竟不喜欢我的应用程序...我的应用程序在几个设备上获得“强制关闭”
难道是我允许minSdkVersion =“3”吗?我在模拟器上测试了1.5,并且工作正常...
非常感谢您的回复。
public class workit extends Activity implements OnClickListener {
Button yay;
Button yay0;
Button yay1;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.main);
yay = (Button) findViewById(R.id.gostart);
yay.setOnClickListener(this);
yay0 = (Button) findViewById(R.id.dontstart);
yay0.setOnClickListener(this);
yay1 = (Button) findViewById(R.id.exit);
yay1.setVisibility(ImageView.GONE);
ImageView inizio = (ImageView)findViewById(R.id.start);
inizio.setVisibility(ImageView.VISIBLE);
inizio.setBackgroundResource(R.drawable.start);
}
public void onClick(View v) {
// TODO Auto-generated method stub
if (v == yay0) {
finish();
}
if (v == yay) {
ImageView inizio = (ImageView)findViewById(R.id.start);
inizio.setVisibility(ImageView.GONE);
WebView work = new WebView(this);
setContentView(work);
work.loadUrl("file:///android_asset/index1.html");
work.setWebViewClient(new work());
work.setBackgroundColor(0);
work.getSettings().setBuiltInZoomControls(true);
work.getSettings().setDefaultZoom(ZoomDensity.FAR);
}
if (v == yay1) {
finish();
}
}
private class work extends WebViewClient {
@Override
public boolean shouldOverrideUrlLoading(WebView view, String url) {
if (url.contains("exit.html")) {
// TODO: do what you have to do
finish();
}
view.loadUrl(url);
return true;
}
}
}
你应该看看这个崩溃报告库,我使用它,它很好地工作,发送崩溃报告到谷歌电子表格。所以你不要依赖市场错误报告或任何分钟。 OS版本。 http://code.google.com/p/acra/ – 2010-09-06 06:37:16
谢谢,我会检查出来并回来报告结果。 – thpoul 2010-09-06 07:46:11
这些报道是惊人的。我在那里发现了很多有趣的数据!感谢您分享这一点! – thpoul 2010-09-06 10:12:33