iPhone已停用连接itunes怎么办iphone连接itunes显示被口令锁定iOS:忘记密码或设备停用
分类:
移动开发 时间:
2015-02-04 14:34:09
阅读次数:
142
来源:http://www.cnblogs.com/ygm900/p/3599081.htmlCocoa框架是iOS应用程序的基础,了解Cocoa框架,对开发iOS应用有很大的帮助。1、Cocoa是什么?Cocoa是OS X和 iOS操作系统的程序的运行环境。是什么因素使一个程序成为Cocoa程序呢...
分类:
移动开发 时间:
2015-02-04 14:28:12
阅读次数:
168
思路:ListView中添加一个SimpleAdapter,SimpleAdapter中动态添加大标题及大标题下的小标题,接下来按照思路来进行。第一步:建立ListView布局文件list.xml 1 7 11 12 第二步:建立list_items_menu.x...
分类:
移动开发 时间:
2015-02-04 14:21:42
阅读次数:
149
例子,在ScrollView下加入的组件,无论如何也不能自动扩展到屏幕高度。布局文件。[html] 效果图。.尽管已经设置了android:layout_height="fill_parent",但是,整个LinearLayout和TextView还是不能充满整个屏幕。解决办法。在Scrol...
分类:
移动开发 时间:
2015-02-04 14:21:45
阅读次数:
138
转载请注明出处:http://blog.csdn.net/qinjuning 在Android系统源代码中,绝大多数应用程序的UI布局採用了Preference的布局结构,而不是我们平时在模拟器中构建应用程序时使用的View布局结构,比如,Setting模块中布局。当然,凡事都有例外,FMRadio...
分类:
移动开发 时间:
2015-02-04 14:20:13
阅读次数:
240
首先用代码来说明NSJSONReadingMutableContainers的作用: 1 NSString *str = @"{\"name\":\"kaixuan_166\"}"; 2 3 NSMutableDictionary *dict = [NSJSONSerial...
分类:
移动开发 时间:
2015-02-04 14:16:05
阅读次数:
218
什么是Intent Intent是一种运行时绑定(run-time binding)机制,它能在程序运行过程中连接两个不同的组件。通过Intent,你的程序可以向Android表达某种请求或者意愿,Android会根据意愿的内容选择适当的组件来完...
分类:
移动开发 时间:
2015-02-04 13:12:08
阅读次数:
202
将代码中的saveButton.submit()改为saveButton.click()
分类:
移动开发 时间:
2015-02-04 13:10:31
阅读次数:
256
题目:
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,2...
分类:
移动开发 时间:
2015-02-04 13:08:10
阅读次数:
256
1.1What is Swift
“Swift is an innovative new programming language for Cocoa and Cocoa Touch. Writing code is interactive and fun, the syntax is concise yet expressive, and apps run lightning-fast. Sw...
分类:
移动开发 时间:
2015-02-04 13:04:04
阅读次数:
221
Android中,Activity和Fragment之间传递对象,可以通过将对象序列化并存入Bundle或者Intent中进行传递,也可以将对象转化为JSON字符串,进行传递。
序列化对象可以使用Java的Serializable的接口、Parcelable接口。转化成JSON字符串,可以使用Gson等库。
1.Serializable
Model
...
分类:
移动开发 时间:
2015-02-04 13:04:04
阅读次数:
279
ApplicationContext ac1 = new FileSystemXmlApplicationContext("com/spark/system/applicationContext.xml");//如果配置文件放在文件系统的目录下则优先使用该方式
//com/spark/system/applicationContext.xml等价于"file:com/spark/system/a...
分类:
移动开发 时间:
2015-02-04 13:04:21
阅读次数:
227
在这篇文章中(参见 android中如何下载文件并显示下载进度 )我们讲到了如何下载文件的问题,今天我介绍如何实现应用的自动更新,其中下载apk模块用到了前一篇文章中的知识。当然这只是一个实现的框架,你需要根据自己的需求是改变一些细节。
自动更新的原理
其实就是客户端将自己的版本号与服务端的版本号进行比对,版本号小于服务端则意味着有新版本,当然服务端的版本号是需要人工放上去的。
...
分类:
移动开发 时间:
2015-02-04 13:03:14
阅读次数:
193
看一段代码:
package com.example.threaddemo;
import android.os.Bundle;
import android.os.Handler;
import android.app.Activity;
import android.util.Log;
import android.view.Menu;
public class ThreadDemo e...
分类:
移动开发 时间:
2015-02-04 13:01:27
阅读次数:
189
1、请修改styles.xml,将
0dp
4dp
4dp
@dimen/app_icon_padding_top
4dp
13sp
修改为:
0dp
4dp
4dp
@dime...
分类:
移动开发 时间:
2015-02-04 13:00:25
阅读次数:
178
1、 AppsCustomizePagedView.java修改两处如下:
1) private void setupPage(AppsCustomizeCellLayout layout) {
layout.setGridSize(mCellCountX, mCellCountY);
// Note: We force a measure here to ...
分类:
移动开发 时间:
2015-02-04 12:59:33
阅读次数:
183
Android wakelock分为两层
linux层和应用层
1. 查看linux 的waklock
# cat /sys/power/wake_lock
PowerManagerService.Display
PowerManagerService.WakeLocks
...
分类:
移动开发 时间:
2015-02-04 12:59:23
阅读次数:
551