├── .idea ├── .name ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── vcs.xml ├── modules.xml ├── runConfigurations.xml ├── gradle.xml ├── compiler.xml └── misc.xml ├── app ├── .gitignore ├── libs │ └── volley.1.0.19.jar ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── styles.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── strings.xml │ │ │ ├── menu │ │ │ │ └── menu_main.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ └── layout │ │ │ │ └── activity_main.xml │ │ ├── java │ │ │ └── basti │ │ │ │ └── coryphaei │ │ │ │ └── com │ │ │ │ └── baseactivity │ │ │ │ ├── MyApplication.java │ │ │ │ ├── NetworkCallback.java │ │ │ │ ├── LogUtils.java │ │ │ │ ├── Code.java │ │ │ │ ├── SystemUtils.java │ │ │ │ ├── ToastUtils.java │ │ │ │ ├── BaseApplication.java │ │ │ │ ├── ImageSize.java │ │ │ │ ├── DialogUtils.java │ │ │ │ ├── CacheUtils.java │ │ │ │ ├── FileUtils.java │ │ │ │ ├── NetworkUtils.java │ │ │ │ ├── UploadFileUtils.java │ │ │ │ ├── BaseActivity.java │ │ │ │ ├── MainActivity.java │ │ │ │ └── UploadActivity.java │ │ └── AndroidManifest.xml │ └── androidTest │ │ └── java │ │ └── basti │ │ └── coryphaei │ │ └── com │ │ └── baseactivity │ │ └── ApplicationTest.java ├── proguard-rules.pro ├── build.gradle └── app.iml ├── jsonhelperlib ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ └── values │ │ │ │ └── strings.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── bzt │ │ │ │ └── jsonhelperlib │ │ │ │ ├── DeleteAllListener.java │ │ │ │ ├── DeleteListener.java │ │ │ │ ├── LoadListener.java │ │ │ │ ├── SaveListener.java │ │ │ │ ├── LoadBean.java │ │ │ │ └── JsonHelper.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── bzt │ │ │ └── jsonhelperlib │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── bzt │ │ └── jsonhelperlib │ │ └── ApplicationTest.java ├── libs │ └── fastjson-1.2.7.jar ├── build.gradle ├── proguard-rules.pro └── jsonhelperlib.iml ├── settings.gradle ├── README.md ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── BaseActivity.iml ├── gradle.properties ├── gradlew.bat └── gradlew /.idea/.name: -------------------------------------------------------------------------------- 1 | BaseActivity -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /jsonhelperlib/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':jsonhelperlib' 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # BaseActivity 2 | 对Anctivity的封装,集成了Volley、Toast、progressDialog工具类,简化了网络网络请求代码的复杂度 3 | -------------------------------------------------------------------------------- /app/libs/volley.1.0.19.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basti-shi031/BaseActivity/HEAD/app/libs/volley.1.0.19.jar -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basti-shi031/BaseActivity/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea/workspace.xml 4 | /.idea/libraries 5 | .DS_Store 6 | /build 7 | /captures 8 | -------------------------------------------------------------------------------- /jsonhelperlib/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | JsonHelperLib 3 | 4 | -------------------------------------------------------------------------------- /jsonhelperlib/libs/fastjson-1.2.7.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basti-shi031/BaseActivity/HEAD/jsonhelperlib/libs/fastjson-1.2.7.jar -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basti-shi031/BaseActivity/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basti-shi031/BaseActivity/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basti-shi031/BaseActivity/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/basti-shi031/BaseActivity/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /jsonhelperlib/src/main/java/com/bzt/jsonhelperlib/DeleteAllListener.java: -------------------------------------------------------------------------------- 1 | package com.bzt.jsonhelperlib; 2 | 3 | /** 4 | * 全部删除回调 5 | * Created by SHIBW-PC on 2015/12/7. 6 | */ 7 | public interface DeleteAllListener { 8 | 9 | void finishDeleteAll(int deleteTag); 10 | } 11 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Thu Dec 17 16:21:20 CST 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip 7 | -------------------------------------------------------------------------------- /jsonhelperlib/src/main/java/com/bzt/jsonhelperlib/DeleteListener.java: -------------------------------------------------------------------------------- 1 | package com.bzt.jsonhelperlib; 2 | 3 | /** 4 | * 删除回调 5 | * Created by SHIBW-PC on 2015/12/7. 6 | */ 7 | public interface DeleteListener { 8 | //删除完成 9 | void finishDelete(int deleteTag,boolean success); 10 | } 11 | -------------------------------------------------------------------------------- /jsonhelperlib/src/main/java/com/bzt/jsonhelperlib/LoadListener.java: -------------------------------------------------------------------------------- 1 | package com.bzt.jsonhelperlib; 2 | 3 | /** 4 | * 读取回调 5 | * Created by SHIBW-PC on 2015/12/7. 6 | */ 7 | public interface LoadListener { 8 | 9 | //读取完成 10 | void finishLoad(int loadTag,LoadBean loadBean); 11 | } 12 | -------------------------------------------------------------------------------- /jsonhelperlib/src/main/java/com/bzt/jsonhelperlib/SaveListener.java: -------------------------------------------------------------------------------- 1 | package com.bzt.jsonhelperlib; 2 | 3 | /** 4 | * 保存回调 5 | * Created by SHIBW-PC on 2015/12/7. 6 | */ 7 | public interface SaveListener { 8 | 9 | //保存完成 10 | void finishSave(int saveTag,boolean success); 11 | } 12 | -------------------------------------------------------------------------------- /app/src/main/java/basti/coryphaei/com/baseactivity/MyApplication.java: -------------------------------------------------------------------------------- 1 | package basti.coryphaei.com.baseactivity; 2 | 3 | /** 4 | * Created by Bowen on 2015-11-02. 5 | */ 6 | public class MyApplication extends BaseApplication { 7 | 8 | @Override 9 | public void onCreate() { 10 | super.onCreate(); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /jsonhelperlib/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/java/basti/coryphaei/com/baseactivity/NetworkCallback.java: -------------------------------------------------------------------------------- 1 | package basti.coryphaei.com.baseactivity; 2 | 3 | import com.alibaba.fastjson.JSONObject; 4 | 5 | /** 6 | * Created by Bowen on 2015-11-02. 7 | */ 8 | public interface NetworkCallback { 9 | 10 | void parseResults(JSONObject jsonObject, int tag); 11 | 12 | void onFailure(int tag); 13 | 14 | } 15 | -------------------------------------------------------------------------------- /app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/main/java/basti/coryphaei/com/baseactivity/LogUtils.java: -------------------------------------------------------------------------------- 1 | package basti.coryphaei.com.baseactivity; 2 | 3 | import android.util.Log; 4 | 5 | /** 6 | * Created by Bowen on 2015-11-02. 7 | */ 8 | public class LogUtils { 9 | 10 | public static void Log(boolean DEBUG_MODE,String TAG,String Message){ 11 | if (DEBUG_MODE){ 12 | Log.i(TAG,Message); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /jsonhelperlib/src/test/java/com/bzt/jsonhelperlib/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.bzt.jsonhelperlib; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /app/src/main/java/basti/coryphaei/com/baseactivity/Code.java: -------------------------------------------------------------------------------- 1 | package basti.coryphaei.com.baseactivity; 2 | 3 | /** 4 | * Created by Bowen on 2015-11-05. 5 | */ 6 | public class Code { 7 | 8 | //调用相机拍摄时的请求码 9 | public static final int PHOTO_CAMERA_REQUEST = 5; 10 | //调用系统相册的请求码 11 | public static final int PHOTO_GALLERY_REQUEST = 6; 12 | //调用系统剪裁的请求码 13 | public static final int PHOTO_CROP_REQUEST = 7; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /jsonhelperlib/src/androidTest/java/com/bzt/jsonhelperlib/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.bzt.jsonhelperlib; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/androidTest/java/basti/coryphaei/com/baseactivity/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package basti.coryphaei.com.baseactivity; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | BaseActivity 3 | 4 | Hello world! 5 | Settings 6 | 正在访问数据... 7 | 当前网络不给力 8 | 未找到SD卡,无法保存照片 9 | 上传成功 10 | 上传失败 11 | 12 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /app/src/main/java/basti/coryphaei/com/baseactivity/SystemUtils.java: -------------------------------------------------------------------------------- 1 | package basti.coryphaei.com.baseactivity; 2 | 3 | import android.os.Environment; 4 | 5 | /** 6 | * 系统工具类 7 | * Created by Bowen on 2015-11-05. 8 | */ 9 | public class SystemUtils { 10 | 11 | /* 12 | 查看手机是否有SD卡 13 | */ 14 | public static boolean hasSdCard(){ 15 | if (Environment.getExternalStorageState().equals( 16 | Environment.MEDIA_MOUNTED)) { 17 | return true; 18 | } 19 | return false; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/java/basti/coryphaei/com/baseactivity/ToastUtils.java: -------------------------------------------------------------------------------- 1 | package basti.coryphaei.com.baseactivity; 2 | 3 | import android.content.Context; 4 | import android.widget.Toast; 5 | 6 | /** 7 | * Created by Bowen on 2015-11-02. 8 | */ 9 | public class ToastUtils { 10 | 11 | private Toast mToast; 12 | private Context mContext; 13 | 14 | public ToastUtils(Context context){ 15 | mContext = context; 16 | mToast = Toast.makeText(context,"",Toast.LENGTH_SHORT); 17 | } 18 | 19 | public void showToast(String s){ 20 | mToast.setText(s); 21 | mToast.show(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /jsonhelperlib/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.library' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | minSdkVersion 14 9 | targetSdkVersion 23 10 | versionCode 1 11 | versionName "1.0" 12 | } 13 | buildTypes { 14 | release { 15 | minifyEnabled false 16 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 17 | } 18 | } 19 | } 20 | 21 | dependencies { 22 | compile fileTree(include: ['*.jar'], dir: 'libs') 23 | testCompile 'junit:junit:4.12' 24 | compile 'com.android.support:appcompat-v7:23.1.1' 25 | } 26 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in D:\Software\newjdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /jsonhelperlib/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in E:\SDK/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /jsonhelperlib/src/main/java/com/bzt/jsonhelperlib/LoadBean.java: -------------------------------------------------------------------------------- 1 | package com.bzt.jsonhelperlib; 2 | 3 | /** 4 | * Created by SHIBW-PC on 2015/12/7. 5 | */ 6 | public class LoadBean { 7 | 8 | private String result; 9 | private boolean success; 10 | 11 | public LoadBean() { 12 | } 13 | 14 | public LoadBean(String result, boolean success) { 15 | this.result = result; 16 | this.success = success; 17 | } 18 | 19 | public void setResult(String result) { 20 | this.result = result; 21 | } 22 | 23 | public void setSuccess(boolean success) { 24 | this.success = success; 25 | } 26 | 27 | public String getResult() { 28 | 29 | return result; 30 | } 31 | 32 | public boolean isSuccess() { 33 | return success; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /app/src/main/java/basti/coryphaei/com/baseactivity/BaseApplication.java: -------------------------------------------------------------------------------- 1 | package basti.coryphaei.com.baseactivity; 2 | 3 | import android.app.Application; 4 | 5 | import com.android.volley.RequestQueue; 6 | import com.android.volley.toolbox.Volley; 7 | 8 | /** 9 | * Created by Bowen on 2015-11-02. 10 | */ 11 | public class BaseApplication extends Application { 12 | 13 | protected RequestQueue mQueue; 14 | //调试模式,线下版本置为true,上线后改成false 15 | protected boolean DEBUG_MODE = true; 16 | 17 | @Override 18 | public void onCreate() 19 | { 20 | super.onCreate(); 21 | } 22 | 23 | 24 | public synchronized RequestQueue getRequestQueue() 25 | { 26 | if(null == mQueue){ 27 | mQueue = Volley.newRequestQueue(getApplicationContext()); 28 | } 29 | 30 | return mQueue; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /app/src/main/java/basti/coryphaei/com/baseactivity/ImageSize.java: -------------------------------------------------------------------------------- 1 | package basti.coryphaei.com.baseactivity; 2 | 3 | /** 4 | * 上传图片的尺寸 5 | * Created by Bowen on 2015-11-05. 6 | */ 7 | public class ImageSize { 8 | 9 | private int widthSize; 10 | private int heightSize; 11 | 12 | public ImageSize(int widthSize, int heightSize) { 13 | this.widthSize = widthSize; 14 | this.heightSize = heightSize; 15 | } 16 | 17 | public ImageSize() { 18 | widthSize = 250; 19 | heightSize = 250; 20 | } 21 | 22 | public void setWidthSize(int widthSize) { 23 | this.widthSize = widthSize; 24 | } 25 | 26 | public void setHeightSize(int heightSize) { 27 | this.heightSize = heightSize; 28 | } 29 | 30 | public int getWidthSize() { 31 | return widthSize; 32 | } 33 | 34 | public int getHeightSize() { 35 | return heightSize; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/src/main/java/basti/coryphaei/com/baseactivity/DialogUtils.java: -------------------------------------------------------------------------------- 1 | package basti.coryphaei.com.baseactivity; 2 | 3 | import android.app.ProgressDialog; 4 | import android.content.Context; 5 | 6 | /** 7 | * Created by Bowen on 2015-11-02. 8 | */ 9 | public class DialogUtils { 10 | 11 | private ProgressDialog mProgressDialog; 12 | private Context mContext; 13 | 14 | public DialogUtils(Context context){ 15 | mContext = context; 16 | mProgressDialog = new ProgressDialog(context); 17 | } 18 | 19 | public void showProgressDialog(boolean show,String message){ 20 | if (show){ 21 | mProgressDialog.setMessage(message); 22 | mProgressDialog.show(); 23 | }else { 24 | mProgressDialog.hide(); 25 | } 26 | } 27 | 28 | public void showProgressDialog(boolean show){ 29 | showProgressDialog(show,""); 30 | } 31 | 32 | public void dismiss(){ 33 | mProgressDialog.dismiss(); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /BaseActivity.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | org.gradle.daemon=true 20 | org.gradle.parallel=true 21 | org.gradle.jvmargs=-Xmx1024m 22 | -------------------------------------------------------------------------------- /app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 23 5 | buildToolsVersion "23.0.2" 6 | 7 | defaultConfig { 8 | applicationId "basti.coryphaei.com.baseactivity" 9 | minSdkVersion 14 10 | targetSdkVersion 22 11 | versionCode 1 12 | versionName "1.0" 13 | multiDexEnabled true 14 | } 15 | buildTypes { 16 | release { 17 | minifyEnabled false 18 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 19 | } 20 | } 21 | dexOptions { 22 | incremental true 23 | jumboMode = true 24 | } 25 | useLibrary 'org.apache.http.legacy' 26 | } 27 | 28 | dependencies { 29 | compile fileTree(include: ['*.jar'], dir: 'libs') 30 | compile 'com.android.support:appcompat-v7:23.1.1' 31 | compile files('libs/volley.1.0.19.jar') 32 | compile 'com.loopj.android:android-async-http:1.4.6' 33 | compile project(':jsonhelperlib') 34 | } 35 | 36 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 12 |