已验证过javascript方法可以使用var deviceAgent = navigator.userAgent.toLowerCase(); 02. var agentID = deviceAgent.match(/(iphone|ipod|ipad|android)/); 03. if(a.....
分类:
移动开发 时间:
2014-11-24 20:37:25
阅读次数:
138
Android各种屏幕分辨率(VGA、HVGA、QVGA、WQVGA、WVGA、FWVGA) 详解 - lucherr 的学习历程 - 博客频道 - CSDN.NET http://blog.csdn.net/lucherr/article/details/8498400
分类:
移动开发 时间:
2014-11-24 20:33:17
阅读次数:
215
常做开发,怎么能不用框架。框架不仅可以加快我们开发人员的开发效率,还能提高程序的可维护性所以花点时间来学习几个比较优秀的框架还是很有必要的,这样可以省去很多我们去写单调重复的代码的时间,专注功能逻辑的实现,快准狠地开发出优秀的产品。本人更多的时间是在进行安卓开发,这里选取介绍的框架是andbase,...
分类:
移动开发 时间:
2014-11-24 20:27:23
阅读次数:
327
Android车载方案公司,为WinCE工厂服务,这是一种悲哀。
1、你要解释什么是时区,什么是UTC时间,Android的时区设置有什么好处,以及去掉时区设置的坏处。
2、你要解释为什么凯立德中显示的时间和系统时间有可能不一致。
3、手机屏幕投射到车机上,你要解释为什么大部分手机都不行,再深入一点,你要解释什么是WifiDisplay,什么是Airplay,即使能投射,为什么不能反向控制。...
分类:
移动开发 时间:
2014-11-24 19:16:09
阅读次数:
279
Android 5.0 Lollipop新的摄像头API...
分类:
移动开发 时间:
2014-11-24 19:17:31
阅读次数:
209
1. 下面这段manifest代码,你可以扔到你的某个activity中去,然后跑一下这个app,看看效果
2.分析:
(1)你看到的现象应该是,android framework 停止运行,google+停止运行之类的。
(2...
分类:
移动开发 时间:
2014-11-24 19:13:30
阅读次数:
149
视频播放 MediaPlayer.frameworkMPMoviePlayerViewController VS MPMoviePlayerControllerMPMoviePlayerViewControllerMPMoviePlayerController 版本支持Available in iO...
分类:
移动开发 时间:
2014-11-24 19:08:39
阅读次数:
249
package com.example.util;import java.io.BufferedReader;import java.io.DataOutputStream;import java.io.IOException;import java.io.InputStreamReader;imp...
分类:
移动开发 时间:
2014-11-24 19:10:25
阅读次数:
283
//检查更新-(void)onCheckVersion{//获取当前版本 NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary]; NSString *currentVersion = [infoDic objectForKe.....
分类:
移动开发 时间:
2014-11-24 19:08:39
阅读次数:
165
1.addtarget 的。部分使用事件没有直接的操作方式,需要进行调用。就要用addTarget。- (void)setupCustomView { self.customView = [[CHView alloc] init]; self.customView.translatesAuto...
分类:
移动开发 时间:
2014-11-24 19:05:17
阅读次数:
475
对于Android开发者来说深入了解Java的集合类很有必要主要是从Collection和Map接口衍生出来的,目前主要提供了List、Set和 Map这三大类的集合,今天就他们的子类在标准情况和多线程下的性能做简单的分析。 Collection接口主要有两种子类分别为List和Set,区别主...
分类:
移动开发 时间:
2014-11-24 19:03:00
阅读次数:
176
面试题目一、请定义这样一个函数function repeat (func, times, wait) {}这个函数能返回一个新函数,比如这样用var repeatedFun = repeat(alert, 10, 5000)调用这个 repeatedFun ("hellworld")会alert十次...
分类:
移动开发 时间:
2014-11-24 19:00:30
阅读次数:
177
1.xml布局文件main.xml 1 2 6 7 14 15 16 21 22 item.xml 1 2 7 8 13 14 21 22 23 2.java代码 1 public class MainActi...
分类:
移动开发 时间:
2014-11-24 18:52:18
阅读次数:
207
由于之前对于android的事件传递机制不了解,今天正好不忙,赶紧抽出时间来理一下这方面的知识,本文结合demo,对android的事件传递机制进行分析。在事件传递过程中,离不开以下三个方法:1.dispatchTouchEvent分发touchEvent,返回值为true时表示TouchEvent...
分类:
移动开发 时间:
2014-11-24 18:49:50
阅读次数:
327
LayoutInflater:一般用于查找res/layout下的布局文件,findViewById()一般是用于查找布局下的各种控件一般:我们使用LayoutInflater.from(context).inflate(R.layout.layout, this, true) 来实现布局的动态加载
分类:
移动开发 时间:
2014-11-24 18:44:03
阅读次数:
179