android

Crash when closing soft keyboard while using native activity

天涯浪子 提交于 2021-02-18 02:29:00
问题 We are developing an indie game for android and would like the user to choose his nickname. We have chosen to use the Native Activity that is provided by the NDK as that seemed to be the easiest way to go. The first problem we've encountered with the keyboard was that the function ANativeActivity_showSoftInput() seems to do nothing at all (as described e.g. here), so we bring up the keyboard using JNI calls to function: static void showKeyboard(Activity activity) { String s = Context.INPUT

Crash when closing soft keyboard while using native activity

旧巷老猫 提交于 2021-02-18 02:25:14
问题 We are developing an indie game for android and would like the user to choose his nickname. We have chosen to use the Native Activity that is provided by the NDK as that seemed to be the easiest way to go. The first problem we've encountered with the keyboard was that the function ANativeActivity_showSoftInput() seems to do nothing at all (as described e.g. here), so we bring up the keyboard using JNI calls to function: static void showKeyboard(Activity activity) { String s = Context.INPUT

Datagram Transport Layer Security (DTLS) on Android/Java

醉酒当歌 提交于 2021-02-18 02:06:10
问题 Has anyone used DTLS on Android or is there an open source Java implementation that supports DTLS? What are my other options for securing UDP traffic on Android? 回答1: DTLS support is not available in pure Java yet. We ended up using OpenSSL through JNI. I doubt you will find anything on Android. You should use TLS (which means you have to use TCP). 回答2: wolfSSL recently created an open source JNI wrapper around the lightweight SSL/TLS library, CyaSSL. The wrapper supports both DTLS 1.0 and

Datagram Transport Layer Security (DTLS) on Android/Java

只谈情不闲聊 提交于 2021-02-18 02:03:08
问题 Has anyone used DTLS on Android or is there an open source Java implementation that supports DTLS? What are my other options for securing UDP traffic on Android? 回答1: DTLS support is not available in pure Java yet. We ended up using OpenSSL through JNI. I doubt you will find anything on Android. You should use TLS (which means you have to use TCP). 回答2: wolfSSL recently created an open source JNI wrapper around the lightweight SSL/TLS library, CyaSSL. The wrapper supports both DTLS 1.0 and

Datagram Transport Layer Security (DTLS) on Android/Java

我的梦境 提交于 2021-02-18 02:01:34
问题 Has anyone used DTLS on Android or is there an open source Java implementation that supports DTLS? What are my other options for securing UDP traffic on Android? 回答1: DTLS support is not available in pure Java yet. We ended up using OpenSSL through JNI. I doubt you will find anything on Android. You should use TLS (which means you have to use TCP). 回答2: wolfSSL recently created an open source JNI wrapper around the lightweight SSL/TLS library, CyaSSL. The wrapper supports both DTLS 1.0 and

Datagram Transport Layer Security (DTLS) on Android/Java

◇◆丶佛笑我妖孽 提交于 2021-02-18 02:01:12
问题 Has anyone used DTLS on Android or is there an open source Java implementation that supports DTLS? What are my other options for securing UDP traffic on Android? 回答1: DTLS support is not available in pure Java yet. We ended up using OpenSSL through JNI. I doubt you will find anything on Android. You should use TLS (which means you have to use TCP). 回答2: wolfSSL recently created an open source JNI wrapper around the lightweight SSL/TLS library, CyaSSL. The wrapper supports both DTLS 1.0 and

Datagram Transport Layer Security (DTLS) on Android/Java

∥☆過路亽.° 提交于 2021-02-18 02:00:58
问题 Has anyone used DTLS on Android or is there an open source Java implementation that supports DTLS? What are my other options for securing UDP traffic on Android? 回答1: DTLS support is not available in pure Java yet. We ended up using OpenSSL through JNI. I doubt you will find anything on Android. You should use TLS (which means you have to use TCP). 回答2: wolfSSL recently created an open source JNI wrapper around the lightweight SSL/TLS library, CyaSSL. The wrapper supports both DTLS 1.0 and

鸿蒙和安卓,到底有什么区别?

浪子不回头ぞ 提交于 2021-02-18 01:54:15
来自: 程序员小枫 在 9 月 10 日召开的华为开发者大会上,宣布了鸿蒙2.0 系统正式面世,同时开启了 Beta 版本的测试和开源网站。 对于开发者来说两个最关键的点值得关注: 一个是 Beta 版的开发工具,一个是开源网站。 开源网站 在开发者大会上宣布将 HarmonyOS源代码捐赠给中国开放原子开源基金会,并在大会上公布了鸿蒙系统的开源路线。 OpenHarmony 官方源码地址: https: //openharmony.gitee.com/openharmony 开发工具 鸿蒙使用基于 Intellij IDEA 深度定制研发的 DevEco Studio 作为其开发工具。 DevEco Studio 下载地址: https: / /developer.harmonyos.com/cn /develop/deveco -studio 那么,在应用开发过程中,HarmonyOS(鸿蒙)和 Android(安卓)开发环境有什么不同呐? HarmonyOS 项目和 Android 项目对比 资源目录的变更 ①资源目录名称有更改 安卓 res 目录,这里用 resources 目录,它包括 base 和 rawfile 两部分,其中 base 是核心的资源目录,常用的都放在这里面,便于查找和使用。rawfile 会原封不动打包到生成的应用里面。 安卓是 res/values

移动端Chrome Inspect调试 (Android通过Chrome Inspect调试WebView的H5)(ios手机safari,chrome调试 windows)(如果inspect...

十年热恋 提交于 2021-02-18 01:46:49
ios +chrome调试 引用 https://segmentfault.com/a/1190000015428430 iTunes ios-webkit-debug-proxy-1.8-win64-bin.zip chrome最新版本最好 【Chrome】对ios-safari移动端的H5页面进行调试(ios-webkit-debug-proxy) ios 有问题。 点击Inspect,弹出开发者工具 后 不显示 手机的页面 ,代码已出现。 后期好了更新 调试Android上WebView的步骤: 开启手机上的USB调试功能 打开Chrome浏览器,地址栏输入:chrome://inspect/#devices, Chrome会自动检测手机上打开的App,并列出可调试的WebView页面,如图: 点击Inspect,弹出开发者工具进行调试(Android4.4开始支持,老版本Android检测不到webview。) 输入chrome://inspect可以调试android app里面的网页,如果inspect的时候,是空白, 那就在C:\Windows\System32\drivers\etc\hosts文件加入 61.91.161.217 chrome-devtools-frontend.appspot.com 61.91.161.217 chrometophone

Android 9.0适配遇到的问题1

僤鯓⒐⒋嵵緔 提交于 2021-02-18 00:36:53
文章同步自 javaexception 本周在适配Android 9.0,过程中碰到了小问题 问题1: SSL handshake timed out 解决办法: Android 9.0 开始,默认不允许明文传输,所以在建立网络连接时会使用 https 连接,同时进行安全认证。如果应用没有做对应处理,即会发生上述异常。 在应用中的res/xml目录添加network_security_config.xml文件。内容如下 <?xml version="1.0" encoding="utf-8"?> <network-security-config> <base-config cleartextTrafficPermitted="true" /> </network-security-config> 接着在androidManifest.xml文件的<Application>标签里面添加android:networkSecurityConfig="@xml/network_security_config"即可解决此问题 问题2: Android p 设备报错java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/http/ProtocolVersion 解决办法: 在androidManifest.xml文件的