问题原由:在服务器做系统的时候,当做好的阵列所有磁盘的容量大于2TB或者2TB以上的时候,就会出现大于2TB的磁盘容量在系统中无法显示,以至于浪费或者不能很好利用。解决方法:在服务器BIOS中将启动模式修改为UEFI。(有两种解决方案)在BIOS中把启动改成UEFI模式,此时磁盘分区表已经建立了,也...
分类:
其他好文 时间:
2014-08-14 13:18:28
阅读次数:
216
(1) standard 模式启动模式,每次激活Activity时都会创建Activity,并放入任务栈中。 (2) singleTop 如果在任务的栈顶正好存在该Activity的实例, 就重用该实例,否者就会创建新的实例并放入栈顶即使栈中已经存在该Act...
分类:
其他好文 时间:
2014-08-12 00:21:33
阅读次数:
183
Activity中有一个名称叫onCreate的方法。该方法是在Activity创建时被系统调用,是一个Activity生命周期的开始。可是有一点容易被忽视,就是onCreate方法的参数saveInsanceState。一般的程序开发中,很少用到这个参数。 onCreate方法的完整定义如下: p...
分类:
其他好文 时间:
2014-08-11 17:19:02
阅读次数:
255
During normal app use, the foreground activity is sometimes obstructed by other visual components that cause the activity to pause. For example, when a semi-transparent activity opens (such as one in the style of a dialog), the previous activity pauses. As...
分类:
移动开发 时间:
2014-08-09 02:36:37
阅读次数:
366
Properly stopping and restarting your activity is an important process in the activity lifecycle that ensures your users perceive that your app is always alive and doesn't lose their progress. There are a few of key scenarios in which your activity is stop...
分类:
移动开发 时间:
2014-08-09 02:36:17
阅读次数:
496
There are a few scenarios in which your activity is destroyed due to normal app behavior, such as when the user presses the Back button or your activity signals its own destruction by calling finish(). The system may also destroy your activity if it's curr...
分类:
移动开发 时间:
2014-08-09 02:35:56
阅读次数:
492
Activity和Servlet一样,都用了回调机制。我们通过类比servlet来学习Activity。当一个servlet开发出来之后,该servlet运行于Web服务器中。服务器何时创建servlet的实例,何时调用servlet的方法向用户生成响应,程序员无法控制,这种回调由服务器自行决定。A...
分类:
移动开发 时间:
2014-08-08 12:19:06
阅读次数:
386
当一个用户进入,退出,再次进入你的应用时,你的应用中的Activity 会在它的生命周期的各个状态下切换。例如,当你的activity第一次启动,它出现在系统的前方接受用户的焦点。在这个过程中,Android系统调用了一系列的生命周期方法来设置UI和其他组件。如果用户执行了一个操作,启动了另一个activity或者切换到其它应用中,你的activity会移动到后台(这时activity已经不可见,但是它的实力和状态都保持不变),系统会调用另外的一些生命周期方法。...
分类:
移动开发 时间:
2014-08-08 08:29:35
阅读次数:
181
Unlike other programming paradigms in which apps are launched with a main()method, the Android system initiates code in an Activity instance by invoking specific callback methods that correspond to specific stages of its lifecycle. There is a sequence of c...
分类:
移动开发 时间:
2014-08-08 08:28:45
阅读次数:
539
1.修改启动模式:进入命令行终端使用这个命令[root@localhost~]#vi/etc/inittabid:5:initdefault:5为图形界面模式3为多用户开发者模式敲击i进入编辑模式,将5修改为3执行Esc->:wq->reboot修改成功!2.修改root密码:a.启动系统,b.在界面启动时让它停留一下,随便按一下..
分类:
系统相关 时间:
2014-08-06 23:15:52
阅读次数:
446