文件名称:Android_helloworld
- 所属分类:
- Linux/Unix编程
- 资源属性:
- [Android] [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 682kb
- 下载次数:
- 0次
- 提 供 者:
- wu***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
实验功能:
在第一个Hello World!为标签的activity中显示good,该界面中有一个名为Next的按钮。点击Next按钮进入到第二个activity中去,第二个界面中只有1个Close按钮。当然,据网上有人将要比较安全的实现关闭程序的功能也不是挺简单的,因为android有专门的退出键返回键等。所以该Close按钮暂时没去实现它。
我的第1个activity为HelloworldActivity,第2个activity为NextActivity.
实验说明:
1. 要实现从1个activity跳到另一个activity,这需要通过intent来实现。当然我们需要在Next按钮上绑定一个按钮按下的监听器(这些好像是java中的知识,可我从没学过java,只能用到哪个地方再去学了),一旦该按钮监听到有按键按下,则通过intent将指定的第2个activity触发,这样就完成了本次试验的功能。
2.在工程中,每一个activity都对应一个xml文件,xml文件主要是控制各控件的位置和属性的.
3. asserts目录下可以存放任何文件,res目录下也可以存放任意文件,且res下的文件会在gen目录下的R.java文件中自动生成一个全局id。
4. res目录下的values目下的strings.xml中的控件也是每个控件都在R.jar中对应一个id号。当然layout下的main.xml文件也是一样的。
-Experimental features:
In the first Hello World! For the activity of the label to display the good, the interface has a button called Next. Click the Next button to enter the second activity, the second interface is only a Close button. Of course, some people will be safer to close the program, according to online function is not very simple, and android have a dedicated exit key and return key. The Close button temporarily failed to achieve it.
I an activity for HelloworldActivity 2 activity is NextActivity.
Experiments show that:
(1) from one activity to another activity, which requires intent to achieve. Of course we need to bind on the Next button press of a button listener (like java in knowledge, but I never learned the java, and can only be used where to go to school). Once the button to listen to button is pressed,
在第一个Hello World!为标签的activity中显示good,该界面中有一个名为Next的按钮。点击Next按钮进入到第二个activity中去,第二个界面中只有1个Close按钮。当然,据网上有人将要比较安全的实现关闭程序的功能也不是挺简单的,因为android有专门的退出键返回键等。所以该Close按钮暂时没去实现它。
我的第1个activity为HelloworldActivity,第2个activity为NextActivity.
实验说明:
1. 要实现从1个activity跳到另一个activity,这需要通过intent来实现。当然我们需要在Next按钮上绑定一个按钮按下的监听器(这些好像是java中的知识,可我从没学过java,只能用到哪个地方再去学了),一旦该按钮监听到有按键按下,则通过intent将指定的第2个activity触发,这样就完成了本次试验的功能。
2.在工程中,每一个activity都对应一个xml文件,xml文件主要是控制各控件的位置和属性的.
3. asserts目录下可以存放任何文件,res目录下也可以存放任意文件,且res下的文件会在gen目录下的R.java文件中自动生成一个全局id。
4. res目录下的values目下的strings.xml中的控件也是每个控件都在R.jar中对应一个id号。当然layout下的main.xml文件也是一样的。
-Experimental features:
In the first Hello World! For the activity of the label to display the good, the interface has a button called Next. Click the Next button to enter the second activity, the second interface is only a Close button. Of course, some people will be safer to close the program, according to online function is not very simple, and android have a dedicated exit key and return key. The Close button temporarily failed to achieve it.
I an activity for HelloworldActivity 2 activity is NextActivity.
Experiments show that:
(1) from one activity to another activity, which requires intent to achieve. Of course we need to bind on the Next button press of a button listener (like java in knowledge, but I never learned the java, and can only be used where to go to school). Once the button to listen to button is pressed,
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Android开发历程_1(从1个activity挑战到另一个activity).docx
helloworld\.classpath
..........\.project
..........\.settings\org.eclipse.jdt.core.prefs
..........\AndroidManifest.xml
..........\bin\AndroidManifest.xml
..........\...\classes\com\example\helloworld\BuildConfig.class
..........\...\.......\...\.......\..........\HelloworldActivity$MyButtonListener.class
..........\...\.......\...\.......\..........\HelloworldActivity.class
..........\...\.......\...\.......\..........\NextActivity.class
..........\...\.......\...\.......\..........\R$attr.class
..........\...\.......\...\.......\..........\R$drawable.class
..........\...\.......\...\.......\..........\R$id.class
..........\...\.......\...\.......\..........\R$layout.class
..........\...\.......\...\.......\..........\R$menu.class
..........\...\.......\...\.......\..........\R$string.class
..........\...\.......\...\.......\..........\R$style.class
..........\...\.......\...\.......\..........\R.class
..........\...\classes.dex
..........\...\helloworld.apk
..........\...\jarlist.cache
..........\...\res\drawable-hdpi\ic_action_search.png
..........\...\...\.............\ic_launcher.png
..........\...\...\.........ldpi\ic_launcher.png
..........\...\...\.........mdpi\ic_action_search.png
..........\...\...\.............\ic_launcher.png
..........\...\...\.........xhdpi\ic_action_search.png
..........\...\...\..............\ic_launcher.png
..........\...\resources.ap_
..........\gen\com\example\helloworld\BuildConfig.java
..........\...\...\.......\..........\R.java
..........\ic_launcher-web.png
..........\libs\android-support-v4.jar
..........\proguard-project.txt
..........\project.properties
..........\res\drawable-hdpi\ic_action_search.png
..........\...\.............\ic_launcher.png
..........\...\.........ldpi\ic_launcher.png
..........\...\.........mdpi\ic_action_search.png
..........\...\.............\ic_launcher.png
..........\...\.........xhdpi\ic_action_search.png
..........\...\..............\ic_launcher.png
..........\...\layout\activity_helloworld.xml
..........\...\......\activity_next.xml
..........\...\menu\activity_helloworld.xml
..........\...\values\strings.xml
..........\...\......\styles.xml
..........\...\......-v11\styles.xml
..........\...\.........4\styles.xml
..........\src\com\example\helloworld\HelloworldActivity.java
..........\...\...\.......\..........\NextActivity.java
..........\bin\classes\com\example\helloworld
..........\...\.......\...\example
..........\gen\com\example\helloworld
..........\src\com\example\helloworld
..........\bin\classes\com
..........\...\res\drawable-hdpi
..........\...\...\drawable-ldpi
..........\...\...\drawable-mdpi
..........\...\...\drawable-xhdpi
..........\gen\com\example
..........\src\com\example
..........\bin\classes
..........\...\res
..........\gen\com
..........\res\drawable-hdpi
..........\...\drawable-ldpi
..........\...\drawable-mdpi
..........\...\drawable-xhdpi
..........\...\layout
..........\...\menu
..........\...\values
..........\...\values-v11
..........\...\values-v14
..........\src\com
..........\.settings
..........\assets
..........\bin
..........\gen
..........\libs
..........\res
..........\src
helloworld
helloworld\.classpath
..........\.project
..........\.settings\org.eclipse.jdt.core.prefs
..........\AndroidManifest.xml
..........\bin\AndroidManifest.xml
..........\...\classes\com\example\helloworld\BuildConfig.class
..........\...\.......\...\.......\..........\HelloworldActivity$MyButtonListener.class
..........\...\.......\...\.......\..........\HelloworldActivity.class
..........\...\.......\...\.......\..........\NextActivity.class
..........\...\.......\...\.......\..........\R$attr.class
..........\...\.......\...\.......\..........\R$drawable.class
..........\...\.......\...\.......\..........\R$id.class
..........\...\.......\...\.......\..........\R$layout.class
..........\...\.......\...\.......\..........\R$menu.class
..........\...\.......\...\.......\..........\R$string.class
..........\...\.......\...\.......\..........\R$style.class
..........\...\.......\...\.......\..........\R.class
..........\...\classes.dex
..........\...\helloworld.apk
..........\...\jarlist.cache
..........\...\res\drawable-hdpi\ic_action_search.png
..........\...\...\.............\ic_launcher.png
..........\...\...\.........ldpi\ic_launcher.png
..........\...\...\.........mdpi\ic_action_search.png
..........\...\...\.............\ic_launcher.png
..........\...\...\.........xhdpi\ic_action_search.png
..........\...\...\..............\ic_launcher.png
..........\...\resources.ap_
..........\gen\com\example\helloworld\BuildConfig.java
..........\...\...\.......\..........\R.java
..........\ic_launcher-web.png
..........\libs\android-support-v4.jar
..........\proguard-project.txt
..........\project.properties
..........\res\drawable-hdpi\ic_action_search.png
..........\...\.............\ic_launcher.png
..........\...\.........ldpi\ic_launcher.png
..........\...\.........mdpi\ic_action_search.png
..........\...\.............\ic_launcher.png
..........\...\.........xhdpi\ic_action_search.png
..........\...\..............\ic_launcher.png
..........\...\layout\activity_helloworld.xml
..........\...\......\activity_next.xml
..........\...\menu\activity_helloworld.xml
..........\...\values\strings.xml
..........\...\......\styles.xml
..........\...\......-v11\styles.xml
..........\...\.........4\styles.xml
..........\src\com\example\helloworld\HelloworldActivity.java
..........\...\...\.......\..........\NextActivity.java
..........\bin\classes\com\example\helloworld
..........\...\.......\...\example
..........\gen\com\example\helloworld
..........\src\com\example\helloworld
..........\bin\classes\com
..........\...\res\drawable-hdpi
..........\...\...\drawable-ldpi
..........\...\...\drawable-mdpi
..........\...\...\drawable-xhdpi
..........\gen\com\example
..........\src\com\example
..........\bin\classes
..........\...\res
..........\gen\com
..........\res\drawable-hdpi
..........\...\drawable-ldpi
..........\...\drawable-mdpi
..........\...\drawable-xhdpi
..........\...\layout
..........\...\menu
..........\...\values
..........\...\values-v11
..........\...\values-v14
..........\src\com
..........\.settings
..........\assets
..........\bin
..........\gen
..........\libs
..........\res
..........\src
helloworld