草庐IT

using-encrypted-connections

全部标签

android - 如何解决 "Unable to connect to the editor to retrieve text"错误?

我正在使用ListView,ListView中每个项目的布局如下。当我尝试在mrpEtedittext中编辑文本时,android软键板没有响应,并且出现以下错误。02-2114:42:33.157651-651/?I/LatinIME:Startinginput.Cursorposition=1,102-2114:42:33.1724564-4564/?W/IInputConnectionWrapper:getTextBeforeCursoroninactiveInputConnection02-2114:42:33.1734564-4564/?W/IInputConnectionW

安卓 N : dealing with lack of CONNECTIVITY_CHANGE

我的AppWidgetProvider(当然是BroadcastReceiver)已注册接收CONNECTIVITY_CHANGE,以便我可以尽快更新小部件网络已恢复(尽管仅在需要时,即如果由于缺乏连接而错过了先前的更新)。但如前所述here,这在AndroidN中将不再可能。建议使用JobScheduler,它允许您指定作业仅在通过.setRequiredNetworkType连接到网络时运行(JobInfo.NETWORK_TYPE_ANY)方法。但是,我看不出如何使用它来复制我想要的行为。在我看来,如果在安排作业时没有网络,.setRequiredNetworkType(JobI

android - connectedAndroidTest 因 "no connected devices"而失败,但我的仪器可以正常工作

我正在设置一个Jenkins节点(在MacOSX上)为我的Android应用程序运行仪器测试。我的Jenkins项目启动了一个Android模拟器并运行Gradle任务:app:connectedAndroidTest。但是任务一直不稳定,有时能正常运行测试,但大多数时候失败并出现以下错误::app:connectedAndroidTestFAILEDFAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':app:connectedAndroidTest'.>com.android.builde

android - Activity 已泄露 ServiceConnection com.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$Connection

我的Android应用程序在Fragment中有一个Webview,Webview正在显示一个简单的HTML文档。当我退出应用程序时,logcat显示以下错误:03-0610:58:29.468:E/ActivityThread(420):Activitycom.abc.test.MainActivityhasleakedServiceConnectioncom.android.org.chromium.com.googlecode.eyesfree.braille.selfbraille.SelfBrailleClient$Connection@66247648thatwasorig

java - 标记 <uses-permission> 属性名称具有无效字符 ' '

我在list中不断收到错误。尝试了很多但无法修复。list:我的努力:我试图自己消除错误,但一次又一次失败!在谷歌上搜索....搜索所有可能的链接。任何帮助将不胜感激!提前致谢:)..问题出在debug/AndroidManifest.xml。 最佳答案 我怀疑它与com.google.android.providers.gsf.permission.READ_GSERVICES权限有关。较新的文档没有显示它是位置信息的要求:https://developers.google.com/maps/documentation/andro

android - Firebase : Should I use transactions? 中加注/点赞系统的正确设计

我正在开发一个应用程序,其功能类似于Firebase文档中给出的starcountonablogpostexample,我对轮询系统的设计以及是否使用.在示例中,帖子的数据如下所示:postid{//somedatahereaboutthepost,author,id,etc,starCount:,stars:{:true,:true,//...andsoon,basicallyalistofalltheuserswhostarredthepost}}文档使用事务来更新星数:privatevoidonStarClicked(DatabaseReferencepostRef){postR

安卓蓝牙外设 : Connection terminated by peer (Status 19)

开发了一个充当外围设备并与其他设备(仅限中央设备)连接的应用程序。它在操作系统版本为6.0的设备上运行良好,但在Nougat7.0中出现一些问题。我收集了一些日志,在开发者选项中启用“BluetoothHCIsnooplog”。收集的日志:W/bt_btm:btm_sec_disconnect:reason=19W/bt_btif:btif_dm_generic_evt:event=33035W/bt_btif:btif_dm_generic_evt:event=33035W/bt_btm:btm_sec_send_hci_disconnect:handle:0x41,reason=0

android - 图片下载 : memory leak using LazyList

我在使用LazyList时发生了内存泄漏.我在整个应用程序中使用一个ImageLoader实例,我在Application.onCreate()中创建它,因为我需要在多个Activity中下载图像:列表Activity、一个带有画廊小部件的Activity和全屏画廊Activity(它们都使用相同的缓存)我修改了图像加载器,使其使用基于SoftReference的HashMap。这是SoftHashMap的代码:publicclassSoftHashMapextendsAbstractMap{privatefinalMaphash=newHashMap();privatefinalin

java - 消息为 "Connection timed out"的 ConnectionTimeoutException 和 SSLException 之间的区别

在我的Android代码中(使用ApacheHTTP客户端)我已经设置了以下参数:HttpConnectionParams.setConnectionTimeout(params,30*SECOND_IN_MILLIS);HttpConnectionParams.setSoTimeout(params,30*SECOND_IN_MILLIS);我正在连接到HTTPS网络服务。在慢速网络上,我在预期的30秒后收到了ConnectionTimeoutException(然后我重试);但是有“少数”情况(我无法观察到任何模式),我得到以下任何一个:javax.net.ssl.SSLExcep

linux登录提示:Access denied for user ‘root‘@‘localhost‘ (using password: YES)解决

1.编辑文件:/etc/my.cnf    添加行:skip-grant-tables如图: 2.重启mysql服务     关闭mysql:servicemysqldstop     启动mysql:servicemysqldstart如果启动命令不行,用这个:systemctlstartmysqld3.无密码登录mysql    命令:mysql-uroot4.切换数据库    命令:usemysql;5.更新权限     //123456是你新设置的密码        命令:updatemysql.usersetauthentication_string=password('123456