问题标签 [android-4.3-jelly-bean]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
android - Android BLE API:未收到 GATT 通知
用于测试的设备:Nexus 4、Android 4.3
连接工作正常,但onCharacteristicChanged
我的回调方法从未被调用。但是,我正在使用setCharacteristicNotification(char, true)
inside注册通知onServicesDiscovered
,该函数甚至返回 true。
设备日志(当通知应该出现/通过蓝牙设备发送时实际上根本没有消息):
GATT 通知在 iOS 上运行良好,该应用程序与 Android 上的基本相同(注册通知等)。
有没有其他人经历过这个可能的解决方案?
android - Android 的小部件不再适用于 SDK 18
我更新了我的项目清单并将 targetSdkVersion 设置为 18。但是现在,我的应用程序的小部件已经死了。我的小部件中有一个列表,列表中的项目有一些不同的按钮,但是当我单击其中一个按钮时,它们看起来都被按下了,没有任何反应......我不明白该怎么做,我在网上什么也没找到。为了在新闻上声明动作,我在每个项目上使用了 setOnClickPendingIntent。它在 4.2 及之前版本上运行良好。
如果你有想法,欢迎你。如果您需要一些细节或我的代码的某些行,请问!:) 谢谢!
android - 在 Android 4.3 上运行应用程序的持续通知
自从升级到 Android 4.3 后,我的应用程序显示了一个持久的系统通知:
上面写着:
[我的应用程序] 正在运行
触摸以获取更多信息或停止应用程序
为什么它在那里,我能做些什么呢?
android - 在 android 4.3 api 18 上更改 ActionBarActivity 的主题
您好我想在运行时更改我的应用程序主题,使用 actionBar 兼容性(新 api 18)这是我的主题:
现在我想将主题更改为我的 ActionBarActivity:
但我没有变化..为什么?
android - What happened to windowContentOverlay in Android API 18?
After upgrading my phone to Android 4.3 I noticed the shadow below the actionbar is not showing anymore. In my app I've got a custom shadow using windowContentOverlay
:
It's always been showing but now it's gone on API 18. Removing that line from the theme doesn't change anything. while on other API versions it shows a default slight shadow.
Anyone else has noticed that issue?
android - 为表单字段显示软键盘时,Android 4.3 Webview 不滚动
我有一个显示表单的普通 Webview。表单有很多字段,所以如果我关注屏幕下部的一个字段,webview 不会滚动,并且软键盘隐藏了输入字段。我只在 4.3 版遇到过这个问题(我正在 Nexus 4 上进行测试)
PS:相同的 Webview 适用于 4.2 及以下版本。
这是一个已知问题还是有解决方法?
android - 从蓝牙低功耗 GATT 特性中检索大的 32 位无符号整数
我正在尝试使用我的实例2^32 - 1
的方法从蓝牙 4.0 特性中检索一个非常大(可能)的无符号 32 位整数。getIntValue
BluetoothGattCharacteristic
我正在传递FORMAT_UINT32
给getIntValue
,但因为它返回一个Integer
它不能返回一个大于的数字2^31 - 1
。当我尝试获取一个大于2^31 - 1
它的值时,它会错误地返回一个负整数。
如果它不可能返回一个无符号的 32 位整数,那么getIntValue
接受它有什么意义呢?FORMAT_UINT32
有什么我想念的吗?
我唯一的选择是使用getValue()
并手动将其转换为long
?
android - 我可以检测到我的 android 应用程序的特定权限已被删除吗?
因此,随着 Android 4.3 的到来,可以选择性地禁用应用程序的特定权限。
这显然会导致应用程序失去正确运行所需的权限的问题。
当权限被撤销时系统是否会广播消息,或者我怎么知道我的应用程序不再具有某个权限?理想情况下,我想通知用户关闭权限 A 会破坏应用程序中的 xyz。
android - jellyBean 4.3 版本中的可扩展列表视图将组图标指示器向右移动?
以下方法在 android 版本 jellybean 4.3 中不起作用。
有谁知道解决方案?提前致谢。
android - Text Border Issue With Android 4.3
My Nexus 10 updated to Android 4.3 a couple days ago and I noticed now I'm having a weird issue with my EditText
views. Instead of the black border being around the text, it's around the view.
Here's my code I used for drawing the black border around my text. It works great..or so I thought. This could possibly be a bug with Android 4.3? That's the only device I have the issue on, and I didn't it when it was running Android 4.2.
Override draw method:
drawBackground:
The paint:
Any opinions? I feel like it could be a bug, but it's hard to say. I could just be missing something. I've tried a lot of different things, but haven't found a solution for Android 4.3 yet.