Android Studio + WebApi (1) belongs to our own App, androidwebapi
AndroidStudio (hereinafter referred to AS "AS"), AS google's parent son, has finally developed a decent android ide, and does not need to be Adt in eclipse any more, A lot of integration. Not to mention, this series intends to use AS + WebApi to write an Oa App (AS to write App code and WebApi to write interface code ). Some people have said, why not use SSM for writing? After all, SSM is a java stuff. After all, most of the Net developers in the Garden (which can be Chongyang but cannot be Mei Wai), and I am a rookie-level developer, you know.
Opening
There are also a lot of articles in the garden for setting up the As environment. We will not start from building the environment. We will start with the code (I am also a little cainiao. I hope we can learn together, if you have any mistakes, please correct them. You can make a brick at any time ).
First, we add an empty anroid project. Let's add the content step by step and start it up.
The four components we have added (activity, BroadCastReceiver, Service, and Content Provider) must be registered in androidmanifest. xml, directly
Run it to see the effect:
Next, let's modify the app name and topic.
Don't ask me how to modify it. (once you understand the origin of R, you will understand it)
I was going to introduce Splash, but I saw an article about geek Park.
Well, let's talk about it today. The next article will talk about the layout of login and registration.
For that sentence, I prefer food. If you have any questions, please make a brick.