Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/216.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 应用程序无法在三星Galaxy Tab SII上启动_Java_Android_Samsung Mobile - Fatal编程技术网

Java 应用程序无法在三星Galaxy Tab SII上启动

Java 应用程序无法在三星Galaxy Tab SII上启动,java,android,samsung-mobile,Java,Android,Samsung Mobile,我做过很多项目,没有任何问题。但在当前的项目中,我在三星Galaxy Tab(GT-P7300)上进行了测试,应用程序无法启动。当我运行它时,屏幕会闪烁,然后立即退出主页(没有强制关闭消息,主页屏幕会立即弹出)。LogCat将显示以下错误: 03-14 16:18:41.060: E/AndroidRuntime(4144): Set to default setting_6 : region=-Duser.region=US propRegn=US 03-14 16:18:41.070: E/

我做过很多项目,没有任何问题。但在当前的项目中,我在三星Galaxy Tab(GT-P7300)上进行了测试,应用程序无法启动。当我运行它时,屏幕会闪烁,然后立即退出主页(没有强制关闭消息,主页屏幕会立即弹出)。LogCat将显示以下错误:

03-14 16:18:41.060: E/AndroidRuntime(4144): Set to default setting_6 : region=-Duser.region=US propRegn=US
03-14 16:18:41.070: E/AndroidRuntime(4144): /system/csc/feature.xml ==> cannot open file
03-14 16:18:41.340: E/AndroidRuntime(4154): Set to default setting_6 : region=-Duser.region=US propRegn=US
03-14 16:18:41.360: E/AndroidRuntime(4154): /system/csc/feature.xml ==> cannot open file
使用者关闭了输入通道或发生错误。频道是 无法恢复的损坏,将予以处理

来自LogCat的其他消息:

03-14 15:16:40.370: E/TODmobile(650): onReceive action=sec.android.intent.action.HOME_RESUME
03-14 15:16:40.380: E/TODmobile(650): hour : 15    minute : 16
03-14 15:16:40.380: E/DigitalClockWidget(650): updateWidgets
03-14 15:16:40.410: E/TODmobile(650): hour : 15    minute : 16
03-14 15:16:40.450: E/DigitalClockWidget(650): onReceive action=sec.android.intent.action.HOME_RESUME
03-14 15:16:40.450: E/TODmobile(650): onStartCommand
03-14 15:16:40.450: E/TODmobile(650): onReceive action=com.sec.android.widgetapp.DigitalClock_Start
03-14 15:16:40.460: E/TODmobile(650): hour : 15    minute : 16
03-14 15:16:40.460: E/DigitalClockWidget(650): updateWidgets
03-14 15:16:40.510: E/TODmobile(650): hour : 15    minute : 16
03-14 15:16:40.980: E/TODmobile(650): onReceive action=sec.android.intent.action.HOME_RESUME
03-14 15:16:41.010: E/TODmobile(650): hour : 15    minute : 16
03-14 15:16:41.010: E/DigitalClockWidget(650): updateWidgets
03-14 15:16:41.010: E/TODmobile(650): hour : 15    minute : 16
03-14 15:16:41.030: E/DigitalClockWidget(650): onReceive action=sec.android.intent.action.HOME_RESUME
03-14 15:16:41.030: E/TODmobile(650): onStartCommand
03-14 15:16:41.040: E/TODmobile(650): onReceive action=com.sec.android.widgetapp.DigitalClock_Start
03-14 15:16:41.050: E/TODmobile(650): hour : 15    minute : 16
03-14 15:16:41.060: E/DigitalClockWidget(650): updateWidgets
03-14 15:16:41.060: E/TODmobile(650): hour : 15    minute : 16
03-14 15:16:41.410: E/DigitalClockWidget(650): onReceive action=com.sec.android.widgetapp.APPWIDGET_RESIZE
03-14 15:16:41.410: E/TODmobile(650): onStartCommand
03-14 15:16:41.420: E/TODmobile(650): onReceive action=com.sec.android.widgetapp.DigitalClock_Start
03-14 15:16:41.420: E/TODmobile(650): hour : 15    minute : 16
03-14 15:16:41.420: E/DigitalClockWidget(650): updateWidgets
03-14 15:16:41.420: E/TODmobile(650): hour : 15    minute : 16
03-14 15:16:41.570: E/RemoteViews(362): Cannot setOnClickPendingIntent for collection item (id: 2131755055)
03-14 15:16:41.570: E/RemoteViews(362): Cannot setOnClickPendingIntent for collection item (id: 2131755055)
该程序在LG GT540和三星Ace上运行良好

是什么导致了这个问题?我搜索了错误消息,发现很多人都遇到过,但没有明确的解决方案


编辑:更多信息,我试过Galaxy标签(GT-P1000,运行Android 2.3.3),它也很好用。当我在带有3.0设备的Android SDK模拟器上试用时,程序也会闪烁然后消失。所以只有安卓3.0(也可能是4.0)会引发这个问题。

就像一个。ch说,我也看到了内存不足的问题,软件包安装时使用了相同的软件包id,即使图形需要调整大小。话虽如此:

如果您是,我将确保每个MDPI、HDPI、XHDPI中分别有图形,并且它们是并设置为。这将确保所有设备和API级别都能正常运行


即使这不是问题的根源,在性能和可靠性方面确保最佳做法也是很好的。

确定日志中没有更多信息吗?@DavidOlsson刚刚添加了更多信息。我认为这并不重要。请告诉我有关您的应用程序的更多信息W.N。它实际上是做什么的?您是否已将您的应用程序本地化为如下所示:。然后你可以改变你手机的语言,观察是否有什么事情发生。你也应该删除values us文件夹,观察是否有什么事情发生。嗯,我不知道为什么,但今天它突然运行了我的程序,虽然我没有做太多改变,只是在我的算法(只有在用户输入后执行),其他一切,比如布局,资源、资产。。。保持不变。我也不改变任何电话设置。现在你提到了,我想起来了。在以前未成功的构建中,我删除了
hdpi
ldpi
mdpi
文件夹,并使用单个
drawable
文件夹。