Android Studio + WebApi (1) belongs to our own App, androidwebapi

Source: Internet
Author: User

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.

   

  

 

  

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.