草庐IT

gtk_init_check

全部标签

android - Sugar ORM 中的 SugarContext.init(this) 是什么

我正在使用SugarORM在本地保存数据。但是有些事情我不明白。什么是SugarContext.init(this)和SugarContext.terminate()?这两个函数是做什么的?谁能解释一下?谢谢。 最佳答案 SugarContext作为一个单例类工作(只允许此类的一个实例)。-init创建一个新的上下文或返回对象-终止,关闭与SQLite“数据库”的连接 关于android-SugarORM中的SugarContext.init(this)是什么,我们在StackOverf

android - 在 init.rc 中启用 logcat

我在Android根目录中附加了init.rc:servicelogcat/system/bin/logcat-vlong-f/mnt/sdcard/logcat.log此解决方案不会生成任何日志。logcat.log文件不存在。如何开始通过init.rc收集logcat输出? 最佳答案 可能导致上述问题的几件事:1.您将服务定义为logcat。这看起来非常接近可能是保留/预先存在的名称。我会选择一个更尊贵的服务名称。2.服务没有明确的启动触发器,因此它完全取决于定义它的上下文(即哪个初始阶段)。选择错误的阶段(即太早)和/mnt甚

android boot - 在 init.c 中读取的 init.%hardware%.rc 在哪里?服务从哪里开始?

查看init.c中的代码并试图弄清楚两件事:硬件特定的init.%hardware%.rc在哪里读取?服务从哪里开始-即zygote,/system/bin/servicemanager等一个init.%hardware%.rc的例子将不胜感激。 最佳答案 好的,知道了-两个问题都在init.rc中得到了回答。硬件特定init.%hardware%.rc阅读http://androidxref.com/4.3_r2.1/xref/system/core/rootdir/init.rc#8,我们看到这条线的地方import/init.

安卓 Facebook 登录 : How to check login using LoginManager without having LoginButton in XML

我已经使用LoginButton在我的android应用程序中完成了facebook登录检查,但我想使用LoginManager进行检查。我该如何修改我的代码才能以这种方式工作?LoginButtonloginButton=(LoginButton)findViewById(R.id.fb_login_button);loginButton.setReadPermissions("user_friends");shareDialog=newShareDialog(this);//LoginCallbackregistrationLoginManager.getInstance().re

android - 如何让 init.d 中的脚本在 Android 启动时执行?

我的Android应用程序的一部分功能是放置一个我在init.d中编写的脚本,这样它就会在每次启动时执行。(显然我的应用程序仅适用于root用户)这是我正在做的:busyboxmount-orw,remount/system"busyboxcp-f/sdcard/*******/script/system/etc/init.d/scriptbusyboxchmod+x/etc/init.d/scriptupdate-rc.dscript99“update-rc.dscript99”行是我遇到麻烦的地方,它失败并出现“update-rc.dnotfound”错误。有谁知道在Android

Android 6.0 更新导致 DB sqlite 在 init 期间崩溃

我在应用程序类文件中创建数据库的代码可在数千台设备上运行,但最近我多次遇到崩溃,全部来自android6.0,因此它可能与新的android版本有关。此外,此崩溃仅在以下给定的3台设备上出现。请告知如何解决此问题..设备:CanvasA1(AQ4501_sprout)、DreamUno(Mi-498_sprout)、SparkleV(Sparkle_V_sprout)崩溃日志:Causedby:android.database.sqlite.SQLiteCantOpenDatabaseException:unknownerror(code14):Couldnotopendatabase

android - Simple List Item Checked 在点击时检查多个项目

好吧,我正在制作一个简单的待办事项列表应用程序,它从一组字符串数组中读取项目,并将它们显示在ListView中作为simple_list_item_checked。一切正常,我已经设置了onClickListener,所以它会检查我正在点击的内容,但是,当我点击一个项目时,它还会检查项目8项,重复。(即我点击最上面的项目,它得到一个检查,第8个项目被检查,然后8个被检查,等等)这是主要Activity的代码:packagecom.disneyland;importandroid.app.ListActivity;importandroid.os.Bundle;importandroid

javascript - react native : Is there any way to check if the file exists in android_asset folder or not?

我需要像这样检查文件夹中的文件是否存在:file:///android_asset/contents/my.html我试过使用react-native-filesystem插件componentWillMount(){asyncfunctioncheckIfFileExists(){constfileExists=awaitFileSystem.fileExists('file:///android_asset/contents/my.html')console.log(`fileexists:${fileExists}`)}}我确信my.html文件在那里,但我在fileExists

android - 如何在 android 中使用 Google Place Check-Ins

我使用GooglePlacesAPI检索特定位置及其周围的地点。通过解析xml文件,我得到了所需的位置及其详细信息。我需要签到一个特定的地方。我不知道如何通过HttpPOST方法请求。这是我必须提出的要求。place_reference——我从place请求中得到的引用。api_key--我的apikey。POSThttps://maps.googleapis.com/maps/api/place/check-in/xml?sensor=true_or_false&key=api_keyHTTP/1.1Host:maps.googleapis.complace_reference我使用

android - MissingPluginException(在 channel plugins.flutter.io/google_sign_in 上找不到方法 init 的实现)

使用Flutter的google登录但是当我使用此语句登录用户时看到以下消息_googleSignIn.signIn();E/flutter(6491):MissingPluginException(Noimplementationfoundformethodinitonchannelplugins.flutter.io/google_sign_in)我验证了以下步骤:GoogleSignInPlugin.registerWith(registry.registrarFor("io.flutter.plugins.googlesignin.GoogleSignInPlugin"));/