草庐IT

tm_start

全部标签

java - 警告 : Activity not started, 它的当前任务已被带到最前面

这个问题在这里已经有了答案:Activitynotstarted,itscurrenttaskhasbeenbroughttothefront(8个答案)关闭8年前。我觉得这个问题很一般。Stackoverflow上的许多结果都谈到了这一点。一般的答案是:因为一个旧应用程序正在运行,而我尝试从Eclipse运行一个新应用程序(但编译时没有变化),所以Android会注意到这一点。但是,我已经做了很多我力所能及的事情:再次为eclipse重建改变一些东西。重启Eclipse或模拟器但是这个警告仍然存在(当然,我的应用程序仍然无法运行)。这是我的list文件。请查看此文件并帮助我。感谢阅读

java - 如果调用得太快,MediaRecorder start() 会失败

我正在尝试构建一个基本的摄像机,允许用户通过触摸屏幕快速拍摄视频,这看起来很简单,但我遇到的主要问题是AndroidMediaRecorder不允许快速启动和重新启动,而无需崩溃,如果用户拍摄然后停止然后再次快速恢复拍摄它总是崩溃我不确定是否有办法直接解决这个问题所以我还设计了另一种方法来实现这个通过尝试录制单个视频但试图获得对mediaRecorder实际写入文件的时间进行一些控制。但是我无法使用FileDescriptor使其完全运行,下面我将粘贴我的原始代码和我在第二次尝试控制写入时使用的方法,是否有任何方法可以调整任何代码以实现我之后的暂停功能?任何帮助都会有很长的路要走谢谢我

android - Ionic starter 无法在 crosswalk-lite 上运行 : Unable to start activity ComponentInfo

我正在使用crosswalk-lite启动ionic应用程序,但它不能同时在真实设备和genymotion上运行。ionicstartmyApptabsnpminstallbowerinstallionicserve#当我执行adblogcat时,它显示错误java.lang.RuntimeException:UnabletostartactivityComponentInfo{com.ionicframework.myapp}我用:节点v0.10.36ionic1.4.5Cordova4.3.0插件:com.ionic.keyboard1.0.4cordova-plugin-cros

android - DeviceMonitor 不断报错 "failed to start monitoring emulator-5554",我该如何解决?

我在模拟器上运行了一次eclipse并获得了所需的输出,但是当我运行另一个项目时,在给出最后的输出一段时间后,我一直不断地收到DeviceMonitor错误:“无法开始监控emulator-5554”,你呢?知道如何修复它吗? 最佳答案 假设你只有一个模拟器在运行,试试adbkill-serveradbstart-server这应该会重新启动adb服务器连接。 关于android-DeviceMonitor不断报错"failedtostartmonitoringemulator-5554

android - java.lang.SecurityException : Not allowed to start service Intent 错误

我从googleplay的用户那里得到以下异常:java.lang.SecurityException:NotallowedtostartserviceIntent{act=com.google.android.c2dm.intent.REGISTERpkg=com.google.android.gsf(hasextras)}withoutpermissioncom.google.android.c2dm.permission.RECEIVE我将我的应用程序上传到市场已经8个月了,这是我第一次遇到此异常。谁能告诉我,这个异常是怎么突然来的,这是怎么回事。我在网上搜索但找不到任何东西。请

Android问题笔记四十:多方案解决AAPT: error: failed to read PNG signature: file does not start with PNG signature

点击跳转=>Unity3D特效百例点击跳转=>案例项目实战源码点击跳转=>游戏脚本-辅助自动化点击跳转=>Android控件全解手册点击跳转=>Scratch编程案例点击跳转=>软考全系列👉关于作者专注于Android/Unity和各种游戏开发技巧,以及各种资源分享(网站、工具、素材、源码、游戏等)有什么需要欢迎底部卡片私我,交流让学习不再孤单。👉实践过程😜问题编译打包出现了AAPT:error:failedtoreadPNGsignature:filedoesnotstartwithPNGsignature.这是因为项目的图片资源格式不是正常的,而是简单的通过重命名更改的格式后缀,这种直接修

android - 在 onLongClickListener 中调用 MediaRecorder.start 时在 android.media.MediaRecorder.start 处出现 java.lang.IllegalStateException

我想在按住按钮时使用MediaRecorder开始录制语音消息。尝试在onLongClickListener中开始录制时出现IllegalStateException。如堆栈跟踪中所述,我收到的错误位于第219行:recorder.start()为什么会这样?btnSendVoice.setOnLongClickListener(newOnLongClickListener(){@OverridepublicbooleanonLongClick(Viewview){isVoiceButtonHeld=true;startRecording();returnfalse;}});btnSe

android - Getting : Not allowed to start service Intent . ..未经许可服务进程不好

ACRA的暗恋报告向我发送了这个错误。java.lang.SecurityException:NotallowedtostartserviceIntent{act=auto_updatecmp=net.DailyTimer.CalendarAlarmHelperFree/net.DailyTimer.CalendarAlarmHelper.CalendarAlarmService}withoutpermissionServiceprocessisbad我在有限的设备上看到这个错误,我无法重现。我猜这个错误取决于运行环境。我的问题是:什么许可错误?我找不到“服务流程不好”是什么意思。编辑

具有 START_STICKY 的 Android 服务在终止应用程序时崩溃

这是我的Service在从Activity中单击按钮时被调用。如果我在Service运行时向左滑动Activity,它就会崩溃。我还尝试通过在list中放入android:process=":remote"在单独的进程中运行它,但它仍然是一样的。@OverridepublicvoidonCreate(){super.onCreate();Log.d("Service","Creating");}@OverridepublicIBinderonBind(Intentintent){//TODO:Returnthecommunicationchanneltotheservice.retur

android - Jenkins 和安卓模拟器 : Emulator did not appear to start; giving up

我想通过Jenkins测试我们的android应用程序。我配置了所有内容,但收到此错误消息:[android]Emulatordidnotappeartostart;givingup我从here找到了这个问题的解决方案Thisonecanhaveseveralreasons.Oneofthemislistedintheerrorbelow.Ididn'tencounterthismyselfbutI'vereadonstackoverflowwhilelookingforasolutiontomyspecificissue.Itseemstoberelatedtotherevision