应用跳设置页面有2个方法//第一种,仅支持ios8以上版本 [[UIApplication sharedApplication]openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]]; //第二种--需要...
分类:
移动开发 时间:
2015-04-15 18:43:33
阅读次数:
126
服务类,一定要在清单文件中注册public class lightService extends Service { private boolean ifrun = false; @Override public IBinder onBind(Intent intent) { ...
分类:
移动开发 时间:
2015-04-15 18:42:57
阅读次数:
138
Demo源码位置:http://git.oschina.net/zj2012zy/Android-Demo/tree/master/AndroidDemo/headset一般需要用户信息的好多的也需要设置用户头像,通常设置用户头像的操纵要么从手机选择一张图片,要么直接通过手机拍照进行设置。示意图如下...
分类:
移动开发 时间:
2015-04-15 18:42:15
阅读次数:
157
下载地址:http://search.cpan.org/CPAN/authors/id/Z/ZI/ZIGOROU/Nagios-Plugins-Memcached-0.02.tar.gzhttp://cpan.uwinnipeg.ca/cpan/authors/id/Z/ZI/ZIGOROU/Nag...
分类:
移动开发 时间:
2015-04-15 18:35:59
阅读次数:
166
//// FirstViewController.h// 控制器数据传递//// Created by wangtouwang on 15/4/15.// Copyright (c) 2015年 wangtouwang. All rights reserved.//#import @inte...
分类:
移动开发 时间:
2015-04-15 18:36:10
阅读次数:
136
nagios在启动时报错# service nagios restartRunning configuration check…done.Stopping nagios: done.Starting nagios:This account is currently not available.don...
分类:
移动开发 时间:
2015-04-15 18:35:35
阅读次数:
130
参考1:http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android-apps/2.0_r1/com/android/mms/ui/NumberPickerDialog.java?av=h? 参考2:http://blog.csdn.net/sun_star1chen/...
分类:
移动开发 时间:
2015-04-15 17:24:21
阅读次数:
210
IOS 系统开关控件简单使用总结: 初始化: - (instancetype)initWithFrame:(CGRect)frame;? 这个frame是没有意义的,系统的开关控件大小是确定的。 设置开关开启状态时的颜色 @property(nonatomic, retain) UIC...
分类:
移动开发 时间:
2015-04-15 17:20:45
阅读次数:
148
原因:
安卓自带的控件没有镜像功能,没关系我们可以自己实现一个。其实很简单,重写系统控件的draw方法,不是ondraw方法。具体可以看源码
解决方案:
这是我写的Seekbar的镜像,公司需求
package com.finals.oilrank.util.view;
import android.content.Context;
import android.graphics.Can...
分类:
移动开发 时间:
2015-04-15 17:20:02
阅读次数:
259
android里边的渲染器的使用主要是shader的子类,shader继承自object,他的子类有:
1、BitMapShader:BitMapShader 是bitmap渲染器,看名字就知道,
BitmapShader是Shader的子类,可以通过Paint.setShader(Shader shader)进行设置、
这里我们只关注BitmapSha...
分类:
移动开发 时间:
2015-04-15 17:19:23
阅读次数:
199
组件有Public和Private的概念,是否能被其他方调用。通过android:exported字段来确定,android:exported="true"表示能,反之不行。
默认情况下,组件在AndroidMainfest声明中没有 interfliter 那么exported为false,有了interfliter为true.当然我们可以直接输入android:exported来自己控制。...
分类:
移动开发 时间:
2015-04-15 17:19:37
阅读次数:
239
public class PhoneSIMCInfo {
/**手机管理工具类*/
private TelephonyManager telephonyManager;
/**国际移动用户识别码*/
private String mImsi;
public PhoneSIMCInfo(Context context) {
telephonyManager = (TelephonyMan...
分类:
移动开发 时间:
2015-04-15 17:15:58
阅读次数:
210
Duang! 各类运动爱好者的福音来啦!
蜗牛圈圈-最智能的圈速计时助手
扫描二维码下载体验
【产品简介】
-蜗牛圈圈是一款专业的圈速计时工具,帮助您获得整个运动过程中的各项数据,保存记录,分享激情。轻量实用,简洁清新,数据准确,为您的生活添加激情与活力。
【蜗牛圈圈功能】
-圈圈记录:基于GPS定位技术和独有的算法,精确追踪你的运动轨迹,实时监控运动速度,里程,时间,...
分类:
移动开发 时间:
2015-04-15 17:15:44
阅读次数:
232
要给 TextView 加上特殊效果,方式主要有几种:
第一种,自动应用效果,使用 android:autolink 属性,如:
Java代码
"http://schemas.android.com/apk/res/android"
android:id="@+id/text1"
android:la...
分类:
移动开发 时间:
2015-04-15 17:12:25
阅读次数:
165
博主目前从事AndroidTVBox开发,基于Android源码。所以经常需要全编Android源码,上面提到的是全编源码过程中碰到的一个问题由于网上没有解决方法,所以分享出来。
前段时间出(android系统)版本编译的时候,偶然间发现了这个问题:
zip error: Invalid command arguments (cannot repeat names in zip file)
make: *** [out/target/product/k200_hdmiin/system/etc/recove...
分类:
移动开发 时间:
2015-04-15 17:12:57
阅读次数:
302
不废话,贴代码.这里对图片进行了旋转操作
方法写在UIImage的类别里
- (UIImage *) croppedImage:(CGRect)cropRect {
CGImageRef croppedCGImage = CGImageCreateWithImageInRect(self.CGImage ,cropRect);
UIImage *croppedImage = [...
分类:
移动开发 时间:
2015-04-15 17:10:22
阅读次数:
135