From 825062c48c3a8b2b0088c95bb8d0329a9dbae106 Mon Sep 17 00:00:00 2001 From: MZCretin Date: Wed, 22 Mar 2017 18:05:19 +0800 Subject: [PATCH] Initial commit --- .gitignore | 9 + app/.gitignore | 1 + app/build.gradle | 30 ++ app/proguard-rules.pro | 17 + app/src/main/AndroidManifest.xml | 20 + .../MainActivity.java | 104 ++++ .../model/ResponseModel.java | 232 ++++++++ app/src/main/res/layout/activity_main.xml | 19 + app/src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3418 bytes app/src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2206 bytes app/src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4842 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 7718 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 10486 bytes app/src/main/res/values-w820dp/dimens.xml | 6 + app/src/main/res/values/colors.xml | 6 + app/src/main/res/values/dimens.xml | 5 + app/src/main/res/values/strings.xml | 3 + app/src/main/res/values/styles.xml | 11 + build.gradle | 23 + gradle.properties | 17 + gradlew | 160 ++++++ gradlew.bat | 90 ++++ httpurlconnectionutil/.gitignore | 1 + httpurlconnectionutil/build.gradle | 32 ++ httpurlconnectionutil/proguard-rules.pro | 17 + .../src/main/AndroidManifest.xml | 13 + .../www/httpurlconnectionutil/HttpUtils.java | 505 ++++++++++++++++++ .../callback/HttpCallbackBytesListener.java | 12 + .../callback/HttpCallbackModelListener.java | 13 + .../callback/HttpCallbackStringListener.java | 12 + .../response/ResponseCall.java | 84 +++ .../src/main/res/values/strings.xml | 3 + .../ExampleUnitTest.java | 17 + settings.gradle | 1 + 34 files changed, 1463 insertions(+) create mode 100644 .gitignore create mode 100644 app/.gitignore create mode 100644 app/build.gradle create mode 100644 app/proguard-rules.pro create mode 100644 app/src/main/AndroidManifest.xml create mode 100644 app/src/main/java/com/cretin/www/httpurlconnectionutildemo/MainActivity.java create mode 100644 app/src/main/java/com/cretin/www/httpurlconnectionutildemo/model/ResponseModel.java create mode 100644 app/src/main/res/layout/activity_main.xml create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 app/src/main/res/values-w820dp/dimens.xml create mode 100644 app/src/main/res/values/colors.xml create mode 100644 app/src/main/res/values/dimens.xml create mode 100644 app/src/main/res/values/strings.xml create mode 100644 app/src/main/res/values/styles.xml create mode 100644 build.gradle create mode 100644 gradle.properties create mode 100755 gradlew create mode 100644 gradlew.bat create mode 100644 httpurlconnectionutil/.gitignore create mode 100644 httpurlconnectionutil/build.gradle create mode 100644 httpurlconnectionutil/proguard-rules.pro create mode 100644 httpurlconnectionutil/src/main/AndroidManifest.xml create mode 100644 httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/HttpUtils.java create mode 100644 httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/callback/HttpCallbackBytesListener.java create mode 100644 httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/callback/HttpCallbackModelListener.java create mode 100644 httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/callback/HttpCallbackStringListener.java create mode 100644 httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/response/ResponseCall.java create mode 100644 httpurlconnectionutil/src/main/res/values/strings.xml create mode 100644 httpurlconnectionutil/src/test/java/com/cretin/www/httpurlconnectionutil/ExampleUnitTest.java create mode 100644 settings.gradle diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..39fb081 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +*.iml +.gradle +/local.properties +/.idea/workspace.xml +/.idea/libraries +.DS_Store +/build +/captures +.externalNativeBuild diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..4a59994 --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,30 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 25 + buildToolsVersion "25.0.2" + defaultConfig { + applicationId "com.cretin.www.httpurlconnectionutildemo" + minSdkVersion 14 + targetSdkVersion 25 + versionCode 1 + versionName "1.0" + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + compile fileTree(include: ['*.jar'], dir: 'libs') + androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { + exclude group: 'com.android.support', module: 'support-annotations' + }) + compile 'com.android.support:appcompat-v7:25.2.0' + testCompile 'junit:junit:4.12' + compile project(':httpurlconnectionutil') +} diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..16e81b3 --- /dev/null +++ b/app/proguard-rules.pro @@ -0,0 +1,17 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /Users/cretin/Library/Android/sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..6b8ee3b --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/cretin/www/httpurlconnectionutildemo/MainActivity.java b/app/src/main/java/com/cretin/www/httpurlconnectionutildemo/MainActivity.java new file mode 100644 index 0000000..2f96693 --- /dev/null +++ b/app/src/main/java/com/cretin/www/httpurlconnectionutildemo/MainActivity.java @@ -0,0 +1,104 @@ +package com.cretin.www.httpurlconnectionutildemo; + +import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; +import android.widget.TextView; + +import com.cretin.www.httpurlconnectionutil.HttpUtils; +import com.cretin.www.httpurlconnectionutil.callback.HttpCallbackStringListener; + +import java.io.UnsupportedEncodingException; +import java.net.URLEncoder; +import java.util.HashMap; +import java.util.Map; + +public class MainActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + final TextView tvContent = ( TextView ) findViewById(R.id.tv_content); +// try { +// HttpUtil.sendGetModelRequest(this, "http://caipu.yjghost.com/index.php/query/read?menu=" + URLEncoder.encode("土豆", "UTF-8") + "&rn=15&start=1", new HttpCallbackModelListener() { +// @Override +// public void onFinish(Object response) { +// Log.e("", ""); +// } +// +// @Override +// public void onError(Exception e) { +// +// } +// }, ResponseModel.class); +// } catch ( UnsupportedEncodingException e ) { +// e.printStackTrace(); +// } + + try { + HttpUtils.doGet(this, "http://caipu.yjghost.com/index.php/query/read?menu=" + URLEncoder.encode("土豆", "UTF-8") + "&rn=15&start=1", new HttpCallbackStringListener() { + + @Override + public void onFinish(String response) { + + } + + @Override + public void onError(Exception e) { + + } + }); + } catch ( UnsupportedEncodingException e ) { + e.printStackTrace(); + } + +// try { +// HttpUtil.doGet(this, "http://caipu.yjghost.com/index.php/query/read?menu=" + URLEncoder.encode("土豆", "UTF-8") + "&rn=15&start=1", new HttpCallbackModelListener() { +// @Override +// public void onFinish(ResponseModel response) { +// +// } +// +// @Override +// public void onError(Exception e) { +// +// } +// }, ResponseModel.class); +// } catch ( UnsupportedEncodingException e ) { +// e.printStackTrace(); +// } +// try { +// HttpUtil.doGet(this, "http://caipu.yjghost.com/index.php/query/read?menu=" + URLEncoder.encode("土豆", "UTF-8") + "&rn=15&start=1", new HttpCallbackBytesListener() { +// @Override +// public void onFinish(byte[] response) { +// +// } +// +// @Override +// public void onError(Exception e) { +// +// } +// }); +// } catch ( UnsupportedEncodingException e ) { +// e.printStackTrace(); +// } + Map map = new HashMap<>(); + map.put("productFirstType", "1"); + map.put("loanRange", "1"); + map.put("type", "hot"); + map.put("page", "1"); + map.put("timeRange", "1"); + HttpUtils.doPost(this, "http://101.201.31.212:8016/product/listProduct", new HttpCallbackStringListener() { + @Override + public void onFinish(String response) { + tvContent.setText(response); + } + + @Override + public void onError(Exception e) { + tvContent.setText(e.toString()); + } + }, map); + } +} diff --git a/app/src/main/java/com/cretin/www/httpurlconnectionutildemo/model/ResponseModel.java b/app/src/main/java/com/cretin/www/httpurlconnectionutildemo/model/ResponseModel.java new file mode 100644 index 0000000..ceacfdf --- /dev/null +++ b/app/src/main/java/com/cretin/www/httpurlconnectionutildemo/model/ResponseModel.java @@ -0,0 +1,232 @@ +package com.cretin.www.httpurlconnectionutildemo.model; + +import java.util.List; + +/** + * Created by cretin on 2017/3/22. + */ + +public class ResponseModel { + + /** + * resultcode : 200 + * reason : Success + * result : {"data":[{"id":"472","caipu_id":"4362","title":"咸香土豆芝士曲奇","tags":"传统西餐;烘焙;甜品;增肥;甜;咸香;半小时-1小时;煮;烤;简单;饼干;烤箱;冬季;芝士;香甜;1-2人;健脾;祛风散寒;祛寒;健脾胃;1小时-2小时;助睡眠;脾虚","imtro":"很久没有碰烤箱了。这次为了尽快解决家里的芝士,又开始动手。 这次的曲奇有浓郁的奶香芝士味,还夹杂着葱香味,薯香味。哈哈,象我喜欢咸味的朋友有口福了。","ingredients":"土豆,200g;奶油芝士,150g;低筋面粉,100g","burden":"盐,适量;葱,15g","albums":"http://img.juhe.cn/cookbook/t/5/4362_653505.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.原料集合;","img":"http://img.juhe.cn/cookbook/s/44/4362_c2c180743158786d.jpg"},{"step":"2.土豆剥皮后煮熟或用微波炉转熟备用,葱切成葱花;","img":"http://img.juhe.cn/cookbook/s/44/4362_f22951a68568da21.jpg"},{"step":"3.将土豆泥,芝士,放入大保鲜袋内,用擀面杖擀成泥状,加入适量盐和面粉及葱花用手揉匀;","img":"http://img.juhe.cn/cookbook/s/44/4362_1938af93ced49b99.jpg"},{"step":"4.将做好的芝士土豆泥装入裱花袋,装好花型裱花嘴,在垫有油纸的烤盘上,将芝士土豆泥裱成玫瑰花型;","img":"http://img.juhe.cn/cookbook/s/44/4362_b2651a66a88a751e.jpg"},{"step":"5.烤箱预热180度,将烤盘放入第一层18-20分钟,表层上色即可;","img":"http://img.juhe.cn/cookbook/s/44/4362_4fa914bcb28957ba.jpg"},{"step":"6.出炉成品。","img":"http://img.juhe.cn/cookbook/s/44/4362_0ee6f6279fcde53d.jpg"}],"works":[]},{"id":"639","caipu_id":"8521","title":"鸡蛋青菜土豆粉","tags":"增强免疫力;懒人食谱;煮;粤菜","imtro":"买回来的土豆粉有点多,所以就一半汤粉一半炒粉,只要是粉,不管怎样做,仔仔都喜欢吃呢!汤粉吃久了,换个口味,感觉更好吃哦!而且土豆粉久煮汤汁都不会变混,清清爽爽的,看起来就有食欲哦!","ingredients":"土豆粉,100g","burden":"油,适量;盐,适量;鸡蛋,1个;青菜,适量","albums":"http://img.juhe.cn/cookbook/t/9/8521_927547.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.鸡蛋液打散,放适量盐","img":"http://img.juhe.cn/cookbook/s/86/8521_cdb5ab10941c1a8b.jpg"},{"step":"2.煎熟备用","img":"http://img.juhe.cn/cookbook/s/86/8521_a41598e2028d6789.jpg"},{"step":"3.油锅放适量油,烧开一碗水,放盐、适量高汤调味,倒入碗里","img":"http://img.juhe.cn/cookbook/s/86/8521_86dd72bbba2e56a1.jpg"},{"step":"4.土豆粉洗干净备用","img":"http://img.juhe.cn/cookbook/s/86/8521_f23e511e8a0e3a38.jpg"},{"step":"5.另起锅烧开半锅水","img":"http://img.juhe.cn/cookbook/s/86/8521_868ef64d242291e3.jpg"},{"step":"6.倒入土豆粉","img":"http://img.juhe.cn/cookbook/s/86/8521_1a7c70a28cc04277.jpg"},{"step":"7.煮至土豆粉体积膨大","img":"http://img.juhe.cn/cookbook/s/86/8521_b349d40961470eff.jpg"},{"step":"8.捞出来放入汤里","img":"http://img.juhe.cn/cookbook/s/86/8521_3de220e3dd00e1c5.jpg"},{"step":"9.青菜烫熟","img":"http://img.juhe.cn/cookbook/s/86/8521_0a840558c4280527.jpg"},{"step":"10.和鸡蛋一起摆在土豆粉上即可","img":"http://img.juhe.cn/cookbook/s/86/8521_cfe2adf11d2e48e1.jpg"}],"works":[]},{"id":"1211","caipu_id":"213","title":"红烧排骨土豆","tags":"冬季;增强抵抗力;家常菜;滋阴润燥;私房菜","imtro":"排骨烧土豆是一道经典的家常菜,也是很多人都喜爱的美味。 在北方冬季,也是会经常出现在餐桌上一道的老少皆宜的大众美食。 很多人从小吃到大,可是依然每次都会让你胃口大开越吃越有味,土豆绵软入味,排骨香味浓郁绝对的经典搭档。也是冬季餐桌超级给力的下饭菜。","ingredients":"猪肋排,500g;土豆,500g","burden":"油,适量;盐,适量;葱姜,适量;大料,2个;香叶,2片;老抽,10ml;生抽,25ml;白糖,10g;桂皮,1块;干辣椒,2个","albums":"http://img.juhe.cn/cookbook/t/1/213_850554.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.准备好所有的食材。","img":"http://img.juhe.cn/cookbook/s/3/213_d4af8ea401bff686.jpg"},{"step":"2.排骨洗净冷水入锅焯烫。","img":"http://img.juhe.cn/cookbook/s/3/213_6b897fd38b3c6275.jpg"},{"step":"3.炒锅倒油放入白糖。","img":"http://img.juhe.cn/cookbook/s/3/213_d26ef8854274dae9.jpg"},{"step":"4.小火炒糖色,至白糖颜色变褐色。","img":"http://img.juhe.cn/cookbook/s/3/213_896ed2a4508dc7e7.jpg"},{"step":"5.加入排骨翻炒。","img":"http://img.juhe.cn/cookbook/s/3/213_5de5c20530bb7c85.jpg"},{"step":"6.加入调味料继续翻炒出香味。","img":"http://img.juhe.cn/cookbook/s/3/213_710c59b0fdf94a65.jpg"},{"step":"7.加入料酒炒香。","img":"http://img.juhe.cn/cookbook/s/3/213_07aa5b3bac6f8db7.jpg"},{"step":"8.加老抽和生抽炒至排骨上色。","img":"http://img.juhe.cn/cookbook/s/3/213_435e8c718eaae8b0.jpg"},{"step":"9.然后加入适量的清水大火煮开。","img":"http://img.juhe.cn/cookbook/s/3/213_c1063c5fc71de048.jpg"},{"step":"10.加盖小火焖烧40分钟。","img":"http://img.juhe.cn/cookbook/s/3/213_6130debe386ad84a.jpg"},{"step":"11.土豆去皮切块清水浸泡。","img":"http://img.juhe.cn/cookbook/s/3/213_9234ac8537ea6d39.jpg"},{"step":"12.40分钟后加入土豆转中火继续烧制。","img":"http://img.juhe.cn/cookbook/s/3/213_22dc2d05ca20af56.jpg"},{"step":"13.土豆绵软加少许盐调味,大火收汁即可关火。","img":"http://img.juhe.cn/cookbook/s/3/213_5bf1f3cff90fa665.jpg"}],"works":[]},{"id":"1234","caipu_id":"15461","title":"土豆红烧排骨","tags":"家常菜;瘦身;润肠通便;高血脂;防癌;烧;动脉硬化;便秘;冬季;降血脂;减肥;提高免疫力;健脾;肥胖;健脾养胃;脂肪肝;健脾胃;四季食谱;脾虚","imtro":"家里买回来十磅的土豆,除了做沙拉吃以外,还用来做了\u201c芝士焗土豆\u201d\u201c土豆炒培根\u201d。今天先分享这款\u201c土豆红烧排骨\u201d吧,因为太美味好吃了,特别是土豆,完全吸收了排骨的肉汁精华,又香又粉,嗨嗨,土豆几乎让我包干了。","ingredients":"排骨,400g;土豆,300g;香菇,150g","burden":"油,适量;生抽,适量","albums":"http://img.juhe.cn/cookbook/t/16/15461_943036.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.将买回来的排骨清洗干净之后切小块。","img":"http://img.juhe.cn/cookbook/s/155/15461_3a0b842ba7633789.jpg"},{"step":"2.香菇用水泡浸之后清洗干净,土豆去皮。","img":"http://img.juhe.cn/cookbook/s/155/15461_2de3911d52e90e7f.jpg"},{"step":"3.煮锅放入适量的白糖炒至焦黄。","img":"http://img.juhe.cn/cookbook/s/155/15461_dc5c90270094be3f.jpg"},{"step":"4.将排骨放入炒至上色(可以直接用老抽上色)","img":"http://img.juhe.cn/cookbook/s/155/15461_679121120bb6cd8d.jpg"},{"step":"5.排骨加水换上不粘锅。","img":"http://img.juhe.cn/cookbook/s/155/15461_51dbe8139b1d2991.jpg"},{"step":"6.加入土豆香菇大火烧开然后改中火烧半小时(具体时间看自己喜欢烧好的排骨口感来定)","img":"http://img.juhe.cn/cookbook/s/155/15461_0529744da645303f.jpg"},{"step":"7.最后放入适量的生抽和鸡精调味大火烧至收汁洒些香葱即可。","img":"http://img.juhe.cn/cookbook/s/155/15461_1f91cc12c8e5d426.jpg"},{"step":"8.烧好的\u201c土豆红烧排骨\u201d土豆口味醇香,排骨肉质烂软。即下饭又美味。","img":"http://img.juhe.cn/cookbook/s/155/15461_d4d5f2d2ff2cb497.jpg"}],"works":[]},{"id":"1459","caipu_id":"9340","title":"干煸豆角土豆","tags":"东北菜;家常菜;热菜;素菜;健脾胃","imtro":"这个菜我好好吃,不过我做了一个很错误地地方就是配料糊了,多多少少也影响了一点,另外颜色不好看了,味道很不错。","ingredients":"土豆,2个;豆角,250g","burden":"油,适量;盐,适量;葱,适量;蒜,适量;干辣椒,适量;味精,适量","albums":"http://img.juhe.cn/cookbook/t/10/9340_134047.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.土豆去皮豆角去丝,洗净","img":"http://img.juhe.cn/cookbook/s/94/9340_60337f0d2ba58a51.jpg"},{"step":"2.葱蒜,干辣椒切碎,土豆切片,豆角对折","img":"http://img.juhe.cn/cookbook/s/94/9340_4fb0d7db3f6283ee.jpg"},{"step":"3.土豆放在油锅里炒熟,沥油","img":"http://img.juhe.cn/cookbook/s/94/9340_73ed05383025b63b.jpg"},{"step":"4.另起锅放葱蒜干辣椒炒香,注意别大火辣椒容易糊","img":"http://img.juhe.cn/cookbook/s/94/9340_674f6b1c4eed063e.jpg"},{"step":"5.放豆角干炒,炒熟水分,变翠绿色并且起泡,就熟了","img":"http://img.juhe.cn/cookbook/s/94/9340_f44a07bbc3d16d41.jpg"},{"step":"6.再放土豆片,盐翻炒,最后放味精","img":"http://img.juhe.cn/cookbook/s/94/9340_78db1a32e608bd53.jpg"},{"step":"7.出锅","img":"http://img.juhe.cn/cookbook/s/94/9340_e110428fc0198bdc.jpg"}],"works":[]},{"id":"1548","caipu_id":"45638","title":"红烧猪脚土豆","tags":"增肥;冬季;红烧肉;健脾;美容菜;祛风散寒;祛寒;健脾胃;红烧猪脚;助睡眠;脾虚","imtro":"猪蹄女人吃了是美容对于男人更不用说了,一般男人都是肉食动物,最喜欢吃肉了今天红烧猪脚,我加了土豆下去这样土豆吸收了猪脚的香味,味道真的很好 猪蹄含有丰富的胶原蛋白,在烹调过程中可转化成明胶、它能结合许多水,从而有效改善机体生理功能和皮肤组织细胞的储水功能,防止皮肤过早褶皱,延缓皮肤衰老。爱美的你可要多吃点哟。","ingredients":"猪脚,1000g;土豆,500g","burden":"油,适量;盐,适量;酱油,适量;糖,适量","albums":"http://img.juhe.cn/cookbook/t/46/45638_999285.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.准备好食材","img":"http://img.juhe.cn/cookbook/s/457/45638_4760801f8d470be2.jpg"},{"step":"2.猪脚放入锅中开水去掉血水","img":"http://img.juhe.cn/cookbook/s/457/45638_189d4870ccd3575e.jpg"},{"step":"3.去掉血水在洗干净","img":"http://img.juhe.cn/cookbook/s/457/45638_2e11edd0447bfa2a.jpg"},{"step":"4.锅内放入适量的油放入白糖炒到酱油的颜色","img":"http://img.juhe.cn/cookbook/s/457/45638_f2231983f35afebd.jpg"},{"step":"5.放入猪脚","img":"http://img.juhe.cn/cookbook/s/457/45638_6d0df2eb9fb20521.jpg"},{"step":"6.放入土豆","img":"http://img.juhe.cn/cookbook/s/457/45638_27b01a4144830675.jpg"},{"step":"7.加入适量的盐","img":"http://img.juhe.cn/cookbook/s/457/45638_6811c34c42ae3f1c.jpg"},{"step":"8.加入适量的水","img":"http://img.juhe.cn/cookbook/s/457/45638_d14f0716e6ba5479.jpg"},{"step":"9.加入适量的酱油","img":"http://img.juhe.cn/cookbook/s/457/45638_bc68aaddfb07cb4a.jpg"},{"step":"10.翻炒均匀","img":"http://img.juhe.cn/cookbook/s/457/45638_48b931f2da7934de.jpg"},{"step":"11.放入高压锅中","img":"http://img.juhe.cn/cookbook/s/457/45638_a4a1aa12dbe919f9.jpg"},{"step":"12.压出气后8分钟即可","img":"http://img.juhe.cn/cookbook/s/457/45638_fe4f5e078d8b343b.jpg"}],"works":[]},{"id":"1644","caipu_id":"16974","title":"土豆咖喱鸡","tags":"食材;家常菜;热菜;明目;延缓衰老;补血;护肝;养胃;增肥;贫血;特禀质;痛风;原味;咖喱;10-20分钟;半小时-1小时;煮;烧;简单;咖喱粉;冬季;美白;养颜;咖喱味;咖喱块;维生素B;1-2人;健脾;祛风散寒;祛寒;养肝护肝;补肝;健脾胃;锅子;调理肠胃;助睡眠;脾虚","imtro":"我的处女作,第一次做的美食--土豆咖喱鸡,希望大家支持! 我还用模具弄了饭团,做成一盘咖喱鸡饭给宝贝吃,可喜欢了呢!","ingredients":"鸡翅,4个;胡萝卜,40g;土豆,40g","burden":"咖喱块,适量;姜,适量;盐,适量","albums":"http://img.juhe.cn/cookbook/t/17/16974_796077.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.胡萝卜和土豆切小块。","img":"http://img.juhe.cn/cookbook/s/170/16974_68906539e35d9b88.jpg"},{"step":"2.鸡翅洗干净斩块,用盐和姜腌二十分钟。","img":"http://img.juhe.cn/cookbook/s/170/16974_a8ddf8bf68525aea.jpg"},{"step":"3.热油锅,把材料全部倒进去爆炒,炒出香味。","img":"http://img.juhe.cn/cookbook/s/170/16974_c074193d492a18ef.jpg"},{"step":"4.加入300毫升的开水,煮开后,关小火,放入两小块咖喱,搅拌至充分溶解,再中火熵煮十分钟,至咖喱汁浓稠。","img":"http://img.juhe.cn/cookbook/s/170/16974_44756cc971251f7f.jpg"},{"step":"5.出锅,土豆咖喱鸡翅,成功!","img":"http://img.juhe.cn/cookbook/s/170/16974_b449fb401043d1fb.jpg"}],"works":[]},{"id":"1649","caipu_id":"23166","title":"土豆咖喱鸡翅","tags":"增肥;炒;冬季;咖喱味;踏青;健脾;祛风散寒;祛寒;春季养生;健脾胃;春季菜谱;助睡眠;脾虚","imtro":"不管 某一职业 你会遇到 无理取闹的 客户 你能做的就是 那样 微笑的 说着 给你造成的困扰很抱歉 而其实 你在这端 早已泪流满面","ingredients":"土豆,200g;鸡翅,350g","burden":"油,适量;盐,适量;咖喱,适量;生抽,适量;大蒜,适量","albums":"http://img.juhe.cn/cookbook/t/24/23166_289242.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.土豆切块","img":"http://img.juhe.cn/cookbook/s/232/23166_2d35797310195961.jpg"},{"step":"2.鸡翅泡水 去下血水","img":"http://img.juhe.cn/cookbook/s/232/23166_59a9798c5306e5c5.jpg"},{"step":"3.加点 油 酱油 盐","img":"http://img.juhe.cn/cookbook/s/232/23166_70c7fdb8fcc2bdab.jpg"},{"step":"4.加入大蒜 用手揉几下。。更入味","img":"http://img.juhe.cn/cookbook/s/232/23166_8a3f81a785a08d30.jpg"},{"step":"5.鸡翅煎到两面金黄","img":"http://img.juhe.cn/cookbook/s/232/23166_a6bb21729e0c9385.jpg"},{"step":"6.加入水 没过鸡翅","img":"http://img.juhe.cn/cookbook/s/232/23166_297c2fe8ec789e19.jpg"},{"step":"7.加入咖喱粉。加其他调味料","img":"http://img.juhe.cn/cookbook/s/232/23166_14bf08566017c797.jpg"},{"step":"8.加入土豆,炖15分钟。大火收汁即可","img":"http://img.juhe.cn/cookbook/s/232/23166_f650214b8a45feff.jpg"}],"works":[]},{"id":"1657","caipu_id":"30392","title":"土豆咖喱鸡蒸饭","tags":"10-20分钟;蒸;香;冬季;饭;全菜系;1-2人;蒸锅","imtro":"一碗剩饭,因加了多种的料,变得有了诱人的色泽。淡淡的咖喱香,面面的土豆丁,鲜香的玉米粒,还有白嫩嫩的鸡丁,绝对挑逗你的味蕾。","ingredients":"剩米饭,100g;土豆,100g;洋葱,30g;火腿丁,30g;鸡脯肉,80g;玉米粒,30g","burden":"食用油,适量;盐,适量;咖喱粉,适量","albums":"http://img.juhe.cn/cookbook/t/31/30392_388265.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.土豆、洋葱、火腿、鸡肉切小丁。","img":"http://img.juhe.cn/cookbook/s/304/30392_b2ba07cec72d2b21.jpg"},{"step":"2.剩米饭、玉米粒备用。","img":"http://img.juhe.cn/cookbook/s/304/30392_50ee9a1478d4e219.jpg"},{"step":"3.油锅烧热,入土豆丁翻炒。","img":"http://img.juhe.cn/cookbook/s/304/30392_21d0229df42b01ee.jpg"},{"step":"4.当土豆变的透亮时,加入鸡丁。","img":"http://img.juhe.cn/cookbook/s/304/30392_7af5dbc1d0023274.jpg"},{"step":"5.鸡肉变白时,加入洋葱。","img":"http://img.juhe.cn/cookbook/s/304/30392_f72803484677005a.jpg"},{"step":"6.调小火,将火腿丁、米饭加入,放盐、咖喱粉翻炒匀。","img":"http://img.juhe.cn/cookbook/s/304/30392_2a8c08601b6baef0.jpg"},{"step":"7.炒匀关火。","img":"http://img.juhe.cn/cookbook/s/304/30392_e5d9f6ddf462d583.jpg"},{"step":"8.放入带盖的微波容器中,高火10分钟即可。","img":"http://img.juhe.cn/cookbook/s/304/30392_1c63aac68dd86a41.jpg"}],"works":[]},{"id":"1817","caipu_id":"25","title":"酸辣土豆丝","tags":"家常菜;热菜;增肥;酸辣;炒;秋季养生;秋季菜谱;健脾;祛风散寒;祛寒;健脾胃;助睡眠;脾虚","imtro":"酸辣土豆丝可谓是人见人爱的一道家常菜,虽然价格便宜但是酸辣可口味道味道却是大家喜爱的。无论是家庭餐桌、还是饭馆酒店几乎都能见到它的身影,虽然酸辣土豆丝是一道普通的菜肴,但是能够做好也是不容易的,如何才能保持土豆丝熟而脆爽是关键,这个和土豆的选择、土豆丝的处理、炒制时的时间火候的把握有密切的关系。土豆最好选择含水量高的新土豆,土豆丝要过水,炒制时大火快炒勤翻动,掌握了这些窍门相信你也能做出饭店水平。","ingredients":"土豆,500g;干辣椒,2个;香菜梗,3g","burden":"大蒜,5g;盐,3/4小勺;大葱,5g;味精,1/4小勺;陈醋,1大勺","albums":"http://img.juhe.cn/cookbook/t/0/25_843544.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.所有原料准备好,清洗干净。","img":"http://img.juhe.cn/cookbook/s/1/25_9ef4fe27960f943f.jpg"},{"step":"2.土豆丝去皮切成丝,用清水洗净表面的淀粉,再浸泡5分钟。","img":"http://img.juhe.cn/cookbook/s/1/25_c4801d7b28ab874f.jpg"},{"step":"3.葱蒜切片,干辣椒斜切成段,香菜梗切段。","img":"http://img.juhe.cn/cookbook/s/1/25_8a8179ca02be7fbd.jpg"},{"step":"4.起油锅,油温升至4成热时放入干辣椒、葱蒜片爆香。","img":"http://img.juhe.cn/cookbook/s/1/25_f2ec4bb90825a255.jpg"},{"step":"5.放入土豆丝。","img":"http://img.juhe.cn/cookbook/s/1/25_10abc27a04511833.jpg"},{"step":"6.加入盐。","img":"http://img.juhe.cn/cookbook/s/1/25_557e2a1b072469b6.jpg"},{"step":"7.再加入陈醋。","img":"http://img.juhe.cn/cookbook/s/1/25_ac31d1f41af9e34f.jpg"},{"step":"8.开大火快速翻炒,直至土豆丝8成熟关火,放入香菜段和味精快速炒匀出锅。","img":"http://img.juhe.cn/cookbook/s/1/25_e977f05fa6a28fc0.jpg"}],"works":[]},{"id":"1818","caipu_id":"126","title":"酸辣土豆丝","tags":"家常菜;增肥;老年人;酸辣;炒;晚餐;健脾;祛风散寒;祛寒;健脾胃;助睡眠;脾虚","imtro":"这道菜,豆亲们肯定都会做。 是不是有亲会问,为什么自已在炒时经常会粘锅,炒得过轻吃时会口感发生,炒得火侯大了又会变得绵软没有嚼头, 寡而无味。 所以说,要想把这道菜做的酸辣开胃,土豆脆而入味,也并不是一个简单的事。有时,越简单的菜,越可以考验真功夫。苹果有几个小窍门要和各位亲一起分享。","ingredients":"土豆,350g","burden":"油,适量;盐,适量;尖椒,适量;花椒,适量;葱,适量;蒜,适量;醋,两匙;芝麻油,适量","albums":"http://img.juhe.cn/cookbook/t/1/126_788357.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.准备食材。","img":"http://img.juhe.cn/cookbook/s/2/126_497712891b642dd8.jpg"},{"step":"2.用削皮刀去皮。","img":"http://img.juhe.cn/cookbook/s/2/126_da3cc33e83529053.jpg"},{"step":"3.切成薄片(一定要掌握厚薄均匀)。","img":"http://img.juhe.cn/cookbook/s/2/126_908cdc8e8270d4fe.jpg"},{"step":"4.用手将切好的土豆片轻轻按划匀。","img":"http://img.juhe.cn/cookbook/s/2/126_224e494f57bbb4e4.jpg"},{"step":"5.一只手微卷,手指向下呈九十度,指甲向下压,中指关节与刀面贴近,将土豆片切成丝(这样做,可以很好的保护手指,以免切伤) 。","img":"http://img.juhe.cn/cookbook/s/2/126_11651f49b640133c.jpg"},{"step":"6.切好的土豆丝放清水中洗一下,然后换一下水略泡十分钟左右。","img":"http://img.juhe.cn/cookbook/s/2/126_a5a45ddfb6d60fe7.jpg"},{"step":"7.再次清洗土豆丝,至水清透明。","img":"http://img.juhe.cn/cookbook/s/2/126_511e5cd8e824fa04.jpg"},{"step":"8.捞出沥水备用。","img":"http://img.juhe.cn/cookbook/s/2/126_508cb7443c12177d.jpg"},{"step":"9.等待泡土豆丝时,将蒜用刀拍一下即可(也可切成片,或剁成蒜米,随个人喜好)。","img":"http://img.juhe.cn/cookbook/s/2/126_439d74fcc8a97479.jpg"},{"step":"10.青红椒切成丝(也可用干红椒,各有风味),准备点葱花。","img":"http://img.juhe.cn/cookbook/s/2/126_831d4287ff891f49.jpg"},{"step":"11.锅中放适量油,加入花椒。","img":"http://img.juhe.cn/cookbook/s/2/126_62d69081b32b15aa.jpg"},{"step":"12.慢慢炸香,出香味后,捞出(一定要捞干净,否则吃到花椒的感觉真的不妙)。","img":"http://img.juhe.cn/cookbook/s/2/126_17794a0c72a06ed5.jpg"},{"step":"13.在炸好的花椒油中,放入葱花和蒜炒出香味。","img":"http://img.juhe.cn/cookbook/s/2/126_59737da38c496fed.jpg"},{"step":"14.加入青红椒丝。","img":"http://img.juhe.cn/cookbook/s/2/126_4295efd4190ba3bb.jpg"},{"step":"15.略炒后拔到一边放入土豆丝 。","img":"http://img.juhe.cn/cookbook/s/2/126_a0e81ed60db30e02.jpg"},{"step":"16.快速划炒。","img":"http://img.juhe.cn/cookbook/s/2/126_3ba6c6e90596cfd9.jpg"},{"step":"17.至土豆丝变色时,加入一勺米醋(比起白醋来,我更喜欢米醋的清香)。","img":"http://img.juhe.cn/cookbook/s/2/126_7aedf669d04afbd1.jpg"},{"step":"18.再翻炒几下,加入适量盐。","img":"http://img.juhe.cn/cookbook/s/2/126_830de3c4bd5c57f5.jpg"},{"step":"19.到了自已喜欢的火侯,再加入一勺米醋炒匀关火。","img":"http://img.juhe.cn/cookbook/s/2/126_1713e2c7eacbee9c.jpg"},{"step":"20.加入少许芝麻油调味更香。","img":"http://img.juhe.cn/cookbook/s/2/126_a85ea59892cb8342.jpg"}],"works":[]},{"id":"1819","caipu_id":"1185","title":"私房秘制酸辣土豆丝","tags":"增肥;素菜;酸辣土豆丝;下饭菜;快手菜;夏季饮食;健脾;减肥食谱;祛风散寒;祛寒;健脾胃;心蓝手制私房菜;美白食谱;土豆丝的做法;助睡眠;脾虚","imtro":"心蓝手制私房菜【私房秘制酸辣土豆丝】\u2014\u2014为爱烹饪 正在午后小眯,急促的电话铃声将心蓝吵醒,一看,是阿文。这小子,这时候,不对啊,正常情况下,他应该是中午喝的大醉,在某个宾馆埋头大睡,为夜间的疯狂做准备啊。 \u201c喂,情种。\u201d\u201c心蓝,求你个事,明天你能到我这来一下吗?\u201d奇了怪了,阿文啥时候这么客气的和人说话啊:\u201c啥事?\u201d\u201c来了就知道啦,明天早上就来啊,求你了哥哥,这次全靠你了,记得把你全套的堺都带来。\u201d","ingredients":"土豆,500g","burden":"泡菜,适量;白醋,适量;油,5g;盐,4g;味素,2g;泡椒水,3ml;青红二荆条,少许","albums":"http://img.juhe.cn/cookbook/t/2/1185_736909.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.土豆刨皮,切薄片,再切细丝,切好的土豆丝用清水浸泡漂洗干净表面淀粉待用","img":"http://img.juhe.cn/cookbook/s/12/1185_d5b0b92727fb1823.jpg"},{"step":"2.青红二荆条切长段,平剖开,去籽及筋,切细丝,浸泡在清水中","img":"http://img.juhe.cn/cookbook/s/12/1185_f7a16f458725e6fd.jpg"},{"step":"3.泡姜泡蒜泡椒切米待用","img":"http://img.juhe.cn/cookbook/s/12/1185_67903b2284476dd4.jpg"},{"step":"4.坐锅烧水,下白醋,水开后下土豆丝过水,沥水待用","img":"http://img.juhe.cn/cookbook/s/12/1185_a0b0d1fbb2ddcbf7.jpg"},{"step":"5.坐锅起油,下泡姜泡蒜泡椒米炒香","img":"http://img.juhe.cn/cookbook/s/12/1185_b31f4784c2686e92.jpg"},{"step":"6.下土豆丝,翻炒均匀,下味素、盐,翻炒2分钟","img":"http://img.juhe.cn/cookbook/s/12/1185_ca4fae34214d890d.jpg"},{"step":"7.下青红二荆条丝,翻炒2分钟","img":"http://img.juhe.cn/cookbook/s/12/1185_e5acdf0a0db16442.jpg"},{"step":"8.淋泡椒水,翻炒均匀,待酸香味浓郁时起锅即可","img":"http://img.juhe.cn/cookbook/s/12/1185_ccee15c18c55a1f5.jpg"}],"works":[]},{"id":"1820","caipu_id":"1321","title":"酸辣土豆丝","tags":"快手菜;增强免疫力;健脾胃;减肥","imtro":"土豆有营养,是抗衰老的食物。它含有丰富的维生素B1、B2、B6和泛酸等B群维生素及大量的优质纤维素,还含有微量元素、氨基酸、蛋白质、脂肪和优质淀粉等营养元素。经常吃土豆的人身体健康,老的慢。","ingredients":"土豆,2个;尖椒,1个;彩椒,半个","burden":"葱末,适量;蒜末,适量;花椒粒,适量;干辣椒,适量;食盐,适量;味精,适量;白糖,适量;食醋,适量","albums":"http://img.juhe.cn/cookbook/t/2/1321_171427.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.主要食材","img":"http://img.juhe.cn/cookbook/s/14/1321_559ff9fd6b4065fd.jpg"},{"step":"2.土豆先切片,然后切丝。","img":"http://img.juhe.cn/cookbook/s/14/1321_56218d33cf818849.jpg"},{"step":"3.用清水将切好的土豆丝泡去淀粉。","img":"http://img.juhe.cn/cookbook/s/14/1321_e51e19ab8b0d6394.jpg"},{"step":"4.尖椒和彩椒分别切丝","img":"http://img.juhe.cn/cookbook/s/14/1321_1b2f1352546924f2.jpg"},{"step":"5.葱、大蒜切末。干辣椒切段。","img":"http://img.juhe.cn/cookbook/s/14/1321_38492d476a9161bc.jpg"},{"step":"6. 锅内放油放入花椒煸炒出香味,将炸好的花椒捞出","img":"http://img.juhe.cn/cookbook/s/14/1321_83f8f725e461c321.jpg"},{"step":"7.放入葱、蒜末、辣椒段煸炒出香","img":"http://img.juhe.cn/cookbook/s/14/1321_fe23f5ac73e1ac31.jpg"},{"step":"8.放入泡好的土豆丝。","img":"http://img.juhe.cn/cookbook/s/14/1321_5cf68cb0f936b33d.jpg"},{"step":"9.煸炒一小会后倒入适量醋继续翻炒土豆丝。","img":"http://img.juhe.cn/cookbook/s/14/1321_a7c03b64a3468fcf.jpg"},{"step":"10.加入青红椒煸炒。","img":"http://img.juhe.cn/cookbook/s/14/1321_486517bf565808ce.jpg"},{"step":"11.加入青红椒煸炒均匀后,依次加入食盐、味精、少许白糖调味。","img":"http://img.juhe.cn/cookbook/s/14/1321_2d917e93c52f73ba.jpg"},{"step":"12.加入调味料翻炒均匀即可关火。","img":"http://img.juhe.cn/cookbook/s/14/1321_b18b97b47c2e3874.jpg"},{"step":"13.既简单有开胃 的酸辣土豆丝。","img":"http://img.juhe.cn/cookbook/s/14/1321_58ac5916f295128c.jpg"}],"works":[]},{"id":"1821","caipu_id":"1747","title":"酸辣土豆丝","tags":"酸辣;炒;快手菜","imtro":"这是一道经典的家常菜,经典之所以经典,是它的大众需求与热爱,民众的口碑奠定了它经典的基础,经年而不倒,也是上至厅堂下至民众餐桌,常常能见到的菜肴。 经典菜经典的口味,经各家之手,也是有所差异,这取决于各家的口味与饮食习惯。制作这道酸辣土豆丝,稍微进行了调味上的变化。葱姜没再有,选用的是炸好的葱油,相比爆葱花的香气,葱油口感相对醇厚一些。醋的选择,之前用过镇江香醋和白醋,香醋相对颜色较重,加入里面口","ingredients":"土豆,300g;青椒,40g;红辣椒,10g","burden":"油,适量;盐,适量;葱油,适量;苹果醋,适量;花椒,适量;鸡精,适量;十三香,适量;大蒜,5g","albums":"http://img.juhe.cn/cookbook/t/2/1747_934444.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.土豆一个洗净备用。","img":"http://img.juhe.cn/cookbook/s/18/1747_8a78c54a57ac29a9.jpg"},{"step":"2.准备青、红辣椒和大蒜备用。","img":"http://img.juhe.cn/cookbook/s/18/1747_1c8ff3e4a52b15da.jpg"},{"step":"3.将土豆切成细细的丝。","img":"http://img.juhe.cn/cookbook/s/18/1747_1944dfb889db6b56.jpg"},{"step":"4.将切好的土豆丝放入盆中,用清水洗去淀粉水,直到水变清为止。","img":"http://img.juhe.cn/cookbook/s/18/1747_ed7e3e7475c84210.jpg"},{"step":"5.辣椒切丝,大蒜拍扁备用。","img":"http://img.juhe.cn/cookbook/s/18/1747_441a0ca3b999fec1.jpg"},{"step":"6.炒锅放油,下入花椒粒炸香后,放入大蒜粒爆香。","img":"http://img.juhe.cn/cookbook/s/18/1747_73bb5f15244032ee.jpg"},{"step":"7.放入清洗干净的土豆丝。","img":"http://img.juhe.cn/cookbook/s/18/1747_b3f14b03a83dbfca.jpg"},{"step":"8.加入辣椒丝,放入葱油、食盐、苹果醋、十三香调味。","img":"http://img.juhe.cn/cookbook/s/18/1747_cd46de6618cba187.jpg"},{"step":"9.快火将土豆丝翻炒成熟,加入鸡精调味,出锅即可食用。","img":"http://img.juhe.cn/cookbook/s/18/1747_d85f5a8b30643ef1.jpg"}],"works":[]},{"id":"1822","caipu_id":"1884","title":"酸辣土豆丝","tags":"家常菜;增肥;酸辣;快手菜;健脾;祛风散寒;祛寒;健脾胃;助睡眠;脾虚","imtro":"君君不爱吃土豆、尤其不爱吃土豆丝、很多人学的第一道菜应该就是这道酸辣土豆丝、因为我个人非常不喜欢吃土豆丝、所以才拖延到现在回头做这道菜、人家都说什么什么像酸辣土豆丝、平凡又简单、餐桌上却不能没有你、好吧、我就让土豆丝上一次我的餐桌吧~","ingredients":"土豆,250g","burden":"干辣椒,10g;葱,5g;姜,5g;蒜,5g;花椒,适量;鸡精,适量;盐,适量;醋,适量","albums":"http://img.juhe.cn/cookbook/t/2/1884_250848.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.准备土豆一枚,我本来准备了两枚,但是临炒的时候觉得太多了,所以只炒了一半","img":"http://img.juhe.cn/cookbook/s/19/1884_7bf8943c85721b35.jpg"},{"step":"2.土豆洗净剥皮","img":"http://img.juhe.cn/cookbook/s/19/1884_00977054343001da.jpg"},{"step":"3.用小工具把土豆剥成细丝,记住使用时小心,以防伤到手,没有小工具的孩纸们就乖乖手动拿刀切吧","img":"http://img.juhe.cn/cookbook/s/19/1884_6c494b91c774c258.jpg"},{"step":"4.土豆一切下来就放盛有冷水的碗里,洗净淀粉,可以让土豆炒出来口感脆脆的","img":"http://img.juhe.cn/cookbook/s/19/1884_72defb4312af08c9.jpg"},{"step":"5.全部切好的土豆,这个两个的份,好大一盆","img":"http://img.juhe.cn/cookbook/s/19/1884_8413f59eb20a9c79.jpg"},{"step":"6.葱姜蒜切段","img":"http://img.juhe.cn/cookbook/s/19/1884_380f84bbfeef0575.jpg"},{"step":"7.干辣椒切段,去籽","img":"http://img.juhe.cn/cookbook/s/19/1884_455694e888cd5250.jpg"},{"step":"8.油锅烧热,放油、 七成热的时候下入花椒,红辣椒爆香 下入葱姜蒜炒出香味","img":"http://img.juhe.cn/cookbook/s/19/1884_ab27e5476e2b09bd.jpg"},{"step":"9.下入土豆丝翻炒均匀","img":"http://img.juhe.cn/cookbook/s/19/1884_e4165a1a56a4fad4.jpg"},{"step":"10.加一点点醋","img":"http://img.juhe.cn/cookbook/s/19/1884_694ad47002799bcc.jpg"},{"step":"11.加点盐、根据个人口味适量","img":"http://img.juhe.cn/cookbook/s/19/1884_d651ab7696238b0e.jpg"},{"step":"12.加少量鸡精","img":"http://img.juhe.cn/cookbook/s/19/1884_d6a71dc39bf490ee.jpg"},{"step":"13.翻炒均匀关火,盛盘,香喷喷的酸辣土豆丝出锅咯","img":"http://img.juhe.cn/cookbook/s/19/1884_c1897582d95c77a3.jpg"}],"works":[]}],"totalNum":15} + * error_code : 0 + */ + + private int resultcode; + private String reason; + private ResultBean result; + private int error_code; + + public int getResultcode() { + return resultcode; + } + + public void setResultcode(int resultcode) { + this.resultcode = resultcode; + } + + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public ResultBean getResult() { + return result; + } + + public void setResult(ResultBean result) { + this.result = result; + } + + public int getError_code() { + return error_code; + } + + public void setError_code(int error_code) { + this.error_code = error_code; + } + + public static class ResultBean { + /** + * data : [{"id":"472","caipu_id":"4362","title":"咸香土豆芝士曲奇","tags":"传统西餐;烘焙;甜品;增肥;甜;咸香;半小时-1小时;煮;烤;简单;饼干;烤箱;冬季;芝士;香甜;1-2人;健脾;祛风散寒;祛寒;健脾胃;1小时-2小时;助睡眠;脾虚","imtro":"很久没有碰烤箱了。这次为了尽快解决家里的芝士,又开始动手。 这次的曲奇有浓郁的奶香芝士味,还夹杂着葱香味,薯香味。哈哈,象我喜欢咸味的朋友有口福了。","ingredients":"土豆,200g;奶油芝士,150g;低筋面粉,100g","burden":"盐,适量;葱,15g","albums":"http://img.juhe.cn/cookbook/t/5/4362_653505.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.原料集合;","img":"http://img.juhe.cn/cookbook/s/44/4362_c2c180743158786d.jpg"},{"step":"2.土豆剥皮后煮熟或用微波炉转熟备用,葱切成葱花;","img":"http://img.juhe.cn/cookbook/s/44/4362_f22951a68568da21.jpg"},{"step":"3.将土豆泥,芝士,放入大保鲜袋内,用擀面杖擀成泥状,加入适量盐和面粉及葱花用手揉匀;","img":"http://img.juhe.cn/cookbook/s/44/4362_1938af93ced49b99.jpg"},{"step":"4.将做好的芝士土豆泥装入裱花袋,装好花型裱花嘴,在垫有油纸的烤盘上,将芝士土豆泥裱成玫瑰花型;","img":"http://img.juhe.cn/cookbook/s/44/4362_b2651a66a88a751e.jpg"},{"step":"5.烤箱预热180度,将烤盘放入第一层18-20分钟,表层上色即可;","img":"http://img.juhe.cn/cookbook/s/44/4362_4fa914bcb28957ba.jpg"},{"step":"6.出炉成品。","img":"http://img.juhe.cn/cookbook/s/44/4362_0ee6f6279fcde53d.jpg"}],"works":[]},{"id":"639","caipu_id":"8521","title":"鸡蛋青菜土豆粉","tags":"增强免疫力;懒人食谱;煮;粤菜","imtro":"买回来的土豆粉有点多,所以就一半汤粉一半炒粉,只要是粉,不管怎样做,仔仔都喜欢吃呢!汤粉吃久了,换个口味,感觉更好吃哦!而且土豆粉久煮汤汁都不会变混,清清爽爽的,看起来就有食欲哦!","ingredients":"土豆粉,100g","burden":"油,适量;盐,适量;鸡蛋,1个;青菜,适量","albums":"http://img.juhe.cn/cookbook/t/9/8521_927547.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.鸡蛋液打散,放适量盐","img":"http://img.juhe.cn/cookbook/s/86/8521_cdb5ab10941c1a8b.jpg"},{"step":"2.煎熟备用","img":"http://img.juhe.cn/cookbook/s/86/8521_a41598e2028d6789.jpg"},{"step":"3.油锅放适量油,烧开一碗水,放盐、适量高汤调味,倒入碗里","img":"http://img.juhe.cn/cookbook/s/86/8521_86dd72bbba2e56a1.jpg"},{"step":"4.土豆粉洗干净备用","img":"http://img.juhe.cn/cookbook/s/86/8521_f23e511e8a0e3a38.jpg"},{"step":"5.另起锅烧开半锅水","img":"http://img.juhe.cn/cookbook/s/86/8521_868ef64d242291e3.jpg"},{"step":"6.倒入土豆粉","img":"http://img.juhe.cn/cookbook/s/86/8521_1a7c70a28cc04277.jpg"},{"step":"7.煮至土豆粉体积膨大","img":"http://img.juhe.cn/cookbook/s/86/8521_b349d40961470eff.jpg"},{"step":"8.捞出来放入汤里","img":"http://img.juhe.cn/cookbook/s/86/8521_3de220e3dd00e1c5.jpg"},{"step":"9.青菜烫熟","img":"http://img.juhe.cn/cookbook/s/86/8521_0a840558c4280527.jpg"},{"step":"10.和鸡蛋一起摆在土豆粉上即可","img":"http://img.juhe.cn/cookbook/s/86/8521_cfe2adf11d2e48e1.jpg"}],"works":[]},{"id":"1211","caipu_id":"213","title":"红烧排骨土豆","tags":"冬季;增强抵抗力;家常菜;滋阴润燥;私房菜","imtro":"排骨烧土豆是一道经典的家常菜,也是很多人都喜爱的美味。 在北方冬季,也是会经常出现在餐桌上一道的老少皆宜的大众美食。 很多人从小吃到大,可是依然每次都会让你胃口大开越吃越有味,土豆绵软入味,排骨香味浓郁绝对的经典搭档。也是冬季餐桌超级给力的下饭菜。","ingredients":"猪肋排,500g;土豆,500g","burden":"油,适量;盐,适量;葱姜,适量;大料,2个;香叶,2片;老抽,10ml;生抽,25ml;白糖,10g;桂皮,1块;干辣椒,2个","albums":"http://img.juhe.cn/cookbook/t/1/213_850554.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.准备好所有的食材。","img":"http://img.juhe.cn/cookbook/s/3/213_d4af8ea401bff686.jpg"},{"step":"2.排骨洗净冷水入锅焯烫。","img":"http://img.juhe.cn/cookbook/s/3/213_6b897fd38b3c6275.jpg"},{"step":"3.炒锅倒油放入白糖。","img":"http://img.juhe.cn/cookbook/s/3/213_d26ef8854274dae9.jpg"},{"step":"4.小火炒糖色,至白糖颜色变褐色。","img":"http://img.juhe.cn/cookbook/s/3/213_896ed2a4508dc7e7.jpg"},{"step":"5.加入排骨翻炒。","img":"http://img.juhe.cn/cookbook/s/3/213_5de5c20530bb7c85.jpg"},{"step":"6.加入调味料继续翻炒出香味。","img":"http://img.juhe.cn/cookbook/s/3/213_710c59b0fdf94a65.jpg"},{"step":"7.加入料酒炒香。","img":"http://img.juhe.cn/cookbook/s/3/213_07aa5b3bac6f8db7.jpg"},{"step":"8.加老抽和生抽炒至排骨上色。","img":"http://img.juhe.cn/cookbook/s/3/213_435e8c718eaae8b0.jpg"},{"step":"9.然后加入适量的清水大火煮开。","img":"http://img.juhe.cn/cookbook/s/3/213_c1063c5fc71de048.jpg"},{"step":"10.加盖小火焖烧40分钟。","img":"http://img.juhe.cn/cookbook/s/3/213_6130debe386ad84a.jpg"},{"step":"11.土豆去皮切块清水浸泡。","img":"http://img.juhe.cn/cookbook/s/3/213_9234ac8537ea6d39.jpg"},{"step":"12.40分钟后加入土豆转中火继续烧制。","img":"http://img.juhe.cn/cookbook/s/3/213_22dc2d05ca20af56.jpg"},{"step":"13.土豆绵软加少许盐调味,大火收汁即可关火。","img":"http://img.juhe.cn/cookbook/s/3/213_5bf1f3cff90fa665.jpg"}],"works":[]},{"id":"1234","caipu_id":"15461","title":"土豆红烧排骨","tags":"家常菜;瘦身;润肠通便;高血脂;防癌;烧;动脉硬化;便秘;冬季;降血脂;减肥;提高免疫力;健脾;肥胖;健脾养胃;脂肪肝;健脾胃;四季食谱;脾虚","imtro":"家里买回来十磅的土豆,除了做沙拉吃以外,还用来做了\u201c芝士焗土豆\u201d\u201c土豆炒培根\u201d。今天先分享这款\u201c土豆红烧排骨\u201d吧,因为太美味好吃了,特别是土豆,完全吸收了排骨的肉汁精华,又香又粉,嗨嗨,土豆几乎让我包干了。","ingredients":"排骨,400g;土豆,300g;香菇,150g","burden":"油,适量;生抽,适量","albums":"http://img.juhe.cn/cookbook/t/16/15461_943036.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.将买回来的排骨清洗干净之后切小块。","img":"http://img.juhe.cn/cookbook/s/155/15461_3a0b842ba7633789.jpg"},{"step":"2.香菇用水泡浸之后清洗干净,土豆去皮。","img":"http://img.juhe.cn/cookbook/s/155/15461_2de3911d52e90e7f.jpg"},{"step":"3.煮锅放入适量的白糖炒至焦黄。","img":"http://img.juhe.cn/cookbook/s/155/15461_dc5c90270094be3f.jpg"},{"step":"4.将排骨放入炒至上色(可以直接用老抽上色)","img":"http://img.juhe.cn/cookbook/s/155/15461_679121120bb6cd8d.jpg"},{"step":"5.排骨加水换上不粘锅。","img":"http://img.juhe.cn/cookbook/s/155/15461_51dbe8139b1d2991.jpg"},{"step":"6.加入土豆香菇大火烧开然后改中火烧半小时(具体时间看自己喜欢烧好的排骨口感来定)","img":"http://img.juhe.cn/cookbook/s/155/15461_0529744da645303f.jpg"},{"step":"7.最后放入适量的生抽和鸡精调味大火烧至收汁洒些香葱即可。","img":"http://img.juhe.cn/cookbook/s/155/15461_1f91cc12c8e5d426.jpg"},{"step":"8.烧好的\u201c土豆红烧排骨\u201d土豆口味醇香,排骨肉质烂软。即下饭又美味。","img":"http://img.juhe.cn/cookbook/s/155/15461_d4d5f2d2ff2cb497.jpg"}],"works":[]},{"id":"1459","caipu_id":"9340","title":"干煸豆角土豆","tags":"东北菜;家常菜;热菜;素菜;健脾胃","imtro":"这个菜我好好吃,不过我做了一个很错误地地方就是配料糊了,多多少少也影响了一点,另外颜色不好看了,味道很不错。","ingredients":"土豆,2个;豆角,250g","burden":"油,适量;盐,适量;葱,适量;蒜,适量;干辣椒,适量;味精,适量","albums":"http://img.juhe.cn/cookbook/t/10/9340_134047.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.土豆去皮豆角去丝,洗净","img":"http://img.juhe.cn/cookbook/s/94/9340_60337f0d2ba58a51.jpg"},{"step":"2.葱蒜,干辣椒切碎,土豆切片,豆角对折","img":"http://img.juhe.cn/cookbook/s/94/9340_4fb0d7db3f6283ee.jpg"},{"step":"3.土豆放在油锅里炒熟,沥油","img":"http://img.juhe.cn/cookbook/s/94/9340_73ed05383025b63b.jpg"},{"step":"4.另起锅放葱蒜干辣椒炒香,注意别大火辣椒容易糊","img":"http://img.juhe.cn/cookbook/s/94/9340_674f6b1c4eed063e.jpg"},{"step":"5.放豆角干炒,炒熟水分,变翠绿色并且起泡,就熟了","img":"http://img.juhe.cn/cookbook/s/94/9340_f44a07bbc3d16d41.jpg"},{"step":"6.再放土豆片,盐翻炒,最后放味精","img":"http://img.juhe.cn/cookbook/s/94/9340_78db1a32e608bd53.jpg"},{"step":"7.出锅","img":"http://img.juhe.cn/cookbook/s/94/9340_e110428fc0198bdc.jpg"}],"works":[]},{"id":"1548","caipu_id":"45638","title":"红烧猪脚土豆","tags":"增肥;冬季;红烧肉;健脾;美容菜;祛风散寒;祛寒;健脾胃;红烧猪脚;助睡眠;脾虚","imtro":"猪蹄女人吃了是美容对于男人更不用说了,一般男人都是肉食动物,最喜欢吃肉了今天红烧猪脚,我加了土豆下去这样土豆吸收了猪脚的香味,味道真的很好 猪蹄含有丰富的胶原蛋白,在烹调过程中可转化成明胶、它能结合许多水,从而有效改善机体生理功能和皮肤组织细胞的储水功能,防止皮肤过早褶皱,延缓皮肤衰老。爱美的你可要多吃点哟。","ingredients":"猪脚,1000g;土豆,500g","burden":"油,适量;盐,适量;酱油,适量;糖,适量","albums":"http://img.juhe.cn/cookbook/t/46/45638_999285.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.准备好食材","img":"http://img.juhe.cn/cookbook/s/457/45638_4760801f8d470be2.jpg"},{"step":"2.猪脚放入锅中开水去掉血水","img":"http://img.juhe.cn/cookbook/s/457/45638_189d4870ccd3575e.jpg"},{"step":"3.去掉血水在洗干净","img":"http://img.juhe.cn/cookbook/s/457/45638_2e11edd0447bfa2a.jpg"},{"step":"4.锅内放入适量的油放入白糖炒到酱油的颜色","img":"http://img.juhe.cn/cookbook/s/457/45638_f2231983f35afebd.jpg"},{"step":"5.放入猪脚","img":"http://img.juhe.cn/cookbook/s/457/45638_6d0df2eb9fb20521.jpg"},{"step":"6.放入土豆","img":"http://img.juhe.cn/cookbook/s/457/45638_27b01a4144830675.jpg"},{"step":"7.加入适量的盐","img":"http://img.juhe.cn/cookbook/s/457/45638_6811c34c42ae3f1c.jpg"},{"step":"8.加入适量的水","img":"http://img.juhe.cn/cookbook/s/457/45638_d14f0716e6ba5479.jpg"},{"step":"9.加入适量的酱油","img":"http://img.juhe.cn/cookbook/s/457/45638_bc68aaddfb07cb4a.jpg"},{"step":"10.翻炒均匀","img":"http://img.juhe.cn/cookbook/s/457/45638_48b931f2da7934de.jpg"},{"step":"11.放入高压锅中","img":"http://img.juhe.cn/cookbook/s/457/45638_a4a1aa12dbe919f9.jpg"},{"step":"12.压出气后8分钟即可","img":"http://img.juhe.cn/cookbook/s/457/45638_fe4f5e078d8b343b.jpg"}],"works":[]},{"id":"1644","caipu_id":"16974","title":"土豆咖喱鸡","tags":"食材;家常菜;热菜;明目;延缓衰老;补血;护肝;养胃;增肥;贫血;特禀质;痛风;原味;咖喱;10-20分钟;半小时-1小时;煮;烧;简单;咖喱粉;冬季;美白;养颜;咖喱味;咖喱块;维生素B;1-2人;健脾;祛风散寒;祛寒;养肝护肝;补肝;健脾胃;锅子;调理肠胃;助睡眠;脾虚","imtro":"我的处女作,第一次做的美食--土豆咖喱鸡,希望大家支持! 我还用模具弄了饭团,做成一盘咖喱鸡饭给宝贝吃,可喜欢了呢!","ingredients":"鸡翅,4个;胡萝卜,40g;土豆,40g","burden":"咖喱块,适量;姜,适量;盐,适量","albums":"http://img.juhe.cn/cookbook/t/17/16974_796077.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.胡萝卜和土豆切小块。","img":"http://img.juhe.cn/cookbook/s/170/16974_68906539e35d9b88.jpg"},{"step":"2.鸡翅洗干净斩块,用盐和姜腌二十分钟。","img":"http://img.juhe.cn/cookbook/s/170/16974_a8ddf8bf68525aea.jpg"},{"step":"3.热油锅,把材料全部倒进去爆炒,炒出香味。","img":"http://img.juhe.cn/cookbook/s/170/16974_c074193d492a18ef.jpg"},{"step":"4.加入300毫升的开水,煮开后,关小火,放入两小块咖喱,搅拌至充分溶解,再中火熵煮十分钟,至咖喱汁浓稠。","img":"http://img.juhe.cn/cookbook/s/170/16974_44756cc971251f7f.jpg"},{"step":"5.出锅,土豆咖喱鸡翅,成功!","img":"http://img.juhe.cn/cookbook/s/170/16974_b449fb401043d1fb.jpg"}],"works":[]},{"id":"1649","caipu_id":"23166","title":"土豆咖喱鸡翅","tags":"增肥;炒;冬季;咖喱味;踏青;健脾;祛风散寒;祛寒;春季养生;健脾胃;春季菜谱;助睡眠;脾虚","imtro":"不管 某一职业 你会遇到 无理取闹的 客户 你能做的就是 那样 微笑的 说着 给你造成的困扰很抱歉 而其实 你在这端 早已泪流满面","ingredients":"土豆,200g;鸡翅,350g","burden":"油,适量;盐,适量;咖喱,适量;生抽,适量;大蒜,适量","albums":"http://img.juhe.cn/cookbook/t/24/23166_289242.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.土豆切块","img":"http://img.juhe.cn/cookbook/s/232/23166_2d35797310195961.jpg"},{"step":"2.鸡翅泡水 去下血水","img":"http://img.juhe.cn/cookbook/s/232/23166_59a9798c5306e5c5.jpg"},{"step":"3.加点 油 酱油 盐","img":"http://img.juhe.cn/cookbook/s/232/23166_70c7fdb8fcc2bdab.jpg"},{"step":"4.加入大蒜 用手揉几下。。更入味","img":"http://img.juhe.cn/cookbook/s/232/23166_8a3f81a785a08d30.jpg"},{"step":"5.鸡翅煎到两面金黄","img":"http://img.juhe.cn/cookbook/s/232/23166_a6bb21729e0c9385.jpg"},{"step":"6.加入水 没过鸡翅","img":"http://img.juhe.cn/cookbook/s/232/23166_297c2fe8ec789e19.jpg"},{"step":"7.加入咖喱粉。加其他调味料","img":"http://img.juhe.cn/cookbook/s/232/23166_14bf08566017c797.jpg"},{"step":"8.加入土豆,炖15分钟。大火收汁即可","img":"http://img.juhe.cn/cookbook/s/232/23166_f650214b8a45feff.jpg"}],"works":[]},{"id":"1657","caipu_id":"30392","title":"土豆咖喱鸡蒸饭","tags":"10-20分钟;蒸;香;冬季;饭;全菜系;1-2人;蒸锅","imtro":"一碗剩饭,因加了多种的料,变得有了诱人的色泽。淡淡的咖喱香,面面的土豆丁,鲜香的玉米粒,还有白嫩嫩的鸡丁,绝对挑逗你的味蕾。","ingredients":"剩米饭,100g;土豆,100g;洋葱,30g;火腿丁,30g;鸡脯肉,80g;玉米粒,30g","burden":"食用油,适量;盐,适量;咖喱粉,适量","albums":"http://img.juhe.cn/cookbook/t/31/30392_388265.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.土豆、洋葱、火腿、鸡肉切小丁。","img":"http://img.juhe.cn/cookbook/s/304/30392_b2ba07cec72d2b21.jpg"},{"step":"2.剩米饭、玉米粒备用。","img":"http://img.juhe.cn/cookbook/s/304/30392_50ee9a1478d4e219.jpg"},{"step":"3.油锅烧热,入土豆丁翻炒。","img":"http://img.juhe.cn/cookbook/s/304/30392_21d0229df42b01ee.jpg"},{"step":"4.当土豆变的透亮时,加入鸡丁。","img":"http://img.juhe.cn/cookbook/s/304/30392_7af5dbc1d0023274.jpg"},{"step":"5.鸡肉变白时,加入洋葱。","img":"http://img.juhe.cn/cookbook/s/304/30392_f72803484677005a.jpg"},{"step":"6.调小火,将火腿丁、米饭加入,放盐、咖喱粉翻炒匀。","img":"http://img.juhe.cn/cookbook/s/304/30392_2a8c08601b6baef0.jpg"},{"step":"7.炒匀关火。","img":"http://img.juhe.cn/cookbook/s/304/30392_e5d9f6ddf462d583.jpg"},{"step":"8.放入带盖的微波容器中,高火10分钟即可。","img":"http://img.juhe.cn/cookbook/s/304/30392_1c63aac68dd86a41.jpg"}],"works":[]},{"id":"1817","caipu_id":"25","title":"酸辣土豆丝","tags":"家常菜;热菜;增肥;酸辣;炒;秋季养生;秋季菜谱;健脾;祛风散寒;祛寒;健脾胃;助睡眠;脾虚","imtro":"酸辣土豆丝可谓是人见人爱的一道家常菜,虽然价格便宜但是酸辣可口味道味道却是大家喜爱的。无论是家庭餐桌、还是饭馆酒店几乎都能见到它的身影,虽然酸辣土豆丝是一道普通的菜肴,但是能够做好也是不容易的,如何才能保持土豆丝熟而脆爽是关键,这个和土豆的选择、土豆丝的处理、炒制时的时间火候的把握有密切的关系。土豆最好选择含水量高的新土豆,土豆丝要过水,炒制时大火快炒勤翻动,掌握了这些窍门相信你也能做出饭店水平。","ingredients":"土豆,500g;干辣椒,2个;香菜梗,3g","burden":"大蒜,5g;盐,3/4小勺;大葱,5g;味精,1/4小勺;陈醋,1大勺","albums":"http://img.juhe.cn/cookbook/t/0/25_843544.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.所有原料准备好,清洗干净。","img":"http://img.juhe.cn/cookbook/s/1/25_9ef4fe27960f943f.jpg"},{"step":"2.土豆丝去皮切成丝,用清水洗净表面的淀粉,再浸泡5分钟。","img":"http://img.juhe.cn/cookbook/s/1/25_c4801d7b28ab874f.jpg"},{"step":"3.葱蒜切片,干辣椒斜切成段,香菜梗切段。","img":"http://img.juhe.cn/cookbook/s/1/25_8a8179ca02be7fbd.jpg"},{"step":"4.起油锅,油温升至4成热时放入干辣椒、葱蒜片爆香。","img":"http://img.juhe.cn/cookbook/s/1/25_f2ec4bb90825a255.jpg"},{"step":"5.放入土豆丝。","img":"http://img.juhe.cn/cookbook/s/1/25_10abc27a04511833.jpg"},{"step":"6.加入盐。","img":"http://img.juhe.cn/cookbook/s/1/25_557e2a1b072469b6.jpg"},{"step":"7.再加入陈醋。","img":"http://img.juhe.cn/cookbook/s/1/25_ac31d1f41af9e34f.jpg"},{"step":"8.开大火快速翻炒,直至土豆丝8成熟关火,放入香菜段和味精快速炒匀出锅。","img":"http://img.juhe.cn/cookbook/s/1/25_e977f05fa6a28fc0.jpg"}],"works":[]},{"id":"1818","caipu_id":"126","title":"酸辣土豆丝","tags":"家常菜;增肥;老年人;酸辣;炒;晚餐;健脾;祛风散寒;祛寒;健脾胃;助睡眠;脾虚","imtro":"这道菜,豆亲们肯定都会做。 是不是有亲会问,为什么自已在炒时经常会粘锅,炒得过轻吃时会口感发生,炒得火侯大了又会变得绵软没有嚼头, 寡而无味。 所以说,要想把这道菜做的酸辣开胃,土豆脆而入味,也并不是一个简单的事。有时,越简单的菜,越可以考验真功夫。苹果有几个小窍门要和各位亲一起分享。","ingredients":"土豆,350g","burden":"油,适量;盐,适量;尖椒,适量;花椒,适量;葱,适量;蒜,适量;醋,两匙;芝麻油,适量","albums":"http://img.juhe.cn/cookbook/t/1/126_788357.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.准备食材。","img":"http://img.juhe.cn/cookbook/s/2/126_497712891b642dd8.jpg"},{"step":"2.用削皮刀去皮。","img":"http://img.juhe.cn/cookbook/s/2/126_da3cc33e83529053.jpg"},{"step":"3.切成薄片(一定要掌握厚薄均匀)。","img":"http://img.juhe.cn/cookbook/s/2/126_908cdc8e8270d4fe.jpg"},{"step":"4.用手将切好的土豆片轻轻按划匀。","img":"http://img.juhe.cn/cookbook/s/2/126_224e494f57bbb4e4.jpg"},{"step":"5.一只手微卷,手指向下呈九十度,指甲向下压,中指关节与刀面贴近,将土豆片切成丝(这样做,可以很好的保护手指,以免切伤) 。","img":"http://img.juhe.cn/cookbook/s/2/126_11651f49b640133c.jpg"},{"step":"6.切好的土豆丝放清水中洗一下,然后换一下水略泡十分钟左右。","img":"http://img.juhe.cn/cookbook/s/2/126_a5a45ddfb6d60fe7.jpg"},{"step":"7.再次清洗土豆丝,至水清透明。","img":"http://img.juhe.cn/cookbook/s/2/126_511e5cd8e824fa04.jpg"},{"step":"8.捞出沥水备用。","img":"http://img.juhe.cn/cookbook/s/2/126_508cb7443c12177d.jpg"},{"step":"9.等待泡土豆丝时,将蒜用刀拍一下即可(也可切成片,或剁成蒜米,随个人喜好)。","img":"http://img.juhe.cn/cookbook/s/2/126_439d74fcc8a97479.jpg"},{"step":"10.青红椒切成丝(也可用干红椒,各有风味),准备点葱花。","img":"http://img.juhe.cn/cookbook/s/2/126_831d4287ff891f49.jpg"},{"step":"11.锅中放适量油,加入花椒。","img":"http://img.juhe.cn/cookbook/s/2/126_62d69081b32b15aa.jpg"},{"step":"12.慢慢炸香,出香味后,捞出(一定要捞干净,否则吃到花椒的感觉真的不妙)。","img":"http://img.juhe.cn/cookbook/s/2/126_17794a0c72a06ed5.jpg"},{"step":"13.在炸好的花椒油中,放入葱花和蒜炒出香味。","img":"http://img.juhe.cn/cookbook/s/2/126_59737da38c496fed.jpg"},{"step":"14.加入青红椒丝。","img":"http://img.juhe.cn/cookbook/s/2/126_4295efd4190ba3bb.jpg"},{"step":"15.略炒后拔到一边放入土豆丝 。","img":"http://img.juhe.cn/cookbook/s/2/126_a0e81ed60db30e02.jpg"},{"step":"16.快速划炒。","img":"http://img.juhe.cn/cookbook/s/2/126_3ba6c6e90596cfd9.jpg"},{"step":"17.至土豆丝变色时,加入一勺米醋(比起白醋来,我更喜欢米醋的清香)。","img":"http://img.juhe.cn/cookbook/s/2/126_7aedf669d04afbd1.jpg"},{"step":"18.再翻炒几下,加入适量盐。","img":"http://img.juhe.cn/cookbook/s/2/126_830de3c4bd5c57f5.jpg"},{"step":"19.到了自已喜欢的火侯,再加入一勺米醋炒匀关火。","img":"http://img.juhe.cn/cookbook/s/2/126_1713e2c7eacbee9c.jpg"},{"step":"20.加入少许芝麻油调味更香。","img":"http://img.juhe.cn/cookbook/s/2/126_a85ea59892cb8342.jpg"}],"works":[]},{"id":"1819","caipu_id":"1185","title":"私房秘制酸辣土豆丝","tags":"增肥;素菜;酸辣土豆丝;下饭菜;快手菜;夏季饮食;健脾;减肥食谱;祛风散寒;祛寒;健脾胃;心蓝手制私房菜;美白食谱;土豆丝的做法;助睡眠;脾虚","imtro":"心蓝手制私房菜【私房秘制酸辣土豆丝】\u2014\u2014为爱烹饪 正在午后小眯,急促的电话铃声将心蓝吵醒,一看,是阿文。这小子,这时候,不对啊,正常情况下,他应该是中午喝的大醉,在某个宾馆埋头大睡,为夜间的疯狂做准备啊。 \u201c喂,情种。\u201d\u201c心蓝,求你个事,明天你能到我这来一下吗?\u201d奇了怪了,阿文啥时候这么客气的和人说话啊:\u201c啥事?\u201d\u201c来了就知道啦,明天早上就来啊,求你了哥哥,这次全靠你了,记得把你全套的堺都带来。\u201d","ingredients":"土豆,500g","burden":"泡菜,适量;白醋,适量;油,5g;盐,4g;味素,2g;泡椒水,3ml;青红二荆条,少许","albums":"http://img.juhe.cn/cookbook/t/2/1185_736909.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.土豆刨皮,切薄片,再切细丝,切好的土豆丝用清水浸泡漂洗干净表面淀粉待用","img":"http://img.juhe.cn/cookbook/s/12/1185_d5b0b92727fb1823.jpg"},{"step":"2.青红二荆条切长段,平剖开,去籽及筋,切细丝,浸泡在清水中","img":"http://img.juhe.cn/cookbook/s/12/1185_f7a16f458725e6fd.jpg"},{"step":"3.泡姜泡蒜泡椒切米待用","img":"http://img.juhe.cn/cookbook/s/12/1185_67903b2284476dd4.jpg"},{"step":"4.坐锅烧水,下白醋,水开后下土豆丝过水,沥水待用","img":"http://img.juhe.cn/cookbook/s/12/1185_a0b0d1fbb2ddcbf7.jpg"},{"step":"5.坐锅起油,下泡姜泡蒜泡椒米炒香","img":"http://img.juhe.cn/cookbook/s/12/1185_b31f4784c2686e92.jpg"},{"step":"6.下土豆丝,翻炒均匀,下味素、盐,翻炒2分钟","img":"http://img.juhe.cn/cookbook/s/12/1185_ca4fae34214d890d.jpg"},{"step":"7.下青红二荆条丝,翻炒2分钟","img":"http://img.juhe.cn/cookbook/s/12/1185_e5acdf0a0db16442.jpg"},{"step":"8.淋泡椒水,翻炒均匀,待酸香味浓郁时起锅即可","img":"http://img.juhe.cn/cookbook/s/12/1185_ccee15c18c55a1f5.jpg"}],"works":[]},{"id":"1820","caipu_id":"1321","title":"酸辣土豆丝","tags":"快手菜;增强免疫力;健脾胃;减肥","imtro":"土豆有营养,是抗衰老的食物。它含有丰富的维生素B1、B2、B6和泛酸等B群维生素及大量的优质纤维素,还含有微量元素、氨基酸、蛋白质、脂肪和优质淀粉等营养元素。经常吃土豆的人身体健康,老的慢。","ingredients":"土豆,2个;尖椒,1个;彩椒,半个","burden":"葱末,适量;蒜末,适量;花椒粒,适量;干辣椒,适量;食盐,适量;味精,适量;白糖,适量;食醋,适量","albums":"http://img.juhe.cn/cookbook/t/2/1321_171427.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.主要食材","img":"http://img.juhe.cn/cookbook/s/14/1321_559ff9fd6b4065fd.jpg"},{"step":"2.土豆先切片,然后切丝。","img":"http://img.juhe.cn/cookbook/s/14/1321_56218d33cf818849.jpg"},{"step":"3.用清水将切好的土豆丝泡去淀粉。","img":"http://img.juhe.cn/cookbook/s/14/1321_e51e19ab8b0d6394.jpg"},{"step":"4.尖椒和彩椒分别切丝","img":"http://img.juhe.cn/cookbook/s/14/1321_1b2f1352546924f2.jpg"},{"step":"5.葱、大蒜切末。干辣椒切段。","img":"http://img.juhe.cn/cookbook/s/14/1321_38492d476a9161bc.jpg"},{"step":"6. 锅内放油放入花椒煸炒出香味,将炸好的花椒捞出","img":"http://img.juhe.cn/cookbook/s/14/1321_83f8f725e461c321.jpg"},{"step":"7.放入葱、蒜末、辣椒段煸炒出香","img":"http://img.juhe.cn/cookbook/s/14/1321_fe23f5ac73e1ac31.jpg"},{"step":"8.放入泡好的土豆丝。","img":"http://img.juhe.cn/cookbook/s/14/1321_5cf68cb0f936b33d.jpg"},{"step":"9.煸炒一小会后倒入适量醋继续翻炒土豆丝。","img":"http://img.juhe.cn/cookbook/s/14/1321_a7c03b64a3468fcf.jpg"},{"step":"10.加入青红椒煸炒。","img":"http://img.juhe.cn/cookbook/s/14/1321_486517bf565808ce.jpg"},{"step":"11.加入青红椒煸炒均匀后,依次加入食盐、味精、少许白糖调味。","img":"http://img.juhe.cn/cookbook/s/14/1321_2d917e93c52f73ba.jpg"},{"step":"12.加入调味料翻炒均匀即可关火。","img":"http://img.juhe.cn/cookbook/s/14/1321_b18b97b47c2e3874.jpg"},{"step":"13.既简单有开胃 的酸辣土豆丝。","img":"http://img.juhe.cn/cookbook/s/14/1321_58ac5916f295128c.jpg"}],"works":[]},{"id":"1821","caipu_id":"1747","title":"酸辣土豆丝","tags":"酸辣;炒;快手菜","imtro":"这是一道经典的家常菜,经典之所以经典,是它的大众需求与热爱,民众的口碑奠定了它经典的基础,经年而不倒,也是上至厅堂下至民众餐桌,常常能见到的菜肴。 经典菜经典的口味,经各家之手,也是有所差异,这取决于各家的口味与饮食习惯。制作这道酸辣土豆丝,稍微进行了调味上的变化。葱姜没再有,选用的是炸好的葱油,相比爆葱花的香气,葱油口感相对醇厚一些。醋的选择,之前用过镇江香醋和白醋,香醋相对颜色较重,加入里面口","ingredients":"土豆,300g;青椒,40g;红辣椒,10g","burden":"油,适量;盐,适量;葱油,适量;苹果醋,适量;花椒,适量;鸡精,适量;十三香,适量;大蒜,5g","albums":"http://img.juhe.cn/cookbook/t/2/1747_934444.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.土豆一个洗净备用。","img":"http://img.juhe.cn/cookbook/s/18/1747_8a78c54a57ac29a9.jpg"},{"step":"2.准备青、红辣椒和大蒜备用。","img":"http://img.juhe.cn/cookbook/s/18/1747_1c8ff3e4a52b15da.jpg"},{"step":"3.将土豆切成细细的丝。","img":"http://img.juhe.cn/cookbook/s/18/1747_1944dfb889db6b56.jpg"},{"step":"4.将切好的土豆丝放入盆中,用清水洗去淀粉水,直到水变清为止。","img":"http://img.juhe.cn/cookbook/s/18/1747_ed7e3e7475c84210.jpg"},{"step":"5.辣椒切丝,大蒜拍扁备用。","img":"http://img.juhe.cn/cookbook/s/18/1747_441a0ca3b999fec1.jpg"},{"step":"6.炒锅放油,下入花椒粒炸香后,放入大蒜粒爆香。","img":"http://img.juhe.cn/cookbook/s/18/1747_73bb5f15244032ee.jpg"},{"step":"7.放入清洗干净的土豆丝。","img":"http://img.juhe.cn/cookbook/s/18/1747_b3f14b03a83dbfca.jpg"},{"step":"8.加入辣椒丝,放入葱油、食盐、苹果醋、十三香调味。","img":"http://img.juhe.cn/cookbook/s/18/1747_cd46de6618cba187.jpg"},{"step":"9.快火将土豆丝翻炒成熟,加入鸡精调味,出锅即可食用。","img":"http://img.juhe.cn/cookbook/s/18/1747_d85f5a8b30643ef1.jpg"}],"works":[]},{"id":"1822","caipu_id":"1884","title":"酸辣土豆丝","tags":"家常菜;增肥;酸辣;快手菜;健脾;祛风散寒;祛寒;健脾胃;助睡眠;脾虚","imtro":"君君不爱吃土豆、尤其不爱吃土豆丝、很多人学的第一道菜应该就是这道酸辣土豆丝、因为我个人非常不喜欢吃土豆丝、所以才拖延到现在回头做这道菜、人家都说什么什么像酸辣土豆丝、平凡又简单、餐桌上却不能没有你、好吧、我就让土豆丝上一次我的餐桌吧~","ingredients":"土豆,250g","burden":"干辣椒,10g;葱,5g;姜,5g;蒜,5g;花椒,适量;鸡精,适量;盐,适量;醋,适量","albums":"http://img.juhe.cn/cookbook/t/2/1884_250848.jpg","passed":"0","user_upload":"0","steps":[{"step":"1.准备土豆一枚,我本来准备了两枚,但是临炒的时候觉得太多了,所以只炒了一半","img":"http://img.juhe.cn/cookbook/s/19/1884_7bf8943c85721b35.jpg"},{"step":"2.土豆洗净剥皮","img":"http://img.juhe.cn/cookbook/s/19/1884_00977054343001da.jpg"},{"step":"3.用小工具把土豆剥成细丝,记住使用时小心,以防伤到手,没有小工具的孩纸们就乖乖手动拿刀切吧","img":"http://img.juhe.cn/cookbook/s/19/1884_6c494b91c774c258.jpg"},{"step":"4.土豆一切下来就放盛有冷水的碗里,洗净淀粉,可以让土豆炒出来口感脆脆的","img":"http://img.juhe.cn/cookbook/s/19/1884_72defb4312af08c9.jpg"},{"step":"5.全部切好的土豆,这个两个的份,好大一盆","img":"http://img.juhe.cn/cookbook/s/19/1884_8413f59eb20a9c79.jpg"},{"step":"6.葱姜蒜切段","img":"http://img.juhe.cn/cookbook/s/19/1884_380f84bbfeef0575.jpg"},{"step":"7.干辣椒切段,去籽","img":"http://img.juhe.cn/cookbook/s/19/1884_455694e888cd5250.jpg"},{"step":"8.油锅烧热,放油、 七成热的时候下入花椒,红辣椒爆香 下入葱姜蒜炒出香味","img":"http://img.juhe.cn/cookbook/s/19/1884_ab27e5476e2b09bd.jpg"},{"step":"9.下入土豆丝翻炒均匀","img":"http://img.juhe.cn/cookbook/s/19/1884_e4165a1a56a4fad4.jpg"},{"step":"10.加一点点醋","img":"http://img.juhe.cn/cookbook/s/19/1884_694ad47002799bcc.jpg"},{"step":"11.加点盐、根据个人口味适量","img":"http://img.juhe.cn/cookbook/s/19/1884_d651ab7696238b0e.jpg"},{"step":"12.加少量鸡精","img":"http://img.juhe.cn/cookbook/s/19/1884_d6a71dc39bf490ee.jpg"},{"step":"13.翻炒均匀关火,盛盘,香喷喷的酸辣土豆丝出锅咯","img":"http://img.juhe.cn/cookbook/s/19/1884_c1897582d95c77a3.jpg"}],"works":[]}] + * totalNum : 15 + */ + + private int totalNum; + private List data; + + public int getTotalNum() { + return totalNum; + } + + public void setTotalNum(int totalNum) { + this.totalNum = totalNum; + } + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public static class DataBean { + /** + * id : 472 + * caipu_id : 4362 + * title : 咸香土豆芝士曲奇 + * tags : 传统西餐;烘焙;甜品;增肥;甜;咸香;半小时-1小时;煮;烤;简单;饼干;烤箱;冬季;芝士;香甜;1-2人;健脾;祛风散寒;祛寒;健脾胃;1小时-2小时;助睡眠;脾虚 + * imtro : 很久没有碰烤箱了。这次为了尽快解决家里的芝士,又开始动手。 这次的曲奇有浓郁的奶香芝士味,还夹杂着葱香味,薯香味。哈哈,象我喜欢咸味的朋友有口福了。 + * ingredients : 土豆,200g;奶油芝士,150g;低筋面粉,100g + * burden : 盐,适量;葱,15g + * albums : http://img.juhe.cn/cookbook/t/5/4362_653505.jpg + * passed : 0 + * user_upload : 0 + * steps : [{"step":"1.原料集合;","img":"http://img.juhe.cn/cookbook/s/44/4362_c2c180743158786d.jpg"},{"step":"2.土豆剥皮后煮熟或用微波炉转熟备用,葱切成葱花;","img":"http://img.juhe.cn/cookbook/s/44/4362_f22951a68568da21.jpg"},{"step":"3.将土豆泥,芝士,放入大保鲜袋内,用擀面杖擀成泥状,加入适量盐和面粉及葱花用手揉匀;","img":"http://img.juhe.cn/cookbook/s/44/4362_1938af93ced49b99.jpg"},{"step":"4.将做好的芝士土豆泥装入裱花袋,装好花型裱花嘴,在垫有油纸的烤盘上,将芝士土豆泥裱成玫瑰花型;","img":"http://img.juhe.cn/cookbook/s/44/4362_b2651a66a88a751e.jpg"},{"step":"5.烤箱预热180度,将烤盘放入第一层18-20分钟,表层上色即可;","img":"http://img.juhe.cn/cookbook/s/44/4362_4fa914bcb28957ba.jpg"},{"step":"6.出炉成品。","img":"http://img.juhe.cn/cookbook/s/44/4362_0ee6f6279fcde53d.jpg"}] + * works : [] + */ + + private String id; + private String caipu_id; + private String title; + private String tags; + private String imtro; + private String ingredients; + private String burden; + private String albums; + private String passed; + private String user_upload; + private List steps; + private List works; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getCaipu_id() { + return caipu_id; + } + + public void setCaipu_id(String caipu_id) { + this.caipu_id = caipu_id; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getTags() { + return tags; + } + + public void setTags(String tags) { + this.tags = tags; + } + + public String getImtro() { + return imtro; + } + + public void setImtro(String imtro) { + this.imtro = imtro; + } + + public String getIngredients() { + return ingredients; + } + + public void setIngredients(String ingredients) { + this.ingredients = ingredients; + } + + public String getBurden() { + return burden; + } + + public void setBurden(String burden) { + this.burden = burden; + } + + public String getAlbums() { + return albums; + } + + public void setAlbums(String albums) { + this.albums = albums; + } + + public String getPassed() { + return passed; + } + + public void setPassed(String passed) { + this.passed = passed; + } + + public String getUser_upload() { + return user_upload; + } + + public void setUser_upload(String user_upload) { + this.user_upload = user_upload; + } + + public List getSteps() { + return steps; + } + + public void setSteps(List steps) { + this.steps = steps; + } + + public List getWorks() { + return works; + } + + public void setWorks(List works) { + this.works = works; + } + + public static class StepsBean { + /** + * step : 1.原料集合; + * img : http://img.juhe.cn/cookbook/s/44/4362_c2c180743158786d.jpg + */ + + private String step; + private String img; + + public String getStep() { + return step; + } + + public void setStep(String step) { + this.step = step; + } + + public String getImg() { + return img; + } + + public void setImg(String img) { + this.img = img; + } + } + } + } +} diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..dd0bb0d --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,19 @@ + + + + + diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..cde69bcccec65160d92116f20ffce4fce0b5245c GIT binary patch literal 3418 zcmZ{nX*|@A^T0p5j$I+^%FVhdvMbgt%d+mG98ubwNv_tpITppba^GiieBBZGI>I89 zGgm8TA>_)DlEu&W;s3#ZUNiH4&CF{a%siTjzG;eOzQB6{003qKeT?}z_5U*{{kgZ; zdV@U&tqa-&4FGisjMN8o=P}$t-`oTM2oeB5d9mHPgTYJx4jup)+5a;Tke$m708DocFzDL>U$$}s6FGiy_I1?O zHXq`q884|^O4Q*%V#vwxqCz-#8i`Gu)2LeB0{%%VKunOF%9~JcFB9MM>N00M`E~;o zBU%)O5u-D6NF~OQV7TV#JAN;=Lylgxy0kncoQpGq<<_gxw`FC=C-cV#$L|(47Hatl ztq3Jngq00x#}HGW@_tj{&A?lwOwrVX4@d66vLVyj1H@i}VD2YXd)n03?U5?cKtFz4 zW#@+MLeDVP>fY0F2IzT;r5*MAJ2}P8Z{g3utX0<+ZdAC)Tvm-4uN!I7|BTw&G%RQn zR+A5VFx(}r<1q9^N40XzP=Jp?i=jlS7}T~tB4CsWx!XbiHSm zLu}yar%t>-3jlutK=wdZhES->*1X({YI;DN?6R=C*{1U6%wG`0>^?u}h0hhqns|SeTmV=s;Gxx5F9DtK>{>{f-`SpJ`dO26Uj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56q0x$;mVJXM1V0;F}y9F29ob51f;;+)t&7l30gloMMHPTuod530FC}j^4#qOJV%5!&e!H9#!N&XQvs5{R zD_FOomd-uk@?_JiWP%&nQ_myBlM6so1Ffa1aaL7B`!ZTXPg_S%TUS*>M^8iJRj1*~ e{{%>Z1YfTk|3C04d;8A^0$7;Zm{b|L#{L(;l>}-4 literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..bfa42f0e7b91d006d22352c9ff2f134e504e3c1d GIT binary patch literal 4842 zcmZ{oXE5C1x5t0WvTCfdv7&7fy$d2l*k#q|U5FAbL??P!61}%ovaIM)mL!5G(V|6J zAtDH(OY|Du^}l!K&fFLG%sJ2JIp@rG=9y>Ci)Wq~U2RobsvA@Q0MM$dq4lq5{hy#9 zzgp+B{O(-=?1<7r0l>Q?>N6X%s~lmgrmqD6fjj_!c?AF`S0&6U06Z51fWOuNAe#jM z%pSN#J-Mp}`ICpL=qp~?u~Jj$6(~K_%)9}Bn(;pY0&;M00H9x2N23h=CpR7kr8A9X zU%oh4-E@i!Ac}P+&%vOPQ3warO9l!SCN)ixGW54Jsh!`>*aU)#&Mg7;#O_6xd5%I6 zneGSZL3Kn-4B^>#T7pVaIHs3^PY-N^v1!W=%gzfioIWosZ!BN?_M)OOux&6HCyyMf z3ToZ@_h75A33KyC!T)-zYC-bp`@^1n;w3~N+vQ0#4V7!f|JPMlWWJ@+Tg~8>1$GzLlHGuxS)w&NAF*&Y;ef`T^w4HP7GK%6UA8( z{&ALM(%!w2U7WFWwq8v4H3|0cOjdt7$JLh(;U8VcTG;R-vmR7?21nA?@@b+XPgJbD z*Y@v&dTqo5Bcp-dIQQ4@?-m{=7>`LZ{g4jvo$CE&(+7(rp#WShT9&9y>V#ikmXFau03*^{&d(AId0Jg9G;tc7K_{ivzBjqHuJx08cx<8U`z2JjtOK3( zvtuduBHha>D&i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0IIW=DT&ES9HajKhb5lz4yQxT-NRBLv_=2sn7WFX&Wp6Y!&}P+%`!A;s zrCwXO3}jrdA7mB`h~N~HT64TM{R$lNj*~ekqSP^n9P~z;P zWPlRPz0h6za8-P>!ARb+A1-r>8VF*xhrGa8W6J$p*wy`ULrD$CmYV7Gt^scLydQWbo7XN-o9X1i7;l+J_8Ncu zc=EX&dg`GRo4==cz2d_Rz28oLS`Suf6OCp~f{0-aQ`t5YZ=!CAMc6-RZw#}A%;s44 znf2`6gcgm=0SezTH9h+JzeR3Lcm;8?*@+?FDfguK^9)z(Z`I!RKrSAI?H~4et6GTkz07Qgq4B6%Q*8Y0yPc4x z8(^YwtZjYIeOvVLey#>@$UzIciJ#x0pJLFg=8UaZv%-&?Yzp7gWNIo_x^(d75=x2c zv|LQ`HrKP(8TqFxTiP5gdT2>aTN0S7XW*pilASS$UkJ2*n+==D)0mgTGxv43t61fr z47GkfMnD-zSH@|mZ26r*d3WEtr+l-xH@L}BM)~ThoMvKqGw=Ifc}BdkL$^wC}=(XSf4YpG;sA9#OSJf)V=rs#Wq$?Wj+nTlu$YXn yn3SQon5>kvtkl(BT2@T#Mvca!|08g9w{vm``2PjZHg=b<1c17-HkzPl9sXa)&-Ts$ literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..324e72cdd7480cb983fa1bcc7ce686e51ef87fe7 GIT binary patch literal 7718 zcmZ{JWl)?=u?hpbj?h-6mfK3P*Eck~k0Tzeg5-hkABxtZea0_k$f-mlF z0S@Qqtva`>x}TYzc}9LrO?P#qj+P1@HZ?W?0C;Muih9o&|G$cb@ocx1*PEUJ%~tM} z901hB;rx4#{@jOHs_MN00ADr$2n+#$yJuJ64gh!x0KlF(07#?(0ENrf7G3D`0EUHz zisCaq%dJ9dz%zhdRNuG*01nCjDhiPCl@b8xIMfv7^t~4jVRrSTGYyZUW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+DOZ00WXFonLlk^;os8*zI>YG#? z9oq$CD~byz>;`--_NMy|iJRALZ#+qV8OXn=AmL^GL&|q1Qw-^*#~;WNNNbk(96Tnw zGjjscNyIyM2CYwiJ2l-}u_7mUGcvM+puPF^F89eIBx27&$|p_NG)fOaafGv|_b9G$;1LzZ-1aIE?*R6kHg}dy%~K(Q5S2O6086 z{lN&8;0>!pq^f*Jlh=J%Rmaoed<=uf@$iKl+bieC83IT!09J&IF)9H)C?d!eW1UQ}BQwxaqQY47DpOk@`zZ zo>#SM@oI^|nrWm~Ol7=r`!Bp9lQNbBCeHcfN&X$kjj0R(@?f$OHHt|fWe6jDrYg3(mdEd$8P2Yzjt9*EM zLE|cp-Tzsdyt(dvLhU8}_IX&I?B=|yoZ!&<`9&H5PtApt=VUIB4l0a1NH v0SQqt3DM`an1p};^>=lX|A*k@Y-MNT^ZzF}9G-1G696?OEyXH%^Pv9$0dR%J literal 0 HcmV?d00001 diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..aee44e138434630332d88b1680f33c4b24c70ab3 GIT binary patch literal 10486 zcmai4byOU|lb&5k+^GN3bv-?^>(QkVinb zlU9`mfQEQnq$S4VGrg6fmMQ=QFarQQ0ss(?uiys&;LQU7M-~7engIZmZaH5x#UC3m z-zvYBd&I}<`b3rPHj1tDgVv1x| zQss$ELI?W?E(!7PKk$lm@;7PwPX3o43{Ccd9@_BUsL4kQzSMa&=g{>4wj9#)9wgYw;=H@gH9KK{s?Be8N1_8W< z1Rh%Lm&PAfyYb*rGB%E#3q+}riOBB~+@@X<`9mgIiAex!QP8vg-XT>=+N&y*jC-f< zGihyr7XAly+G)|_e)qA?rnKZGG(x?=lLM7nrPk&93@5eX#7I_$g8kMX`0h=}l`HH) z=bpOkBCx=z*-fyr{yp7A9F=%o*qm93t_#tB2lAM@O{fX9ju%X#0~)nRUMvrXClh9w ze8|a0|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uT|gImuIH#AeMtxlE^*teXWH`b z$LnM8?Q_|vjv^u(kO-Y$cB1?ICmH@j5PY(q zaPxf3LgA{hO>D7{M2?XnUpAsX?0!P#eL3cHStcyY4^PB2N&Y`}U05UvjiREStj@u{ z|B)ET + + 64dp + diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..3ab3e9c --- /dev/null +++ b/app/src/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #3F51B5 + #303F9F + #FF4081 + diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml new file mode 100644 index 0000000..47c8224 --- /dev/null +++ b/app/src/main/res/values/dimens.xml @@ -0,0 +1,5 @@ + + + 16dp + 16dp + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..07b89bf --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + HttpUrlConnectionUtilDemo + diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..5885930 --- /dev/null +++ b/app/src/main/res/values/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..74b2ab0 --- /dev/null +++ b/build.gradle @@ -0,0 +1,23 @@ +// Top-level build file where you can add configuration options common to all sub-projects/modules. + +buildscript { + repositories { + jcenter() + } + dependencies { + classpath 'com.android.tools.build:gradle:2.2.3' + + // NOTE: Do not place your application dependencies here; they belong + // in the individual module build.gradle files + } +} + +allprojects { + repositories { + jcenter() + } +} + +task clean(type: Delete) { + delete rootProject.buildDir +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..aac7c9b --- /dev/null +++ b/gradle.properties @@ -0,0 +1,17 @@ +# Project-wide Gradle settings. + +# IDE (e.g. Android Studio) users: +# Gradle settings configured through the IDE *will override* +# any settings specified in this file. + +# For more details on how to configure your build environment visit +# http://www.gradle.org/docs/current/userguide/build_environment.html + +# Specifies the JVM arguments used for the daemon process. +# The setting is particularly useful for tweaking memory settings. +org.gradle.jvmargs=-Xmx1536m + +# When configured, Gradle will run in incubating parallel mode. +# This option should only be used with decoupled projects. More details, visit +# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects +# org.gradle.parallel=true diff --git a/gradlew b/gradlew new file mode 100755 index 0000000..9d82f78 --- /dev/null +++ b/gradlew @@ -0,0 +1,160 @@ +#!/usr/bin/env bash + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn ( ) { + echo "$*" +} + +die ( ) { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; +esac + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules +function splitJvmOpts() { + JVM_OPTS=("$@") +} +eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS +JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" + +exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..8a0b282 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,90 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windowz variants + +if not "%OS%" == "Windows_NT" goto win9xME_args +if "%@eval[2+2]" == "4" goto 4NT_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* +goto execute + +:4NT_args +@rem Get arguments from the 4NT Shell from JP Software +set CMD_LINE_ARGS=%$ + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/httpurlconnectionutil/.gitignore b/httpurlconnectionutil/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/httpurlconnectionutil/.gitignore @@ -0,0 +1 @@ +/build diff --git a/httpurlconnectionutil/build.gradle b/httpurlconnectionutil/build.gradle new file mode 100644 index 0000000..58035a8 --- /dev/null +++ b/httpurlconnectionutil/build.gradle @@ -0,0 +1,32 @@ +apply plugin: 'com.android.library' + +android { + compileSdkVersion 25 + buildToolsVersion "25.0.2" + + defaultConfig { + minSdkVersion 14 + targetSdkVersion 25 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + compile fileTree(include: ['*.jar'], dir: 'libs') + androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { + exclude group: 'com.android.support', module: 'support-annotations' + }) + compile 'com.android.support:appcompat-v7:25.2.0' + testCompile 'junit:junit:4.12' + compile 'com.google.code.gson:gson:2.8.0' +} diff --git a/httpurlconnectionutil/proguard-rules.pro b/httpurlconnectionutil/proguard-rules.pro new file mode 100644 index 0000000..16e81b3 --- /dev/null +++ b/httpurlconnectionutil/proguard-rules.pro @@ -0,0 +1,17 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /Users/cretin/Library/Android/sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/httpurlconnectionutil/src/main/AndroidManifest.xml b/httpurlconnectionutil/src/main/AndroidManifest.xml new file mode 100644 index 0000000..b38cae1 --- /dev/null +++ b/httpurlconnectionutil/src/main/AndroidManifest.xml @@ -0,0 +1,13 @@ + + + + + + + + + diff --git a/httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/HttpUtils.java b/httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/HttpUtils.java new file mode 100644 index 0000000..1ee28f0 --- /dev/null +++ b/httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/HttpUtils.java @@ -0,0 +1,505 @@ +package com.cretin.www.httpurlconnectionutil; + +import android.accounts.NetworkErrorException; +import android.content.Context; + +import com.cretin.www.httpurlconnectionutil.callback.HttpCallbackBytesListener; +import com.cretin.www.httpurlconnectionutil.callback.HttpCallbackModelListener; +import com.cretin.www.httpurlconnectionutil.callback.HttpCallbackStringListener; +import com.cretin.www.httpurlconnectionutil.response.ResponseCall; +import com.google.gson.Gson; + +import java.io.BufferedInputStream; +import java.io.BufferedReader; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.PrintWriter; +import java.net.HttpURLConnection; +import java.net.MalformedURLException; +import java.net.URL; +import java.util.Iterator; +import java.util.Map; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; + +/** + * Created by cretin on 2017/3/22. + * HttpURLConnection 网络请求工具类 + * + * 数据的请求都是基于HttpURLConnection的 请求成功与失败的回调都是在主线程 + * 可以直接更新UI + */ +public class HttpUtils { + static ExecutorService threadPool = Executors.newCachedThreadPool(); + static Gson gson = new Gson(); + + /** + * GET方法 返回数据会解析成字符串String + * @param context 上下文 + * @param urlString 请求的url + * @param listener 回调监听 + */ + public static void doGet(final Context context, final String urlString, + final HttpCallbackStringListener listener) { + // 因为网络请求是耗时操作,所以需要另外开启一个线程来执行该任务。 + threadPool.execute(new Runnable() { + @Override + public void run() { + URL url; + HttpURLConnection httpURLConnection = null; + try { + // 根据URL地址创建URL对象 + url = new URL(urlString); + // 获取HttpURLConnection对象 + httpURLConnection = ( HttpURLConnection ) url.openConnection(); + // 设置请求方式,默认为GET + httpURLConnection.setRequestMethod("GET"); + // 设置连接超时 + httpURLConnection.setConnectTimeout(5000); + // 设置读取超时 + httpURLConnection.setReadTimeout(8000); + // 响应码为200表示成功,否则失败。 + if ( httpURLConnection.getResponseCode() == 200 ) { + // 获取网络的输入流 + InputStream is = httpURLConnection.getInputStream(); + BufferedReader bf = new BufferedReader(new InputStreamReader(is, "UTF-8")); + //最好在将字节流转换为字符流的时候 进行转码 + StringBuffer buffer = new StringBuffer(); + String line = ""; + while ( (line = bf.readLine()) != null ) { + buffer.append(line); + } + bf.close(); + is.close(); + new ResponseCall(context, listener).doSuccess(buffer.toString()); + } else { + new ResponseCall(context, listener).doFail( + new NetworkErrorException("response err code:" + + httpURLConnection.getResponseCode())); + } + } catch ( MalformedURLException e ) { + if ( listener != null ) { + // 回调onError()方法 + new ResponseCall(context, listener).doFail(e); + } + } catch ( IOException e ) { + if ( listener != null ) { + // 回调onError()方法 + new ResponseCall(context, listener).doFail(e); + } + } finally { + if ( httpURLConnection != null ) { + // 释放资源 + httpURLConnection.disconnect(); + } + } + } + }); + } + + /** + * GET方法 返回数据会解析成byte[]数组 + * @param context 上下文 + * @param urlString 请求的url + * @param listener 回调监听 + */ + public static void doGet(final Context context, final String urlString, + final HttpCallbackBytesListener listener) { + // 因为网络请求是耗时操作,所以需要另外开启一个线程来执行该任务。 + threadPool.execute(new Runnable() { + @Override + public void run() { + URL url = null; + HttpURLConnection httpURLConnection = null; + try { + // 根据URL地址创建URL对象 + url = new URL(urlString); + // 获取HttpURLConnection对象 + httpURLConnection = ( HttpURLConnection ) url.openConnection(); + // 设置请求方式,默认为GET + httpURLConnection.setRequestMethod("GET"); + // 设置连接超时 + httpURLConnection.setConnectTimeout(5000); + // 设置读取超时 + httpURLConnection.setReadTimeout(8000); + // 响应码为200表示成功,否则失败。 + if ( httpURLConnection.getResponseCode() != 200 ) { + new ResponseCall(context, listener).doFail( + new NetworkErrorException("response err code:" + + httpURLConnection.getResponseCode())); + } else { + // 获取网络的输入流 + InputStream is = httpURLConnection.getInputStream(); + // 读取输入流中的数据 + BufferedInputStream bis = new BufferedInputStream(is); + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + byte[] bytes = new byte[1024]; + int len = -1; + while ( (len = bis.read(bytes)) != -1 ) { + baos.write(bytes, 0, len); + } + bis.close(); + is.close(); + // 响应的数据 + new ResponseCall(context, listener).doSuccess(baos.toByteArray()); + } + } catch ( MalformedURLException e ) { + if ( listener != null ) { + // 回调onError()方法 + new ResponseCall(context, listener).doFail(e); + } + } catch ( IOException e ) { + if ( listener != null ) { + // 回调onError()方法 + new ResponseCall(context, listener).doFail(e); + } + } finally { + if ( httpURLConnection != null ) { + // 释放资源 + httpURLConnection.disconnect(); + } + } + } + }); + } + + /** + * GET方法 返回数据会解析成cls对象 + * @param context 上下文 + * @param urlString 请求路径 + * @param listener 回调监听 + * @param cls 返回的对象 + * @param 监听的泛型 + */ + public static void doGet(final Context context, + final String urlString, + final HttpCallbackModelListener listener, final Class cls) { + // 因为网络请求是耗时操作,所以需要另外开启一个线程来执行该任务。 + threadPool.execute(new Runnable() { + @Override + public void run() { + URL url; + HttpURLConnection httpURLConnection = null; + try { + // 根据URL地址创建URL对象 + url = new URL(urlString); + // 获取HttpURLConnection对象 + httpURLConnection = ( HttpURLConnection ) url.openConnection(); + // 设置请求方式,默认为GET + httpURLConnection.setRequestMethod("GET"); + // 设置连接超时 + httpURLConnection.setConnectTimeout(5000); + // 设置读取超时 + httpURLConnection.setReadTimeout(8000); + // 响应码为200表示成功,否则失败。 + if ( httpURLConnection.getResponseCode() == 200 ) { + // 获取网络的输入流 + InputStream is = httpURLConnection.getInputStream(); + BufferedReader bf = new BufferedReader(new InputStreamReader(is, "UTF-8")); + //最好在将字节流转换为字符流的时候 进行转码 + StringBuffer buffer = new StringBuffer(); + String line = ""; + while ( (line = bf.readLine()) != null ) { + buffer.append(line); + } + bf.close(); + is.close(); + new ResponseCall(context, listener).doSuccess(gson.fromJson(buffer.toString(), cls)); + } else { + if ( listener != null ) { + // 回调onError()方法 + new ResponseCall(context, listener).doFail( + new NetworkErrorException("response err code:" + + httpURLConnection.getResponseCode())); + } + } + } catch ( MalformedURLException e ) { + if ( listener != null ) { + // 回调onError()方法 + new ResponseCall(context, listener).doFail(e); + } + } catch ( IOException e ) { + if ( listener != null ) { + // 回调onError()方法 + new ResponseCall(context, listener).doFail(e); + } + } finally { + if ( httpURLConnection != null ) { + // 释放资源 + httpURLConnection.disconnect(); + } + } + } + }); + } + + + /** + * GET方法 返回数据会解析成字符串 String + * @param context 上下文 + * @param urlString 请求的路径 + * @param listener 回调监听 + * @param params 参数列表 + */ + public static void doPost(final Context context, + final String urlString, final HttpCallbackStringListener listener, + final Map params) { + final StringBuffer out = new StringBuffer(); + // 组织请求参数 + for (String key : params.keySet()) { + if(out.length()!=0){ + out.append("&"); + } + out.append(key).append("=").append(params.get(key)); + } + // 因为网络请求是耗时操作,所以需要另外开启一个线程来执行该任务。 + threadPool.execute(new Runnable() { + @Override + public void run() { + URL url; + HttpURLConnection httpURLConnection = null; + try { + url = new URL(urlString); + httpURLConnection = ( HttpURLConnection ) url.openConnection(); + httpURLConnection.setRequestProperty("accept", "*/*"); + httpURLConnection.setRequestProperty("connection", "Keep-Alive"); + httpURLConnection.setRequestProperty("Content-Length", String + .valueOf(out.length())); + httpURLConnection.setRequestMethod("POST"); + + httpURLConnection.setConnectTimeout(5000); + httpURLConnection.setReadTimeout(8000); + + // 设置运行输入 + httpURLConnection.setDoInput(true); + // 设置运行输出 + httpURLConnection.setDoOutput(true); + + PrintWriter printWriter = new PrintWriter(httpURLConnection.getOutputStream()); + // 发送请求参数 + printWriter.write(out.toString()); + // flush输出流的缓冲 + printWriter.flush(); + printWriter.close(); + + if ( httpURLConnection.getResponseCode() == 200 ) { + // 获取网络的输入流 + InputStream is = httpURLConnection.getInputStream(); + BufferedReader bf = new BufferedReader(new InputStreamReader(is, "UTF-8")); + //最好在将字节流转换为字符流的时候 进行转码 + StringBuffer buffer = new StringBuffer(); + String line = ""; + while ( (line = bf.readLine()) != null ) { + buffer.append(line); + } + bf.close(); + is.close(); + new ResponseCall(context, listener).doSuccess(buffer.toString()); + } else { + new ResponseCall(context, listener).doFail( + new NetworkErrorException("response err code:" + + httpURLConnection.getResponseCode())); + } + } catch ( MalformedURLException e ) { + if ( listener != null ) { + // 回调onError()方法 + new ResponseCall(context, listener).doFail(e); + } + } catch ( IOException e ) { + if ( listener != null ) { + // 回调onError()方法 + new ResponseCall(context, listener).doFail(e); + } + } finally { + if ( httpURLConnection != null ) { + // 最后记得关闭连接 + httpURLConnection.disconnect(); + } + } + } + }); + } + + + /** + * GET方法 返回数据会解析成Byte[]数组 + * @param context 上下文 + * @param urlString 请求的路径 + * @param listener 回调监听 + * @param params 参数列表 + */ + public static void doPost(final Context context, + final String urlString, final HttpCallbackBytesListener listener, + final Map params) { + final StringBuffer out = new StringBuffer(); + // 组织请求参数 + for (String key : params.keySet()) { + if(out.length()!=0){ + out.append("&"); + } + out.append(key).append("=").append(params.get(key)); + } + // 因为网络请求是耗时操作,所以需要另外开启一个线程来执行该任务。 + threadPool.execute(new Runnable() { + @Override + public void run() { + URL url; + HttpURLConnection httpURLConnection = null; + try { + url = new URL(urlString); + httpURLConnection = ( HttpURLConnection ) url.openConnection(); + httpURLConnection.setRequestProperty("accept", "*/*"); + httpURLConnection.setRequestProperty("connection", "Keep-Alive"); + httpURLConnection.setRequestProperty("Content-Length", String + .valueOf(out.length())); + httpURLConnection.setRequestMethod("POST"); + + httpURLConnection.setConnectTimeout(5000); + httpURLConnection.setReadTimeout(8000); + + // 设置运行输入 + httpURLConnection.setDoInput(true); + // 设置运行输出 + httpURLConnection.setDoOutput(true); + + PrintWriter printWriter = new PrintWriter(httpURLConnection.getOutputStream()); + // 发送请求参数 + printWriter.write(out.toString()); + // flush输出流的缓冲 + printWriter.flush(); + printWriter.close(); + + if ( httpURLConnection.getResponseCode() == 200 ) { + // 获取网络的输入流 + InputStream is = httpURLConnection.getInputStream(); + // 读取输入流中的数据 + BufferedInputStream bis = new BufferedInputStream(is); + ByteArrayOutputStream baos = new ByteArrayOutputStream(); + byte[] bytes = new byte[1024]; + int len = -1; + while ( (len = bis.read(bytes)) != -1 ) { + baos.write(bytes, 0, len); + } + bis.close(); + is.close(); + // 响应的数据 + new ResponseCall(context, listener).doSuccess(baos.toByteArray()); + } else { + new ResponseCall(context, listener).doFail( + new NetworkErrorException("response err code:" + + httpURLConnection.getResponseCode())); + } + } catch ( MalformedURLException e ) { + if ( listener != null ) { + // 回调onError()方法 + new ResponseCall(context, listener).doFail(e); + } + } catch ( IOException e ) { + if ( listener != null ) { + // 回调onError()方法 + new ResponseCall(context, listener).doFail(e); + } + } finally { + if ( httpURLConnection != null ) { + // 最后记得关闭连接 + httpURLConnection.disconnect(); + } + } + } + }); + } + + + /** + * /** + * GET方法 返回数据会解析成cls对象 + * @param context 上下文 + * @param urlString 请求的路径 + * @param listener 回调监听 + * @param params 参数列表 + * @param cls 对象 + * @param 监听泛型 + */ + public static void doPost(final Context context, + final String urlString, final HttpCallbackModelListener listener, + final Map params, final Class cls) { + final StringBuffer paramsStr = new StringBuffer(); + // 组织请求参数 + Iterator it = params.entrySet().iterator(); + while ( it.hasNext() ) { + Map.Entry element = ( Map.Entry ) it.next(); + paramsStr.append(element.getKey()); + paramsStr.append("="); + paramsStr.append(element.getValue()); + paramsStr.append("&"); + } + if ( paramsStr.length() > 0 ) { + paramsStr.deleteCharAt(paramsStr.length() - 1); + } + // 因为网络请求是耗时操作,所以需要另外开启一个线程来执行该任务。 + threadPool.execute(new Runnable() { + @Override + public void run() { + URL url; + HttpURLConnection httpURLConnection = null; + try { + url = new URL(urlString); + httpURLConnection = ( HttpURLConnection ) url.openConnection(); + + httpURLConnection.setRequestMethod("POST"); + + httpURLConnection.setConnectTimeout(5000); + httpURLConnection.setReadTimeout(8000); + + // 设置运行输入 + httpURLConnection.setDoInput(true); + // 设置运行输出 + httpURLConnection.setDoOutput(true); + + PrintWriter printWriter = new PrintWriter(httpURLConnection.getOutputStream()); + // 发送请求参数 + printWriter.write(paramsStr.toString()); + // flush输出流的缓冲 + printWriter.flush(); + printWriter.close(); + + if ( httpURLConnection.getResponseCode() == 200 ) { + // 获取网络的输入流 + InputStream is = httpURLConnection.getInputStream(); + BufferedReader bf = new BufferedReader(new InputStreamReader(is, "UTF-8")); + //最好在将字节流转换为字符流的时候 进行转码 + StringBuffer buffer = new StringBuffer(); + String line = ""; + while ( (line = bf.readLine()) != null ) { + buffer.append(line); + } + bf.close(); + is.close(); + new ResponseCall(context, listener).doSuccess(gson.fromJson(buffer.toString(), cls)); + } else { + new ResponseCall(context, listener).doFail( + new NetworkErrorException("response err code:" + + httpURLConnection.getResponseCode())); + } + } catch ( MalformedURLException e ) { + if ( listener != null ) { + // 回调onError()方法 + new ResponseCall(context, listener).doFail(e); + } + } catch ( IOException e ) { + if ( listener != null ) { + // 回调onError()方法 + new ResponseCall(context, listener).doFail(e); + } + } finally { + if ( httpURLConnection != null ) { + // 最后记得关闭连接 + httpURLConnection.disconnect(); + } + } + } + }); + } +} diff --git a/httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/callback/HttpCallbackBytesListener.java b/httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/callback/HttpCallbackBytesListener.java new file mode 100644 index 0000000..95292c4 --- /dev/null +++ b/httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/callback/HttpCallbackBytesListener.java @@ -0,0 +1,12 @@ +package com.cretin.www.httpurlconnectionutil.callback; + +/** + * HttpURLConnection网络请求返回监听器 + */ +public interface HttpCallbackBytesListener { + // 网络请求成功 + void onFinish(byte[] response); + + // 网络请求失败 + void onError(Exception e); +} diff --git a/httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/callback/HttpCallbackModelListener.java b/httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/callback/HttpCallbackModelListener.java new file mode 100644 index 0000000..83f31d6 --- /dev/null +++ b/httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/callback/HttpCallbackModelListener.java @@ -0,0 +1,13 @@ +package com.cretin.www.httpurlconnectionutil.callback; + + +/** + * HttpURLConnection网络请求返回监听器 + */ +public interface HttpCallbackModelListener { + // 网络请求成功 + void onFinish(T response); + + // 网络请求失败 + void onError(Exception e); +} diff --git a/httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/callback/HttpCallbackStringListener.java b/httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/callback/HttpCallbackStringListener.java new file mode 100644 index 0000000..7fdc709 --- /dev/null +++ b/httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/callback/HttpCallbackStringListener.java @@ -0,0 +1,12 @@ +package com.cretin.www.httpurlconnectionutil.callback; + +/** + * HttpURLConnection网络请求返回监听器 + */ +public interface HttpCallbackStringListener { + // 网络请求成功 + void onFinish(String response); + + // 网络请求失败 + void onError(Exception e); +} diff --git a/httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/response/ResponseCall.java b/httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/response/ResponseCall.java new file mode 100644 index 0000000..7786be8 --- /dev/null +++ b/httpurlconnectionutil/src/main/java/com/cretin/www/httpurlconnectionutil/response/ResponseCall.java @@ -0,0 +1,84 @@ +package com.cretin.www.httpurlconnectionutil.response; + +import android.content.Context; +import android.os.Handler; +import android.os.Looper; +import android.os.Message; + +import com.cretin.www.httpurlconnectionutil.callback.HttpCallbackBytesListener; +import com.cretin.www.httpurlconnectionutil.callback.HttpCallbackModelListener; +import com.cretin.www.httpurlconnectionutil.callback.HttpCallbackStringListener; + +/** + * Created by cretin on 2017/3/20. + */ + +public class ResponseCall { + //用于在子线程和主线程的数据交换 + Handler mHandler; + + public ResponseCall(Context context, final HttpCallbackModelListener listener) { + Looper looper = context.getMainLooper(); + mHandler = new Handler(looper) { + @Override + public void handleMessage(Message msg) { + super.handleMessage(msg); + if ( msg.what == 0 ) { + //成功 + listener.onFinish(msg.obj); + } else if ( msg.what == 1 ) { + //失败 + listener.onError(( Exception ) msg.obj); + } + } + }; + } + + public ResponseCall(Context context, final HttpCallbackBytesListener listener) { + Looper looper = context.getMainLooper(); + mHandler = new Handler(looper) { + @Override + public void handleMessage(Message msg) { + super.handleMessage(msg); + if ( msg.what == 0 ) { + //成功 + listener.onFinish(( byte[] ) msg.obj); + } else if ( msg.what == 1 ) { + //失败 + listener.onError(( Exception ) msg.obj); + } + } + }; + } + + public ResponseCall(Context context, final HttpCallbackStringListener listener) { + Looper looper = context.getMainLooper(); + mHandler = new Handler(looper) { + @Override + public void handleMessage(Message msg) { + super.handleMessage(msg); + if ( msg.what == 0 ) { + //成功 + listener.onFinish(msg.obj.toString()); + } else if ( msg.what == 1 ) { + //失败 + listener.onError(( Exception ) msg.obj); + } + } + }; + } + + public void doSuccess(T response) { + Message message = Message.obtain(); + message.obj = response; + message.what = 0; + mHandler.sendMessage(message); + } + + public void doFail(Exception e) { + Message message = Message.obtain(); + message.obj = e; + message.what = 1; + mHandler.sendMessage(message); + } +} diff --git a/httpurlconnectionutil/src/main/res/values/strings.xml b/httpurlconnectionutil/src/main/res/values/strings.xml new file mode 100644 index 0000000..c3a0612 --- /dev/null +++ b/httpurlconnectionutil/src/main/res/values/strings.xml @@ -0,0 +1,3 @@ + + HttpUrlConnectionUtil + diff --git a/httpurlconnectionutil/src/test/java/com/cretin/www/httpurlconnectionutil/ExampleUnitTest.java b/httpurlconnectionutil/src/test/java/com/cretin/www/httpurlconnectionutil/ExampleUnitTest.java new file mode 100644 index 0000000..3e73541 --- /dev/null +++ b/httpurlconnectionutil/src/test/java/com/cretin/www/httpurlconnectionutil/ExampleUnitTest.java @@ -0,0 +1,17 @@ +package com.cretin.www.httpurlconnectionutil; + +import org.junit.Test; + +import static org.junit.Assert.*; + +/** + * Example local unit test, which will execute on the development machine (host). + * + * @see Testing documentation + */ +public class ExampleUnitTest { + @Test + public void addition_isCorrect() throws Exception { + assertEquals(4, 2 + 2); + } +} \ No newline at end of file diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..66b5f75 --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +include ':app', ':httpurlconnectionutil'