<?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)