草庐IT

resource-root

全部标签

android - 如何在 android 中修复 "Avoid passing null as the view root"?

在我的android应用程序中,我创建了一个这样的对话框:privatevoidhandleEdit(){LayoutInflaterinflater=getLayoutInflater();Viewdialoglayout=inflater.inflate(R.layout.dialog_gallery,null);finalAlertDialogd=newAlertDialog.Builder(this).setView(dialoglayout).setTitle(R.string.edit).setNegativeButton(R.string.cancel,null).cre

安卓.content.res.Resources$NotFoundException : String array resource ID #0x7f070002

我在获取strings.xml的字符串数组时遇到问题。错误是:android.content.res.Resources$NotFoundException:StringarrayresourceID#0x7f070002atandroid.content.res.Resources.getStringArray(Resources.java:472)atcom.klh.lehava.MainActivity.onCreate(MainActivity.java:87)基本上,我要做的是获取一个名为planets_array的字符串数组,并将其存储到mPlanetTitles中。Thi

android - 如何查看安卓手机是否root?

这个问题在这里已经有了答案:Determineifrunningonarooteddevice(28个答案)关闭9年前。我想以编程方式在我的应用程序中查找android手机是否已Root。我发现了很多链接,例如:DetermineifrunningonarooteddeviceEffectivewaytoprogramaticallycheckifI'mrootedonAndroid?讨论同一个话题。但是,正如这些链接中所提到的,没有一种明确的方法可以找出答案。这些帖子已经很老了,我想知道在最近的版本中是否有更好的方法来实现它?提前致谢!

android - 无法在 root 设备 : INSTALL_FAILED_INVALID_URI 上安装包

这是我尝试在我的设备上安装我的应用程序时看到的(我使用的是AndroidStudio0.8.2):Waitingfordevice.Targetdevice:samsung-gt_s7500-cf994b04Uploadingfilelocalpath:C:\Users\Administrator\AndroidStudioProjects\Testaqua\app\build\outputs\apk\app-debug.apkremotepath:/data/local/tmp/com.example.administrator.testaquaInstallingcom.examp

c# - Resource.Id 在 Xamarin 中不工作

这是main.axml文件。``这是MainActivity.cs文件:protected覆盖voidOnCreate(Bundlebundle){base.OnCreate(bundle);//Setourviewfromthe"main"layoutresourceSetContentView(Resource.Layout.Main);Glop=newList();Glop.Add("Tom");Glop.Add("Dick");Glop.Add("Harry");Name=FindViewById(Resource.Id.myListView);}我正在尝试在XamarinAn

java - 如何从字符串中获取 Resource(int) - Android

这个问题在这里已经有了答案:关闭10年前。PossibleDuplicate:Android,gettingresourceIDfromstring?Stringres="R.drawable.image1";我需要获取它的INTid。请帮助我!

android - 如何在 mac 中设置 ANDROID_SDK_ROOT?

我正在尝试使用Cordova进行应用程序开发。现在我专注于Android。我正在尝试运行cordovaemulateandroid。它运行并且在一长串包之后它说“构建成功”但最后它也说PANIC:CannotfindAVDsystempath.PleasedefineANDROID_SDK_ROOT我使用Homebrew。这是命令行上命令的输出:BUILDSUCCESSFULTotaltime:1.345secsBuiltthefollowingapk(s):/users/mayurtolani/myMobileApp/platforms/android/build/outputs/a

android - 在 IntelliJ 9.0 Maia Public Beta 下构建 Android 应用时出现 "Resource not found"

我正在尝试将应用程序从Eclipse移植到IntelliJ。该应用构建良好,但无法正常运行。这是我收到的部分堆栈跟踪:ERROR/AndroidRuntime(957):java.io.IOException:Resourcenotfound:"org/joda/time/tz/data/ZoneInfoMap"ClassLoader:dalvik.system.PathClassLoader@43761190atorg.joda.time.tz.ZoneInfoProvider.openResource(ZoneInfoProvider.java:209)atorg.joda.tim

android - 在 OSX : Task 'assembleDebug' not found in root project 上的命令行上构建 Android 项目

我正在尝试使用以下方法在OSX(Mavericks10.9.5)命令行上构建Android项目:http://developer.android.com/tools/building/building-cmdline.html.本操作指南介绍了如何使用assembleDebug/assembleRelease构建Android项目。不幸的是,gradle不会创建assembleDebug或assembleRelease目标。执行./gradlewassembleDebug返回:FAILURE:Buildfailedwithanexception.*Whatwentwrong:Task'

以编程方式共享 Android 屏幕(Root)

是否可以从rootadbshell进行屏幕共享,而无需在Android>=5中通过mircast或chromecast进行用户交互?我正在寻找启用/禁用此https://support.google.com/nexus/answer/2865484?hl=en的命令 最佳答案 您可以尝试AndroidSDK中的MediaRouter-SecondaryOutputAPI:Android媒体路由器API旨在支持在这些辅助设备上显示和播放媒体。您可以通过两种主要方法使用这些API播放内容:远程播放—这种方法使用接收设备来处理内容数据检索