第一天上班

ActivityManager: Warning: Activity not started, its current task has been brought to the front
当一个程序如Safe,被复制了一个Safe1以后,在DDMS中查看,包名必须都是一样的。所以如果已经部署了
一个Safe的话,再部署Safe1的话。就会出现
ActivityManager: Warning: Activity not started, its current task has been brought to the front
。所以就不存在,我怀疑的如果adb uninstall com.ith.demo到底卸载的是哪个程序的问题了。


当遇到这种情况。点击一个大界面A中的一项,跳到一个小界面B时,如果这个时候A界面包含了B界面,
一般考虑到效率问题,是不会在A界面中用intent激活B界面的。这样涉及到两个Activity,
又进栈出栈操作,效率较低。这个时候可以隐藏A界面中其余的界面,只露出B界面。这样
就只对一个Activity操作。效率较高。

android中几个界面共享一个布局

在layout文件夹下定义一个comm.xml,如下:

<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout android:id="@+id/FrameLayout01"
android:background="@drawable/layout_background"
android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">

<TextView android:text="hello"
android:id="@+id/TextView01"
android:textColor="#f0f0f0"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
</LinearLayout>

在要使用的这个界面的地方,这样使用:

<include layout="@layout/comm"/>

 

早上6点就出门了,晚上8点左右才到。

第一次打卡阿,时间是18:39分,第一天哥就多上了一个小时的班啊。

中午吃饭5块钱的面皮好少阿。我还买了一瓶营养快线。然后就没了。

晚上,妈妈给我打电话,爸爸也给我打电话。他们真关心我啊。

我要好好加油!

posted on 2012-08-09 20:50  lightman_21  阅读(112)  评论(0)    收藏  举报

导航