Android studio--Learning Series (1)

Source: Internet
Author: User

<?XML version= "1.0" encoding= "Utf-8"?><Manifestxmlns:android= "Http://schemas.android.com/apk/res/android" Package= "Com.wbh.hoge.crmapp">    <ApplicationAndroid:name= ". Base. Sdcrmapplication "Android:allowbackup= "true"Android:icon= "@drawable/ic_icon"Android:label= "@string/app_name"Android:largeheap= "true"Android:theme= "@android: Style/theme.light.notitlebar">        <ActivityAndroid:name= ". Activity.main.MainActivity" >            <!--set the main form -         <Intent-filter>            <ActionAndroid:name= "Android.intent.action.MAIN" />            <categoryAndroid:name= "Android.intent.category.LAUNCHER" />         </Intent-filter>        </Activity>        <ActivityAndroid:name= ". Activity.login.LoginActivity"></Activity>    </Application></Manifest>

1, the above is to set the main form;

2. Calling Other Forms

@SuppressLint ("Showtoast") Public classMainactivityextendsActivity {@Overrideprotected voidonCreate (Bundle savedinstancestate) {Super. OnCreate (savedinstancestate);        Setcontentview (R.layout.activity_main);    Init (); } @Overrideprotected voidonnewintent (Intent Intent) {//super.onnewintent (intent);init (); }     Public voidinit () {startactivity (NewIntent (Getapplicationcontext (), loginactivity.class)); }}

 3, gradle.builde  this seems not clear;

Statement is Android program apply plugin: ' Com.android.application ' android {compilesdkversion buildtoolsversion "23.0.2" D efaultconfig {ApplicationID "Com.wbh.hoge.crmapp" Minsdkversion targetsdkversion        NCode 1 Versionname "1.0"}//Remove lint Check for error lintoptions {Abortonerror false} buildtypes { Release {//whether to confuse minifyenabled false//confuse file location Proguardfiles getdef Aultproguardfile (' Proguard-android.txt '), ' Proguard-rules.pro '}}}dependencies {//Compile Libs directory for all JAR packages Comp Ile Filetree (dir: ' Libs ', include: [' *.jar ']) testcompile ' junit:junit:4.12 ' compile ' com.android.support:appcompat- v7:23.1.1 ' compile ' com.android.support:support-v4:23.1.1 ' compile ' com.umeng:fb:5.4.0 ' compile ' com.jiechic.libr ary:xutils:2.6.14 '}repositories {jcenter () Maven {URL ' https://raw.githubusercontent.com/umeng/mvn-repo-umeng/mast Er/repository "}}

Android studio--Learning Series (1)

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.