public class LockActivity extends Activity{ private static final int FLAG_HOMEKEY_DISPATCHED = 0x80000000; @Override protected void onCreate(Bundle s....
分类:
其他好文 时间:
2014-07-10 13:59:26
阅读次数:
179
1 #import 2 3 #define FILE_PATH(filePath) [File path:(filePath)] 4 #define ROOT_PATH [File rootPath] 5 #define BUNDLE_PATH(fi...
分类:
其他好文 时间:
2014-07-10 11:32:48
阅读次数:
155
Ruby这个就不用多说了RVM用于帮你安装Ruby环境,帮你管理多个Ruby环境,帮你管理你开发的每个Ruby应用使用机器上哪个Ruby环境。Ruby环境不仅仅是Ruby本身,还包括依赖的第三方Ruby插件。都由RVM管理。Rails这个也不用多说,著名开发框架。详细看http://zh.wikip...
分类:
其他好文 时间:
2014-06-27 22:33:00
阅读次数:
293
Bundle类是一个key-value对,“A mapping from String values to various Parcelable types.”类继承关系:java.lang.Object android.os.BundleBundle类是一个final类:public final....
分类:
移动开发 时间:
2014-06-27 15:16:23
阅读次数:
271
上一节我以“计算男女生标准体重”为例详细介绍了如何使用Intent、Bundle等实现不同Activity之间数据的传递问题,本节将仍以“计算男女生标准体重”为例详细介绍如何利用startActivityForResult()实现数据的返回,即从第二页面返回第一页面。
一、目标
如下图,用户在第一个页面填写完数据后点击“计算”按钮,程序跳转到第二个页面,并显示计算结果。在用户点击第...
分类:
其他好文 时间:
2014-06-27 09:34:08
阅读次数:
210
1.将图片放进images文件夹,并改名为images.bundle.拖进项目中
2拖动scrollView 并在左上角按住Scroll View 拖到View Controller中 选择deleagte.
这时候.指定Scroll View的代理为controller.
为指定的controller加上代理
#import
@interface C...
分类:
移动开发 时间:
2014-06-27 07:19:43
阅读次数:
259
packagecom.example.examples_05_14;importandroid.os.Bundle;importandroid.app.Activity;importandroid.util.DisplayMetrics;importandroid.view.Menu;importa...
分类:
其他好文 时间:
2014-06-26 17:39:19
阅读次数:
153
1.基于消息的通信机制 Intent ---bundle ,extra数据类型有限,比如遇到不可序列化的数据Bitmap,InputStream,或者LinkedList链表等等数据类型就不太好用。2.利用static静态数据,public static成员变量;3.基于外部存储的传输,File/P...
分类:
移动开发 时间:
2014-06-26 17:05:25
阅读次数:
273
1.当进行到生成上传包即:点击product》》archive 》》validation时;先是出现“the bundle does not contain an app icon for iphone / ipod touch of exactly '120x120' pixels”的错误解决方法...
分类:
移动开发 时间:
2014-06-25 18:58:03
阅读次数:
271
MainActivity如下:
package cc.cc;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.app.Activity;
import andro...
分类:
其他好文 时间:
2014-06-24 19:26:31
阅读次数:
169