草庐IT

ACTION_INSTALL_PACKAGE

全部标签

Android ACTION_RECOGNIZE_SPEECH Intent 在长时间讲话后永远不会完成

我开始打算并等待结果。它在简短的演讲中效果很好,但如果演讲太长,它不会给我答案。(将近1分钟)finalIntentsearchIntent=newIntent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);searchIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE,"tr");searchIntent.putExtra(RecognizerIntent.EXTRA_PROMPT,true);searchIntent.putExtra(RecognizerIntent.EXTRA_ONLY_RETUR

android - 广播接收器没有获得 MY_PACKAGE_REPLACED Intent

根据AndroidO开发者预览版,我们不能再使用PACKAGE_REPLACEDIntent与list中声明的​​接收器一起使用。替代方案是MY_PACKAGE_REPLACED。但是当我在代码更改后通过androidstudio更新应用程序时,这个Intent似乎并没有触发。而旧的更广泛的Intent总是正确触发。假设接收器本身只是在onReceive()中打印一条日志消息。谷歌搜索表明这似乎是一些androidlist合并问题。但我真的不知道如何解决这个问题。谁能给我指出正确的方向 最佳答案 我决定用MY_PACKAGE_REP

android - 在 Android 6 上的 Fabric Beta 中获取错误 "The package appears to be corrupt"

我所有使用Android6的Beta测试人员在从Beta安装我的应用程序时都会遇到此错误:Appnotinstalled.Thepackageappearstobecorrupt使用Android7+的用户没有问题。APK可以直接安装到所有设备上,包括Beta中有错误的设备。问题是几天前出现的,项目配置没有变。我的所有用户都使用最新的1.7.0Beta应用程序。项目依赖:dependencies{classpath'io.fabric.tools:gradle:1.+'}compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar

已解决ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: ‘C:\Use

已解决ERROR:CouldnotinstallpackagesduetoanOSError:[Errno2]Nosuchfileordirectory:‘C:\Users\ADMINI~1\AppData\Local\Temp\2\pip-install-s7tgji3n\opencv-python-headless_eab394cf800c4bc98eee13628b7caca5\opencv/samples/winrt_universal/VideoCaptureXAML/video_capture_xaml/video_capture_xaml.WindowsPhone/video_c

android - "Something wrong here, didn' t expect PACKAGE to be resumed"android Logcat 中的错误

我有一个仿照Google的LunarLander示例的Android应用程序。我正在使用Android2.0的真实设备(MotorolaDroid)对其进行调试。当方向改变时,程序会因NullPointerException而崩溃。崩溃前的Logcat:02-0100:24:27.956:DEBUG/nate(8358):StartingGame02-0100:24:36.878:DEBUG/dalvikvm(1086):GCfreed1788objects/92256bytesin1389ms02-0100:24:38.542:INFO/WindowManager(1021):Set

android - Intent.ACTION_VIEW 视频网址不适用于 Ice Cream Sandwich

我有以下代码来查看远程托管的视频文件:startActivity(newIntent(Intent.ACTION_VIEW,Uri.parse(article.getLink())));其中getLink()返回与文章关联的视频的URL。此方法在Gingerbread之前的设备上运行良好,但我最近在ICS上测试该应用程序并发现了一个问题。ICS浏览器开始加载URL,我在导航栏中看到它,但浏览器几乎立即关闭,我又回到我的应用程序Activity中。当它发生时,我得到以下堆栈跟踪:11-2810:24:44.488:E/SurfaceTexture(116):[com.mypackage.

android - Google Glass GDK 是否支持 Intent.ACTION_CALL?

我正在尝试让一个在GoogleGlass上运行的Android应用程序来调用电话。这是调用Intent的代码:Stringuri="tel:+44.....";Intentintent=newIntent(Intent.ACTION_CALL);intent.setData(Uri.parse(uri));startActivity(intent);这会引发以下异常。09-2621:57:05.880:E/AndroidRuntime(4995):FATALEXCEPTION:main09-2621:57:05.880:E/AndroidRuntime(4995):android.co

Android Wear - 从手持 Action 开始穿戴 Activity

我正在从Android手持设备向Android穿戴设备发送通知。我想在通知中包含一个Action,以在Android穿戴设备上启动一个Activity。如何将挂起的Intent设置为可穿戴设备上的Activity?如果通知是在可穿戴设备上创建的,我可以启动Activity,但如果通知是在手机上创建然后发送到可穿戴设备,我就不能启动该Activity。//creatingactionforpushnotificationcreatedonhandheldpublicNotificationCompat.ActionCreateWearAppAction(IntegermetricId){

android - 错误 : package com. google.android.gms.appstate 不存在

由于这个错误,无法编译我的android项目。/BaseGameUtils/src/main/java/com/google/example/games/basegameutils/GameHelper.javaError:(32,39)error:packagecom.google.android.gms.appstatedoesnotexistError:(293,28)error:cannotfindsymbolvariableAppStateManagerError:(294,30)error:cannotfindsymbolvariableAppStateManagerErr

android - 错误 : attribute 'package:contentScrim' not found

当我尝试进行折叠工具栏布局时,我收到有关未找到contentScrim的错误。这是我的XML文件。我在GitHub和其他网站上看过所有教程。并使用但我无法得到解决方案。fragment的视差粘性header的任何简单方法。现在我正在遵循https://android.jlelse.eu/parallax-scrolling-header-tabs-android-tutorial-2cc6e40aa257的代码并查看android开发人员关于CollapsingToolbarLayout的文档。 最佳答案 我不知道您为什么会收到该错