My First App

I studied the lesson in android develop guide.

I need make a summary when I finish a lesson for I can remember it and review it sometimes.

The first lesson is build your first app. In the lesson, I know how to make an activity. It's so easy that I will review it for you.

First, create an android project. That is easy. I will skip it. 

Then run your application. In this component, you will know the project's file system.The java code is in src/ that minds it's the directory for the app's main source files. And the UI resource is in res/. Well,res/l has layout/ while contain  the directory for file that define your app's user interface. And res/ also has a file called values/ which contains a collection of resource ,such as string and color definitions.

Second, build a sample user interface. You should write code for xml file in res/ .That means the xml file in res/ control the UI. Remember it for it's very important.

Then,starting another activity. You will build a new java file call DisplayMessageActivity.java. This file is to build another activity. This two java files relationship is When I click the button ,the string will send to DisplayMessageActivity.java for Mainactivity.java. It 's so easy ,isn't it?

Yeah, we have finished build My First App. You can run it on your android drivers. I will summarize the next chapter when I finish it. See you soon.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值