问题
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