码迷,mamicode.com
首页 > 移动开发
转载[Mobile Web]Web中如何分辨移动设备?(iPad、iPhone、Android)
已验证过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) 详解
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框架源码解读( 一)
常做开发,怎么能不用框架。框架不仅可以加快我们开发人员的开发效率,还能提高程序的可维护性所以花点时间来学习几个比较优秀的框架还是很有必要的,这样可以省去很多我们去写单调重复的代码的时间,专注功能逻辑的实现,快准狠地开发出优秀的产品。本人更多的时间是在进行安卓开发,这里选取介绍的框架是andbase,...
分类:移动开发   时间:2014-11-24 20:27:23    阅读次数:327
UIApplicationState
UIApplicationState...
分类:移动开发   时间:2014-11-24 19:21:10    阅读次数:689
Android车载方案公司,你该何去何从?
Android车载方案公司,为WinCE工厂服务,这是一种悲哀。 1、你要解释什么是时区,什么是UTC时间,Android的时区设置有什么好处,以及去掉时区设置的坏处。 2、你要解释为什么凯立德中显示的时间和系统时间有可能不一致。 3、手机屏幕投射到车机上,你要解释为什么大部分手机都不行,再深入一点,你要解释什么是WifiDisplay,什么是Airplay,即使能投射,为什么不能反向控制。...
分类:移动开发   时间:2014-11-24 19:16:09    阅读次数:279
Android系统架构
一图胜千言...
分类:移动开发   时间:2014-11-24 19:16:44    阅读次数:134
Android 5.0 Lollipop新的摄像头API
Android 5.0 Lollipop新的摄像头API...
分类:移动开发   时间:2014-11-24 19:17:31    阅读次数:209
android新bug,解析app配置文件时出错
1. 下面这段manifest代码,你可以扔到你的某个activity中去,然后跑一下这个app,看看效果 2.分析: (1)你看到的现象应该是,android framework 停止运行,google+停止运行之类的。 (2...
分类:移动开发   时间:2014-11-24 19:13:30    阅读次数:149
IOS音频视频
视频播放 MediaPlayer.frameworkMPMoviePlayerViewController VS MPMoviePlayerControllerMPMoviePlayerViewControllerMPMoviePlayerController 版本支持Available in iO...
分类:移动开发   时间:2014-11-24 19:08:39    阅读次数:249
android网络请求工具类
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
iOS 版本更新检查
//检查更新-(void)onCheckVersion{//获取当前版本 NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary]; NSString *currentVersion = [infoDic objectForKe.....
分类:移动开发   时间:2014-11-24 19:08:39    阅读次数:165
ios中addtarget的用法
1.addtarget 的。部分使用事件没有直接的操作方式,需要进行调用。就要用addTarget。- (void)setupCustomView { self.customView = [[CHView alloc] init]; self.customView.translatesAuto...
分类:移动开发   时间:2014-11-24 19:05:17    阅读次数:475
Android开发之Java集合类性能分析
对于Android开发者来说深入了解Java的集合类很有必要主要是从Collection和Map接口衍生出来的,目前主要提供了List、Set和 Map这三大类的集合,今天就他们的子类在标准情况和多线程下的性能做简单的分析。 Collection接口主要有两种子类分别为List和Set,区别主...
分类:移动开发   时间:2014-11-24 19:03:00    阅读次数:176
小米Web前端JavaScript面试题
面试题目一、请定义这样一个函数function repeat (func, times, wait) {}这个函数能返回一个新函数,比如这样用var repeatedFun = repeat(alert, 10, 5000)调用这个 repeatedFun ("hellworld")会alert十次...
分类:移动开发   时间:2014-11-24 19:00:30    阅读次数:177
Android学习笔记之控件GridView
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中Touch事件的传递机制
由于之前对于android的事件传递机制不了解,今天正好不忙,赶紧抽出时间来理一下这方面的知识,本文结合demo,对android的事件传递机制进行分析。在事件传递过程中,离不开以下三个方法:1.dispatchTouchEvent分发touchEvent,返回值为true时表示TouchEvent...
分类:移动开发   时间:2014-11-24 18:49:50    阅读次数:327
android:LayoutInflater
LayoutInflater:一般用于查找res/layout下的布局文件,findViewById()一般是用于查找布局下的各种控件一般:我们使用LayoutInflater.from(context).inflate(R.layout.layout, this, true) 来实现布局的动态加载
分类:移动开发   时间:2014-11-24 18:44:03    阅读次数:179
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!