Posts

Showing posts from 2015

android studio add outside module

in main project settings.gradle: include ':fulibao' project(':fulibao').projectDir = new File(rootProject.projectDir, '../../fanlibao/src/fulibaoandroid/fulibao') // it reference outside module fulibao in ../../fanlibao/src/fulibaoandroid/fulibao path

android studio exists with eclipse adt project in same folder

what:  our old android project is desiged by eclipse with android developer tools(adt),now,we want to used android studio ide to open it.but other co-workers want to used eclipse in same project. how: create one build.gradle in eclipse android project: // 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:1.3.0' // 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 } ///////////////////////////////////////////////////////////////////////////////////////// apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "23.0.1" defaultConfi...

android studio build.gradle default task list simple draft

bellow is andriod studio default task list in right Gradle projects panel:   assemble assembleAndroidTest assembleDebug assembleRelease build buildDependents buildNeeded compileDebugAndroidTestSources compileDebugSources compileDebugUnitTestSources compileReleaseSources compileReleaseUnitTestSources mockableAndroidJar bellow is android studio task,if your are so intelligent,your may known how get the easily answer from android studio ide. By the way,I will simply tell how write build task depends on parameters, if android studio output like:":app:generateDebugSources",your can reference it in app self project by:     task yourtaskname(dependsOn:['generateDebugSources']) ,if in other proejct,your can reference it by:     task yourtaskname(dependsOn:[':app:generateDebugSources']) bellow is default build output log: Executing tasks: [clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:compileDebugSourc...

android studio build.gradle quick couse 1 by pkrss

== android studio build.gradle == 1.define custom variable in module build.gradle: /////////////////////////////////////////////////////////////////////////////// // def a = true def b = "string" // /////////////////////////////////////////////////////////////////////////////// 2.use if condition variable in module build.gradle: /////////////////////////////////////////////////////////////////////////////// // if(a)     apply plugin: 'com.android.library' else     apply plugin: 'com.android.application' // /////////////////////////////////////////////////////////////////////////////// 3.define custom global whole module variable in one project build.gradle: /////////////////////////////////////////////////////////////////////////////// // 1. define it in project root build.gradle: project.ext.set("buildRelease", true) 2.used it in sub module build.gradle: if(buildRelease)     apply plugin: 'com.android.librar...

Today, my Google Play Publisher account has been terminated,and i reply

Part I English In the morning,i received one email from google. Here is content: // start ---------------------------------------------------------------------- This is a notification that your Google Play Publisher account has been terminated. REASON FOR TERMINATION: Multiple violations of the Content Policy and Developer Distribution Agreement as outlined in previous emails sent to the registered email address of your Publisher account. Please note that Google Play Publisher terminations are associated with developers, and may span multiple account registrations and related Google services. If you feel we have made an error, you can visit the Google Play Help Center article for additional information regarding this termination. Please do not attempt to register a new developer account. We will not be restoring your account at this time. The Google Play Team // end ---------------------------------------------------------------------- And i repl...

中国电信HUA WEI华为Y300C定制机 完美破解G卡上网操作记录

2015-02-27 我操作了,没有用。 华为P6电信G网开启方法 注意事项:华为P6开启G网操作必须获得Root权限。 然后: 第一步:安装RE管理器和SQLite编辑器;(RE浏览器会在Root后自动安装,SQLite编辑器需自行下载 第二步:通过RE管理器找到/cust/telecom/cn/prop/local.prop文件,长按之后选择“以文本编辑器打开”; 第三步:把ro.config.hide_gsm_apn=true改为ro.config.hide_gsm_apn=false(打开GSM的APN设置),然后再增加一行persist.service.gsmdataservice=true(负责开启GSM上网) 第四步:保存退出,此刻会生成一个.bak文件,这个可以删掉。同时把修改后的local.prop文件拷贝一份到\data\cust\prop目录下; 第五步:重启P6,现在手机可以自由切换C网和G网了 补充说明: 1、\cust\telecom\cn\目录下的文件和\data\cust\目录下的文件是一样的 2、\cust\telecom\cn\xml\apns-conf.xml文件下是网络设置文件,包括电信、移动、联通和华为设置参数,可自行进行修改 3、\cust\telecom\cn\delapp目录下是电信定制软件,可自行进行删除,恢复出厂值后被删软件不会再出现。 我修改: (这步我也做了) ro.card2.custom_operator=460-455 persist.service.gsmdataservice=true 3、通过RE管理器找到/cust/telecom/cn/prop/local.prop文件,长按之后选择“以文本编辑器打开”,把ro.config.hide_gsm_apn=true改为ro.config.hide_gsm_apn=false(打开GSM的APN设置),然后再增加一行persist.service.gsmdataservice=true(负责开启GSM上网),保存退出,会生成一个.bak文件,这个可以删掉。同时把修改后的local.prop文件拷贝一份到\data\cust\prop目录...