Cordova PhoneGap Floating Icon Android 5+ Samsung S6

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 11:54:07

问题


I'm currently building an App with Cordova/PhoneGap for IOS and Android.

I am having an issue with a floating Icon that appears on my Samsung S6 but not an Samsung S4. I've also tested the app on IOS devices and Asus Android 4.4.2 and it doesn't appear on those devices.

This is a movable floating icon like the android HALO project.

Does anyone know how to remove the floating Icon completely?

Here is the link to the screen shot I took.


回答1:


I found this via a web search: http://forums.androidcentral.com/samsung-galaxy-s6/513901-what-little-circle-three-dots-inside.html

Looks like you need to compile your app against the 5.0 SDK.




回答2:


Thanks Kyle for pointing me in the right direction.

To solve this issue, go to your androidconfig.xml and add the line

 <preference name="android-targetSdkVersion" value="22" />

This will make that floating menu Icon go away.

value = "22" is targeting Android 5.1.1

I'm guessing that since I didn't specify what Android SDK to use it adds a menu button (Action Overflow button). On the Samsung S6 it overflows to a floating menu icon.



来源:https://stackoverflow.com/questions/31728027/cordova-phonegap-floating-icon-android-5-samsung-s6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!