New and added library for project in Android Studio

Source: Internet
Author: User

Write in front:

Android Studio has been released for some time now, the current version is 1.0.2

Before the beta, I started experimenting with projects that were much more powerful than eclipse.

In recent times, have been busy with the project, very little writing, O (╯-╰) O is not a good habit ah

See a lot of people on the web looking for Android studio project How to add library issues

Do not know is a master disdain to answer, or what is going on?

Anyway, I'm a layman, let me say a few words.


1, the new project is needless to say, now to create a new module, two ways





2, open as, which has the new Android Library and Import Existing Project, let's create a new





3, we will find out a module, and eclipse two projects in a space like



4, right click Module (Project) Select Open Module Settings, will appear as shown, and then select 3 Module dependencies, and then choose the library you just new



5, there is a baseactivity in the library, we will write a method,



6, we inherit the baseactivity in the library, then we can use the Showtoast method.


7, we will enter the text in the box with toast to bounce out the way



New and added library for project in Android Studio

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.