我试图在我的Phonegap项目的config.xml上使用元素"gap:config-file"来修改生成的AndroidManifest.xml的一些元素,但它不起作用.
我将此添加到我的config.xml:
<gap:config-file platform="android" parent="/manifest">
<supports-screens
android:xlargeScreens="false"
android:largeScreens="false"
android:smallScreens="false" />
</gap:config-file>
Run Code Online (Sandbox Code Playgroud)
然后我做了
phonegap build android
Run Code Online (Sandbox Code Playgroud)
一切都是成功的,但是当我打开AndroidManifest.xml时,没有任何变化,仍然会出现旧的值:
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
Run Code Online (Sandbox Code Playgroud)
我已经尝试了几个小时,但我无法做到这一点.
任何的想法?
谢谢!古斯塔沃
我正在测试AltBeacon的Android Beacon库 http://altbeacon.github.io/android-beacon-library/index.html
我正在监视一个"通用"区域,只设置第一个id(UUID),并将id2和id3设置为null.
Region region = new Region(uuid, Identifier.parse(uuid), null, null);
Run Code Online (Sandbox Code Playgroud)
我收到了didEnterRegion没有问题,但我有一个问题.在didEnterRegion中,我将Region作为参数接收,但我能否知道启动该事件的具体信标?我想知道启动此事件区域的信标的id1,id2和id3,这可能吗?
提前致谢
我正在使用AltBeacon库来定位我的设备附近的信标.我使用的是库的所有默认值,即扫描周期为1100毫秒,扫描周期为0毫秒.
该库每1100毫秒调用一次我的监听器,但问题是在很多这样的调用中,没有信标检测.信标仅被检测到大约30%-40%的呼叫,另外70%的呼叫表示周围没有信标.
我该怎么做才能解决这个问题?
问候