首页 > 移动平台
利用keepalived构建高可用MySQL High Application
关于MySQL-HA,目前有多种解决方案,比如heartbeat、drbd、mmm、共享存储,但是它们各有优缺点。heartbeat、 drbd配置较为复杂,需要自己写脚本才能实现MySQL自动切换;对于mmm,生产环境中很少有人 用,且mmm 管理端需要单独运行一台服务器上,要是想实现高可用...
分类:移动平台   时间:2015-07-13 20:16:33    收藏:0  评论:0  赞:0  阅读:196
Android Layout属性笔记
android:id为控件指定相应的IDandroid:text指定控件当中显示的文字,需要注意的是,这里尽量使用strings.xml文件当中的字符串android:gravity指定View组件的对齐方式,比如说居中,居右等位置 这里指的是控件中的文本位置并不是控件本身android:layou...
分类:移动平台   时间:2015-07-13 20:11:32    收藏:0  评论:0  赞:0  阅读:231
[安卓基础] 008.Android中的显示单位
Android中的显示单位px (pixels)像素一般HVGA代表320x480像素,这个用的比较多。 dip或dp (device independent pixels)设备独立像素这个和设备硬件有关,一般为了支持WVGA、HVGA和QVGA 推荐使用这个,不依赖像素。sp (scaled pi...
分类:移动平台   时间:2015-07-13 20:06:02    收藏:0  评论:0  赞:0  阅读:129
IOS视频播放
IOS提供了叫做MPMoviePlayerController ?MPMoviePlayerViewController两个类,可以轻松用来实现视频播放。MPMoviePlayerViewController只能全屏播放视频。 [objc]?view plaincopy #import?"MainViewController...
分类:移动平台   时间:2015-07-13 18:55:13    收藏:0  评论:0  赞:0  阅读:356
android手势
一丶首先创建一个手势库二丶手势实例布局文件:在布局文件中有:<android.gesture.GestureOverlayViewandroid:id="@+id/gv"android:layout_width="match_parent"android:layout_height="match_parent"android:background="#000000"android:gestureStrokeWidth="10"android:g..
分类:移动平台   时间:2015-07-13 18:53:13    收藏:0  评论:0  赞:0  阅读:178
android进程(关闭自己和关闭其他进程)
一丶关闭自己(进程)//1.采用停止虚拟机的办法(不太推荐)System.exit(0);//2.采用谷歌提供的apiandroid.os.Process.killProcess(android.os.Process.myPid());二丶关闭其它的进程//1.拿到进程的报名Stringname=etpackage.getText().toString().trim();//判断内容if(TextUtils...
分类:移动平台   时间:2015-07-13 18:53:03    收藏:0  评论:0  赞:0  阅读:238
Android传感器
一丶传感器//拿到传感器管理器SensorManagersm=(SensorManager)getSystemService(SENSOR_SERVICE);//拿到手机里支持的所有的传感器List<Sensor>sensors=sm.getSensorList(Sensor.TYPE_ALL);for(inti=0;i<sensors.size();i++){Sensorsensor=sensors.get(i);System.out...
分类:移动平台   时间:2015-07-13 18:52:24    收藏:0  评论:0  赞:0  阅读:220
Android无数据线调试方法
平时在Android设备上调试程序,一般是将Android设备用数据线和PC机相连。 但是,在没有数据线的情况下也可以: 1、将PC机和Android设备连到同一网段。 2、获取Android设备的IP地址。 3、使用PC机控制终端,adb connect 192.168.1.111注:192.168.1.111为Android设备IP地址。...
分类:移动平台   时间:2015-07-13 18:50:43    收藏:0  评论:0  赞:0  阅读:161
程序日志--ios“文字长度--button与label的交互”程序
我的学习日志003:“文字长度--button与label的交互”程序 交代一下我做程序的工具:mac os x虚拟机10.9.3         Xcode6         百度^-^         参考书iPhone30天精通(本书已经过时,但是还有一定的参考价值,可以引导正确的学习方向)。 没什么新的知识点,直接放步骤和代码。 XCode新建SingleVie...
分类:移动平台   时间:2015-07-13 18:49:13    收藏:0  评论:0  赞:0  阅读:205
iOS真机沙河文件查看
1. 选Devices 2. 3. 选中第二行 4. 保存在桌面 5. 右击选中显示包内容 6. 以上环境为x-code6.3.1...
分类:移动平台   时间:2015-07-13 18:48:13    收藏:0  评论:0  赞:0  阅读:157
Android Unable to execute dex: Multiple dex files define异常解决
问题: [2015-07-13 16:08:25 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/loopj/android/http/AsyncHttpClient$1; [2015-07-13 16:08:25 - AhStu] Conversion to Dalvik format failed: U...
分类:移动平台   时间:2015-07-13 18:43:53    收藏:0  评论:0  赞:0  阅读:4280
Tablayout(Android) 的几个重要属性
1:app:tabSelectedTextColortab选中的字体颜色 2:app:tabTextColortab未被选中的字体颜色 3:app:tabIndicatorColorTab指示器下标的颜色...
分类:移动平台   时间:2015-07-13 18:39:44    收藏:0  评论:0  赞:0  阅读:386
报错Application windows are expected to have a root view controller at the end of application launc
控制台执行出现如下报错 Application windows are expected to have a root view controller at the end of application launch 解决办法 在AppDelegate.m中的 - (BOOL)application:(UIApplication *)application...
分类:移动平台   时间:2015-07-13 18:38:23    收藏:0  评论:0  赞:0  阅读:1433
[LeetCode][Java] Trapping Rain Water
题意: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. For example,  Given [0,1,0,2,1,0,1,3...
分类:移动平台   时间:2015-07-13 18:37:34    收藏:0  评论:0  赞:0  阅读:199
使用Kotlin开发Android应用(IV):自定义视图和Android扩展
在读完扩展函数和默认值这篇文章之后,那么接下来要介绍什么呢?在本系列第一篇文章中我们说过,Kotlin使得Android开发更加简单,本文我们将进一步作介绍。自定义视图你应该还记得,在说到Kotlin的局限性时,我们提到了在Ko...
分类:移动平台   时间:2015-07-13 18:34:03    收藏:0  评论:0  赞:0  阅读:729
使用Android Studio编译Fresco
从github下载下来之后运行,遇到的问题就是下面这个Error:Execution failed for task ':imagepipeline:ndk_build_bitmaps'. > A problem occurred starting process 'command 'ndk-build.cmd''首先配置一下NDK的系统环境变量NDK_HOME,并且将其添加到PATH里面 不会的看...
分类:移动平台   时间:2015-07-13 18:32:43    收藏:0  评论:0  赞:0  阅读:1882
Android源码之DeskClock (二)
1.概述 在DeskClock(一)中介绍了该程序源码的迁出,现在开始分析该应用的源码,DeskClock主要有四个功能,闹钟,时钟,定时,和秒表,在这篇博客中主要分析DeskClock的入口和主UI上的逻辑结构,在后续的系列中会把这四个功能都串起来....
分类:移动平台   时间:2015-07-13 18:32:23    收藏:0  评论:0  赞:0  阅读:298
android悬浮窗应用
部分代码如下: public void ShowAlertScreen(Context context,String titles,String content,String phone) { // 获取Service wm = (WindowManager) context.getSyste...
分类:移动平台   时间:2015-07-13 18:27:52    收藏:0  评论:0  赞:0  阅读:179
android intent和intent action大全
android intent和intent action大全1.Intent的用法:(1)用Action跳转1、使用Action跳转,如果有一个程序的AndroidManifest.xml中的某一个 Activity的IntentFilter段中 定义了包含了相同的Action那么这个Intent就...
分类:移动平台   时间:2015-07-13 18:23:52    收藏:0  评论:0  赞:0  阅读:195
android中handler用法总结
一、Handler的定义:Handler主要接收子线程发送的数据, 并用此数据配合主线程更新UI,用来跟UI主线程交互用。比如可以用handler发送一个message,然后在handler的线程中来接收、处理该消息,以避免直接在UI主线程中处理事务导致影响UI主线程的其他处理工作,Android提...
分类:移动平台   时间:2015-07-13 18:19:22    收藏:0  评论:0  赞:0  阅读:135
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!