移动平台-周排行
1.下载和Hbuilder X 版本对应的SDK 2.下载的SDK目录如下(不同版本可能会差异,具体参考官网) SDK目录说明: |-- HBuilder-Hello App离线打包演示应用 |-- HBuilder-Integrate-AS 集成uni-app或5+ app的最简示例 |-- SD ...
分类:移动平台 时间:2021-02-05 10:43:32 收藏:0 阅读:163
如何检测GPS有没有开启我是写在高德地图API接口中fail函数里的 openGps(){ let system = uni.getSystemInfoSync();// 获取系统信息 if (system.platform 'android') { // 判断平台 var context = pl ...
分类:移动平台 时间:2021-03-16 17:27:29 收藏:0 阅读:336
plus.device.setVolume(0) // 静音 plus.device.setVolume(0.6) // 开启声音,0 - 1 plus.device.getVolume() // 获取当前音量 ...
分类:移动平台 时间:2021-05-04 13:53:29 收藏:0 阅读:290
final AlertDialog.Builder alert = new AlertDialog.Builder(                         CloudSyncActivity.this);                 alert.setIcon(getResources().getDrawable(R.drawable.about));             ...
分类:移动平台 时间:2014-01-21 09:41:11 收藏:0 阅读:523
在xml文件中调用。 android:title="@string/secure_connect"android:orderInCategory="100"android:icon="@android:drawable/ic_menu_search" android:drawableRight="@...
分类:移动平台 时间:2014-09-01 22:32:03 收藏:0 阅读:16254
项目中实现 Android PopupWindow显示在控件上方或者下方 主要代码如下   View view = mInflater.inflate(R.layout.layout_popupwindow, null); PopUpwindowLayout popUpwindowLayout = (PopUpwindowLayout) view.findViewB...
分类:移动平台 时间:2015-01-23 16:29:04 收藏:0 阅读:11762
wcf basicHttpBinding content-type text/xml;charset=utf-8wsHttpBinding 'application/soap+xml; charset=utf-8'webHttpBinding 'application/x-www-form-urle...
分类:移动平台 时间:2015-03-17 12:12:28 收藏:0 阅读:3419
一般监听音量多是监听音量按键的点击,但是滚动音量条的拖动无法监听 解决办法: 当音量改变的时候系统会发出广播 我们只要监听该广播就可以了 该广播的action为AudioManager.VOLUME_CHANGED_ACTION 但是AudioManager.VOLUME_CHANGED_ACTION被隐藏,所以直接用 "android.media.VOL...
分类:移动平台 时间:2015-03-28 08:48:37 收藏:0 阅读:965
public static float getProcessCpuRate() { float totalCpuTime1 = getTotalCpuTime(); float processCpuTime1 = getAppCpuTime(); try { Thread.sleep(360); ...
分类:移动平台 时间:2015-04-12 12:02:15 收藏:0 阅读:335
1、错误描述 java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.CacheAwareContextLoaderDelegate.loadContext(CacheAwareContextLoaderDelegate.java:99) at...
分类:移动平台 时间:2015-04-17 23:51:01 收藏:0 阅读:3387
/** * @param view, the View you want to screenshot, such as WebView, etc. * @param width, screenshot's width. * @param height, screenshot's height. * @param scroll, true if you want to start c...
分类:移动平台 时间:2015-05-27 12:19:00 收藏:0 阅读:853
目的:通过LocalStrorage实现存储搜索历史--结合store.js实现代码如下:function addSearchHistory(key,value) { var oldArr = store.get(key); if(oldArr){ for (var i =...
分类:移动平台 时间:2015-09-02 09:25:14 收藏:0 阅读:769
刚升级了Xcode7之后,使用iOS9 SDK,启动app的时候一直报此错[AppName] was compiled with optimization - stepping may behave oddly; variables may not be available.手机上调试一启动就会出现...
分类:移动平台 时间:2015-09-22 08:50:57 收藏:0 阅读:2211
在Android开发中Map与String的转换在,在一些需求中经常用到,使用net.sf.json.JSONObject.fromObject可以方便的将string转为Map。但需要导入jar包。在(android)容易导致资源浪费。下面的方法在不到入jar包的情况下,也能满足需求。1)将Map...
分类:移动平台 时间:2015-12-01 16:20:40 收藏:0 阅读:568
在API23+以上,不止要在AndroidManifest.xml里面添加权限1 2 还要在JAVA代码中请求权限: 1 // Storage Permissions 2 private static final int REQUEST_EXTERNAL_STORAGE = 1; 3...
分类:移动平台 时间:2015-12-05 11:06:53 收藏:0 阅读:1298
前几天发现 AutoMapper 3.3 的一个性能问题(详见:遭遇AutoMapper性能问题:映射200条数据比100条慢了近千倍),于是将 AutoMapper 升级至最新的 5.1.1 看是否也存在这个性能问题。代码运行时在执行 Mapper.Map() 时出现下面的错误:Missing t... ...
分类:移动平台 时间:2016-09-15 22:49:46 收藏:0 阅读:2317
1.启动参数如下: bootargs=root=/dev/nfs nfsroot=192.168.1.8:/opt/wheezy_fs ip=192.168.1.9:192.168.1.8:192.168.1.1:255.255.255.0::eth0:on init=/bin/bash conso ...
分类:移动平台 时间:2016-10-06 12:37:58 收藏:0 阅读:2147
每次做项目都会遇见一些特别简单的问题,但是又很费时间来让你解决的问题。 1.本身想实现一个简单的画廊效果,可是每次图片的显示都不能显示在正中的位置,真的很烦人,也花费了很长时间。最终还是知道了原因。解决这个问题的方法有很多种,但是就这一种比较简单(虽然网上说的会占用内存,不过要是设置Android: ...
分类:移动平台 时间:2017-01-21 16:03:14 收藏:0 阅读:789
使用chrome浏览器,输入chrome://inspect可以调试android app里面的网页,如果inspect的时候,是空白, 那就在C:\Windows\System32\drivers\etc\hosts文件加入 61.91.161.217 chrome-devtools-fronte ...
分类:移动平台 时间:2017-03-03 10:55:47 收藏:0 阅读:2682
1、在AndroidManifest.xml中添加如下代码 2、在res目录下新建一个xml文件夹,并且新建一个provider_paths的xml文件 3、修改代码 ...
分类:移动平台 时间:2017-03-13 15:10:15 收藏:0 阅读:2501
117181920218121
上一页162412下一页
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!