1.測(cè)試程序啟動(dòng) 無(wú)lancher
adb shell am start -a android.intent.action.MAIN? -n com.package/com.package.PayActivity
2.普通正則
([A-Za-z]+){4,14}
3.打開(kāi)安裝器:
Intent var2 = new Intent();
var2.addFlags(268435456);
var2.setAction("android.intent.action.VIEW");
String var3 = "application/vnd.android.package-archive";//getMIMEType(var0);
var2.setDataAndType(Uri.fromFile(var0), var3);
try {
var1.startActivity(var2);
} catch (Exception var5) {
var5.printStackTrace();
//Toast.makeText(var1, "沒(méi)有找到打開(kāi)此類(lèi)文件的程序", Toast.LENGTH_SHORT).show();
}
4.自動(dòng)打包,添加來(lái)源在mainFest同一級(jí)目錄中添加文件,不改文件名
=>渠道包改為加文件即可
https://www.zhihu.com/question/29477981?sort=created
http://blog.csdn.net/yancey_blog/article/details/52743864
http://www.open-open.com/lib/view/open1449881146176.html
5.寫(xiě)開(kāi)放接口
生成唯一實(shí)例-->實(shí)現(xiàn)所有開(kāi)放方法-->記錄每個(gè)方法作用-->文檔參數(shù)仔細(xì)說(shuō)明