草庐IT

Application-Name

全部标签

android - 禁用 Lint 警告 "The view name suggests this is a number but it does not include a numeric inputType"

我在Lint错误检查首选项中搜索了警告列表,但找不到。列表有点长,无法检查每个警告是否是我想要的,并用name、number、numeric过滤警告>、inputType等不会引发警告。将鼠标悬停在警告上似乎不会提供警告ID。我有充分的理由为名称中带有数字的变量使用文本inputType,这是因为我想登录到使用数字作为登录ID的服务器,因此我需要数字作为字符串。我真的不喜欢那里有警告,如果可能的话,我想禁用该特定警告。谢谢。 最佳答案 您也可以在XML中执行此操作,方法是将xmlns:tools="http://schemas.an

android - <activity> 没有有效的 android :name when dexguarding

我正在尝试dexguard作为系统应用程序运行的应用程序。但是,当我尝试将其推送到system/app目录时,我从PackageParser收到以下错误。W/PackageParser(1995):/system/app/My.apk(atBinaryXMLfileline#290):doesnothavevalidandroid:name我还在dexguard-project.txt中添加了以下内容,但无济于事。-keepresourcexmlattributenamesmanifest/installLocation,manifest/versionCode,manifest/pa

android - BlueStacks 上的 Google Play 服务安装失败 : Incompatible with other application(s) using the same share user ID

由于“与使用相同共享用户ID的其他应用程序不兼容”,在BlueStacks上安装GooglePlay服务失败。我究竟做错了什么?感谢您的宝贵时间。 最佳答案 这个问题困扰我很久了,之前的回答对解决问题基本没有帮助。我现在找到了一个解决方案,我将分享。它与前面的答案描述的基本步骤相同,但使用了一种删除Google服务框架和下载链接的故障安全方法。使用TitaniumBackup删除GoogleServicesFramework(TitaniumBackup>Backup/Restore>GoogleServicesFrameworkx

android - 你如何转换 RuntimeEnvironment.application?

运行Robolectric测试时,RuntimeEnvironment.application的类型由您的配置决定。假设我将RoboApplication.class配置为我的测试应用程序,我可以将RuntimeEnvironment.application强制转换为我的类型。RoboApplicationapp=(RoboApplication)RuntimeEnvironment.application;app.doSomething();但是,一旦我集成了PowerMock,转换行就会失败java.lang.ClassCastException:RoboApplicationca

android - Cordova Phonegap - Android 地理定位显示错误 : Application does not have sufficient geolocation permissions error

在浏览器和iOS平台上,该位置运行良好并显示所需数据。在Android上它显示当前错误:Applicationdoesnothavesufficientgeolocationpermissionserror资源/Config.xml:HelloCordovaAsampleApacheCordovaapplicationthatrespondstothedevicereadyevent.ApacheCordovaTeamAndroid/res/xml/config.xmlHelloCordovaAsampleApacheCordovaapplicationthatrespondstoth

android - google-services.json - 更改了 package_name - 我需要创建一个新的配置文件吗

我当前的环境已经有一个google-services.json文件并且一切正常。但现在由于不可预见的情况,我必须重命名我的项目包。我现在已经成功地重命名了这个包。我还进入了google-services.json文件并在那里重命名了包名称。所以现在我想知道我是否需要回到谷歌开发者网站并创建一个新的配置文件?基本上我担心重命名google-services.json中的包名称是不够的。我认为该配置与原始包名称相关联。我想知道当开发人员重命名项目的包名称时是否需要从googledevelopersite生成新的配置文件?这是我最初生成的google-services.json文件,我将向您

android - Apktool 检索项目 : No resource found that matches the given name '@android:style/Animation.OptionsPanel' 的父项时出错

我正在尝试使用apktool(apktool-2.1.1)重建apk。遇到错误i)找不到与给定名称“@android:style/Animation.OptionsPanel”匹配的资源ii)找不到与给定名称“@android:style/Animation.LockScreen”匹配的资源错误信息:I:UsingApktool2.1.1I:Copying/home/workspace/debug/app-demo-releaseclasses.dexfile...I:Buildingresources...W:/home/workspace/debug/app-demo-releas

android - 如何在 styles.xml 中列出 <item name ="app:fabSize">[value]</item>?

我试图在styles.xml中包含app:fabSize但androidstudio抛出了一个错误有没有办法在styles.xml中包含app:fabSize和其他app:属性?Hereisthecodeforthestyletag 最佳答案 在layout.xml中添加Compat属性时,应使用先前定义的命名空间(实际上不必是app,但应通过xmlns在xml中定义:>-例如将hello作为命名空间也是可能的。无论如何app是某种标准)。但是在styles.xml中使用Compat属性不应该放任何东西,但是属性名称:mini

android - 在 Application 类中加载 Firebase 远程配置

因为Application以其全局变量的使用而闻名。我在想也许最好在Application类的onCreate()方法中加载Firebase远程配置,所有变量都将存储为“publicstatic”并具有初始值。只是想知道这是否是个好主意,因为我曾尝试使用经典的getter/setter将远程配置存储为私有(private)对象,这经常导致null异常。 最佳答案 不要使用应用程序。如果您拥有(或将拥有)多进程应用程序,则某些Firebase功能可能会遇到问题。无法保证在您的应用中尽早调用fetch()会在需要时立即提供这些值。您应该

android - 什么是 'action android:name="com.android.vending.INSTALL_REFERRER"'?

我已经测试了AppbrainSDK和InmobiSDK。我找到了这个普通接收器。我制作了定制接收器。我以为在谷歌市场下载应用程序时,谷歌市场会向我的应用程序发送“推荐人”值。但是我没有收到任何东西。什么问题?//ThisisAppbrain'sreceiver//ThisisInmobi'sreceiver//ThisisMyCustomreceiver//sourcepublicclassTestReceiverextendsBroadcastReceiver{publicstaticfinalStringTAG="TEST";StringreferrerString="";@Ove