1.直接通过URL下载安装APP:

示例:


零、准备工作
0.1第三方库
implementation ‘io.reactivex.rxjava2:rxjava:2.2.2’
implementation ‘io.reactivex.rxjava2:rxandroid:2.1.0’
implementation ‘io.reactivex.rxjava2:rxkotlin:2.3.0’
implementation ‘com.squareup.okhttp3:okhttp:3.11.0’
implementation ‘com.squareup.okio:okio:2.0.0’

0.2权限
<uses-permission android:name="android.permission.INTERNET" />
<!-- 写入权限 -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>

0.3格式
“Code”: 0,
“Msg”: “”,
“UpdateStatus”: 1,
“VersionCode”: 3,
“VersionName”: “1.0.2”,
“ModifyContent”: “1、优化api接口。\r\n2、添加使用demo演示。\r\n3、新增自定义更新服务API接口。\r\n4、优化更新提示界面。”,
“DownloadUrl”: “https://raw.githubusercontent.com/xuexiangjys/XUpdate/master/apk/xupdate_demo_1.0.2.apk”,
“ApkSize”: 2048
“ApkMd5”: “…” //md5值没有的话,就无法保证apk是否完整,每次都会重新下载。

一、检测是否是最新版本,不是则更新
private Disposable downDisposable;
private ProgressBar progressBar;
private TextView textView4;
private Button upgrade;
private long downloadLength=0;
private long contentLength=0;
private String[] PERMISSIONS_STORAGE = {
        Manifest.permission.READ_EXTERNAL_STORAGE,
        Manifest.permission.WRITE_EXTERNAL_STORAGE};

//判断版本是否最新,如果不是最新版本则更新

private void test(){
        Observable.create(new ObservableOnSubscribe<String>() {
            @Override
            public void subscribe(ObservableEmitter<String> emitter) throws Exception {
                OkHttpClient client = new OkHttpClient();
                Request request = new Request.Builder()
                        .url("url")
                        .build();

client.newCall(request).enqueue(new okhttp3.Callback() {
                    @Override
                    public void onFailure(Call call, IOException e) {
                        emitter.onError(e);
                    }

@Override
                    public void onResponse(Call call, Response response) throws IOException {
                        String result="";
                        if (response.body()!=null) {
                            result=response.body().string();
                        }else {
                            //返回数据错误
                            return;
                        }
                        emitter.onNext(result);
                    }
                });
//                emitter.onNext("123");
            }
        }).subscribeOn(Schedulers.io())// 将被观察者切换到子线程
                .observeOn(AndroidSchedulers.mainThread())// 将观察者切换到主线程
                .subscribe(new Observer<String>() {
                    private Disposable mDisposable;
                    @Override
                    public void onSubscribe(Disposable d) {
                        mDisposable = d;
                    }
                    @Override
                    public void onNext(String result) {
                        if (result.isEmpty()){
                            return;
                        }
                        //2.判断版本是否最新,如果不是最新版本则更新
                        String downloadUrl="https://raw.githubusercontent.com/xuexiangjys/XUpdate/master/apk/xupdate_demo_1.0.2.apk";
                        String title="是否升级到4.1.1版本?";
                        String size="新版本大小:未知";
                        String msg="1、优化api接口。\r\n2、添加使用demo演示。\r\n3、新增自定义更新服务API接口。\r\n4、优化更新提示界面。";
                        int versionCode=20000;
                        try {
                            int version = getPackageManager().
                                    getPackageInfo(getPackageName(), 0).versionCode;
                            if (versionCode>version){
                                LayoutInflater inflater = LayoutInflater.from(TestActivity.this);
                                View view = inflater.inflate(R.layout.layout_dialog, null);
                                AlertDialog.Builder mDialog = new AlertDialog.Builder(TestActivity.this,R.style.Translucent_NoTitle);
                                mDialog.setView(view);
                                mDialog.setCancelable(true);
                                mDialog.setOnKeyListener(new DialogInterface.OnKeyListener() {
                                    @Override
                                    public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
                                        return keyCode == KeyEvent.KEYCODE_BACK;
                                    }
                                });
                                upgrade= view.findViewById(R.id.button);
                                TextView textView1= view.findViewById(R.id.textView1);
                                TextView textView2= view.findViewById(R.id.textView2);
                                TextView textView3= view.findViewById(R.id.textView3);
                                textView4= view.findViewById(R.id.textView4);
                                ImageView iv_close= view.findViewById(R.id.iv_close);
                                progressBar= view.findViewById(R.id.progressBar);
                                progressBar.setMax(100);
                                textView1.setText(title);
                                textView2.setText(size);
                                textView3.setText(msg);
                                upgrade.setOnClickListener(new View.OnClickListener() {
                                    @Override
                                    public void onClick(View v) {
                                        //动态询问是否授权
                                        int permission = ActivityCompat.checkSelfPermission(getApplication(),
                                            Manifest.permission.WRITE_EXTERNAL_STORAGE);
                                        if (permission != PackageManager.PERMISSION_GRANTED) {
                                            ActivityCompat.requestPermissions(TestActivity.this, PERMISSIONS_STORAGE,
                                                1);
                                        }else {
                                            upgrade.setVisibility(View.INVISIBLE);
                                            down(downloadUrl);
                                        }
                                    }
                                });
                                iv_close.setOnClickListener(new View.OnClickListener() {
                                    @Override
                                    public void onClick(View v) {
                                        finish();
                                    }
                                });
                                mDialog.show();
                            }else {

}
                        } catch (PackageManager.NameNotFoundException e) {
                            e.printStackTrace();
                        }
                        mDisposable.dispose();
                    }
                    @Override
                    public void onError(Throwable e) {
                        test();
                    }
                    @Override
                    public void onComplete() {

}
                });
    }

//下载apk并更新进度条

private void down(String downloadUrl){
        Observable.create(new ObservableOnSubscribe<Integer>() {
            @Override
            public void subscribe(ObservableEmitter<Integer> emitter) throws Exception {
                downApk(downloadUrl,emitter);
            }
        }).subscribeOn(Schedulers.io())// 将被观察者切换到子线程
                .observeOn(AndroidSchedulers.mainThread())// 将观察者切换到主线程
                .subscribe(new Observer<Integer>() {

@Override
                    public void onSubscribe(Disposable d) {
                        downDisposable = d;
                    }
                    @Override
                    public void onNext(Integer result) {
                        //设置ProgressDialog 进度条进度
                        progressBar.setProgress(result);
                        textView4.setText(result+"%");
                    }
                    @Override
                    public void onError(Throwable e) {
                        Toast.makeText(getApplication(),"网络异常!请重新下载!",Toast.LENGTH_SHORT).show();
                        upgrade.setEnabled(true);
                    }
                    @Override
                    public void onComplete() {
                        Toast.makeText(getApplication(),"服务器异常!请重新下载!",Toast.LENGTH_SHORT).show();
                        upgrade.setEnabled(true);
                    }
                });
    }

二、下载apk
//下载apk

private void downApk(String downloadUrl,ObservableEmitter<Integer> emitter){
    OkHttpClient client = new OkHttpClient();
    Request request = new Request.Builder()
            .url(downloadUrl)
            .build();
    client.newCall(request).enqueue(new Callback() {
        @Override
        public void onFailure(Call call, IOException e) {
            //下载失败
            breakpoint(downloadUrl,emitter);
        }

@Override
        public void onResponse(Call call, Response response) throws IOException {
            if (response.body() == null) {
                //下载失败
                breakpoint(downloadUrl,emitter);
                return;
            }
            InputStream is = null;
            FileOutputStream fos = null;
            byte[] buff = new byte[2048];
            int len;
            try {
                is = response.body().byteStream();
                File file = createFile();
                fos = new FileOutputStream(file);
                long total = response.body().contentLength();
                contentLength=total;
                long sum = 0;
                while ((len = is.read(buff)) != -1) {
                    fos.write(buff,0,len);
                    sum+=len;
                    int progress = (int) (sum * 1.0f / total * 100);
                    //下载中,更新下载进度
                    emitter.onNext(progress);
                    downloadLength=sum;
                }
                fos.flush();
                //4.下载完成,安装apk
                installApk(TestActivity.this,file);
            } catch (Exception e) {
                e.printStackTrace();
                breakpoint(downloadUrl,emitter);
            } finally {
                try {
                    if (is != null)
                        is.close();
                    if (fos != null)
                        fos.close();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }
    });

}

//断点续传

private void breakpoint(String downloadUrl,ObservableEmitter<Integer> emitter){
    OkHttpClient client = new OkHttpClient();
    Request request = new Request.Builder()
            .url(downloadUrl)
            .addHeader("RANGE", "bytes=" + downloadLength + "-" + contentLength)
            .build();
    client.newCall(request).enqueue(new Callback() {
        @Override
        public void onFailure(Call call, IOException e) {
            //下载失败
            breakpoint(downloadUrl,emitter);
        }

@Override
        public void onResponse(Call call, Response response) throws IOException {
            if (response.body() == null) {
                //下载失败
                breakpoint(downloadUrl,emitter);
                return;
            }
            InputStream is = null;
            RandomAccessFile randomFile = null;
            byte[] buff = new byte[2048];
            int len;
            try {
                is = response.body().byteStream();
                String root = Environment.getExternalStorageDirectory().getPath();
                File file = new File(root,"updateDemo.apk");
                randomFile = new RandomAccessFile(file, "rwd");
                randomFile.seek(downloadLength);
                long total = contentLength;
                long sum = downloadLength;
                while ((len = is.read(buff)) != -1) {
                    randomFile.write(buff,0,len);
                    sum+=len;
                    int progress = (int) (sum * 1.0f / total * 100);
                    //下载中,更新下载进度
                    emitter.onNext(progress);
                    downloadLength=sum;
                }
                //4.下载完成,安装apk
                installApk(TestActivity.this,file);
            } catch (Exception e) {
                e.printStackTrace();
                breakpoint(downloadUrl,emitter);
            } finally {
                try {
                    if (is != null)
                        is.close();
                    if (randomFile != null)
                        randomFile.close();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }
    });
}

/**

路径为根目录
创建文件名称为 updateDemo.apk
*/
private File createFile() {
    String root = Environment.getExternalStorageDirectory().getPath();
    File file = new File(root,"updateDemo.apk");
    if (file.exists())
        file.delete();
    try {
        file.createNewFile();
        return file;
    } catch (IOException e) {
        e.printStackTrace();
    }
    return null ;
}

三、安装apk
3.1项目的src/res新建个xml文件夹再自定义一个file_paths文件
<?xml version="1.0" encoding="utf-8"?>
<paths  xmlns:android="http://schemas.android.com/apk/res/android">
    <files-path name="name1" path="test1" />
</paths>

3.2在清单文件中配置
<provider
    android:name="android.support.v4.content.FileProvider"
    android:authorities="com.mydomain.fileprovider"
    android:exported="false"
    android:grantUriPermissions="true">
    <meta-data
        android:name="android.support.FILE_PROVIDER_PATHS"
        android:resource="@xml/file_paths" />
</provider>

3.3安装apk
//安装apk,包含7.0

public void installApk(Context context, File file) {
    if (context == null) {
        return;
    }
    String authority = getApplicationContext().getPackageName() + ".fileProvider";
    Uri apkUri = FileProvider.getUriForFile(context, authority, file);
    Intent intent = new Intent(Intent.ACTION_VIEW);
    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
    //判读版本是否在7.0以上
    if (Build.VERSION.SDK_INT >= 24) {
        intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
        intent.setDataAndType(apkUri, "application/vnd.android.package-archive");
    } else {
        intent.setDataAndType(Uri.fromFile(file), "application/vnd.android.package-archive");
    }

context.startActivity(intent);
    //弹出安装窗口把原程序关闭。
    //避免安装完毕点击打开时没反应
    Process.killProcess(android.os.Process.myPid());
}

四、取消订阅
@Override
protected void onDestroy() {
    super.onDestroy();
    downDisposable.dispose();//取消订阅
}

五、自定义Dialog
5.1UI
见一、检测是否是最新版本,不是则更新

5.2布局
<?xml version="1.0" encoding="utf-8"?>
1
<android.support.constraint.ConstraintLayout xmlns:android=“http://schemas.android.com/apk/res/android”
xmlns:app=“http://schemas.android.com/apk/res-auto”
xmlns:tools=“http://schemas.android.com/tools”
android:layout_width=“match_parent”
android:layout_height=“match_parent”>

<ImageView
    android:id="@+id/imageView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/lib_update_app_top_bg"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toTopOf="parent" />

<View
    android:id="@+id/view"
    android:layout_width="0dp"
    android:layout_height="0dp"
    android:background="@drawable/lib_update_app_info_bg"
    app:layout_constraintBottom_toTopOf="@+id/line"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/imageView1" />

<TextView
    android:id="@+id/textView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginStart="16dp"
    android:layout_marginTop="16dp"
    android:text="是否升级到1.0版本?"
    android:textColor="@android:color/black"
    android:textSize="15sp"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/imageView1" />

<TextView
    android:id="@+id/textView2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginStart="16dp"
    android:layout_marginTop="16dp"
    android:text="新版本大小:"
    android:textColor="#666"
    android:textSize="14sp"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/textView1" />

<ScrollView
    android:id="@+id/scrollView2"
    android:layout_width="0dp"
    android:layout_height="60dp"
    android:layout_marginStart="16dp"
    android:layout_marginTop="16dp"
    android:layout_marginEnd="16dp"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/textView2">

<LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

<TextView
            android:id="@+id/textView3"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="1,xxxxxxxx\n2,ooooooooo"
            android:textColor="#666"
            android:textSize="14sp"
            app:layout_constraintStart_toStartOf="parent"
            app:layout_constraintTop_toBottomOf="@+id/textView2" />
    </LinearLayout>
</ScrollView>

<Button
    android:id="@+id/button"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="8dp"
    android:layout_marginTop="16dp"
    android:layout_marginEnd="16dp"
    android:background="@drawable/textview_round_red"
    android:gravity="center"
    android:minHeight="40dp"
    android:text="升级"
    android:textColor="@android:color/white"
    android:textSize="15sp"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/scrollView2" />

<ProgressBar
    android:id="@+id/progressBar"
    style="?android:attr/progressBarStyleHorizontal"
    android:layout_width="0dp"
    android:layout_height="wrap_content"
    android:layout_marginStart="16dp"
    android:layout_marginEnd="16dp"
    app:layout_constraintBottom_toBottomOf="@+id/button"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent" />

<TextView
    android:id="@+id/textView4"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="0%"
    android:textColor="#E94339"
    app:layout_constraintBottom_toTopOf="@+id/progressBar"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent" />

<android.support.constraint.Guideline
    android:id="@+id/guideline1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="vertical"
    app:layout_constraintGuide_percent="0.5" />

<View
    android:id="@+id/line"
    android:layout_width="1dp"
    android:layout_height="50dp"
    android:layout_marginStart="8dp"
    android:layout_marginTop="16dp"
    android:layout_marginEnd="8dp"
    android:background="#d8d8d8"
    android:visibility="visible"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintHorizontal_bias="0.501"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/button" />

<ImageView
    android:id="@+id/iv_close"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_marginStart="8dp"
    android:layout_marginEnd="8dp"
    android:src="@mipmap/lib_update_app_close"
    app:layout_constraintEnd_toEndOf="parent"
    app:layout_constraintStart_toStartOf="parent"
    app:layout_constraintTop_toBottomOf="@+id/line" />

<android.support.constraint.Guideline
    android:id="@+id/guideline2"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    app:layout_constraintGuide_percent="0.2" />

</android.support.constraint.ConstraintLayout>

5.3其他文件
5.3.1textview_round_red.xml

<?xml version="1.0" encoding="utf-8"?>
<shape  xmlns:android="http://schemas.android.com/apk/res/android">

<!-- view背景色 -->
    <solid android:color="#E94339" />
    <!-- 边框颜色 宽度 -->
    <stroke
        android:width="1dip"
        android:color="#E94339" />
    <!-- 边框圆角 -->
    <corners
        android:bottomRightRadius="5dp"
        android:topRightRadius="5dp"
        android:bottomLeftRadius="5dp"
        android:topLeftRadius="5dp"/>
</shape >

5.3.2lib_update_app_info_bg.xml

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:shape="rectangle">
    <corners
        android:bottomLeftRadius="5dp"
        android:bottomRightRadius="5dp"/>
    <solid android:color="@android:color/white"/>
</shape>

5.3.3styles文件

<style name="Translucent_NoTitle" parent="android:style/Theme.Dialog">

<item name="android:background">#00000000</item> <!-- 设置自定义布局的背景透明 -->
    <item name="android:windowBackground">@android:color/transparent</item>  <!-- 设置window背景透明,也就是去边框 -->
</style>

5.4图片

版权声明:本文为CSDN博主「白云飘絮」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/a896159476/article/details/84107130

2.直接通过应用市场下载安装APP:

转自:https://blog.csdn.net/bzlj2912009596/article/details/80589841

今天,简单讲讲如何使用应用市场更新app的版本。

最近,需要做一个功能,使app能自动进行版本检测和更新。之前,app都是使用应用市场提示用户更新的,但是这次希望app在打开时可以自动检测新的版本,然后进行版本更新。在网上查找了很多版本更新的资料,写出了设计文档。但是我的设计是让app在内部直接下载服务器的最新版本进行更新,而领导说必须使用应用市场进行更新,所以在网上查找资料,最终解决了问题。这里记录一下。

app跳转到应用市场上去更新,对开发者来说可以省很多的事。
直接看代码:

Intent intent=new Intent("android.intent.action.MAIN");
intent.addCategory("android.intent.category.APP_MARKET");
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(intent);
运行效果如下:
选择对应的可以启动应用市场。

可以在应用市场搜索相应的app,但是似乎不能满足我们的需求,能否直接跳转到app详情页面?如果该应用市场没有我们所需的app怎么办?
继续:

先扫描手机内所有的应用市场
Intent intent = new Intent();
intent.setAction("android.intent.action.MAIN");
intent.addCategory("android.intent.category.APP_MARKET");
PackageManager pm = this.getPackageManager();
List<ResolveInfo> infos = pm.queryIntentActivities(intent, 0);
int size = infos.size();
for (int i = 0; i < size; i++) {
    ActivityInfo activityInfo = infos.get(i).activityInfo;
    String packageName = activityInfo.packageName;
    //获取应用市场的包名
}

主流应用商店对应的包名如下:

包名    商店
com.android.vending    Google Play
com.tencent.android.qqdownloader    应用宝
com.qihoo.appstore    360手机助手
com.baidu.appsearch    百度手机助
com.xiaomi.market    小米应用商店
com.wandoujia.phoenix2    豌豆荚
com.huawei.appmarket    华为应用市场
com.taobao.appcenter    淘宝手机助手
com.hiapk.marketpho    安卓市场
cn.goapk.market    安智市场

点击相应的市场跳转到app的详细页面

Intent intent = new Intent(Intent.ACTION_VIEW);
Uri uri = Uri.parse("market://details?id=" + "com.cailaiwang.app");//app包名
intent.setData(uri);
intent.setPackage("com.tencent.android.qqdownloader");//应用市场包名
startActivity(inent);
也可以封装成一个函数:

/**
 * 启动到应用商店app详情界面
 *
 * @param appPkg    目标App的包名
 * @param marketPkg 应用商店包名 ,如果为""则由系统弹出应用商店列表供用户选择,否则调转到目标市场的应用详情界面,某些应用商店可能会失败
 */
public void launchAppDetail(String appPkg, String marketPkg) {
    try {
        if (TextUtils.isEmpty(appPkg)) return;
 
        Uri uri = Uri.parse("market://details?id=" + appPkg);
        Intent intent = new Intent(Intent.ACTION_VIEW, uri);
        if (!TextUtils.isEmpty(marketPkg)) {
            intent.setPackage(marketPkg);
        }
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        startActivity(intent);
    } catch (Exception e) {
        e.printStackTrace();
    }
}

简单讲讲,其实很简单,就是调用intent.addCategory("android.intent.category.APP_MARKET")可以直接跳转到全部的应用市场,也可以使用launchAppDetail(String appPkg, String marketPkg)直接跳转到具体的app下载界面,只需要传入应用市场的包名和app的appId。这里需要注意一个问题,当跳转到具体的app界面时,需要判断手机是否安装了需要跳转的应用市场,如果没有安装,直接跳转回出现问题。所以跳转前需要判断手机是否安装了我们需要的应用市场,如果没有安装,需要提示用户安装,然后才能进行跳转。代码也很简单。

// 判断市场是否存在的方法
public static boolean isAvilible(Context context, String packageName) {
final PackageManager packageManager = context.getPackageManager();// 获取packagemanager
List<PackageInfo> pinfo = packageManager.getInstalledPackages(0);// 获取所有已安装程序的包信息
List<String> pName = new ArrayList<String>();// 用于存储所有已安装程序的包名
// 从pinfo中将包名字逐一取出,压入pName list中
if (pinfo != null) {
    for (int i = 0; i < pinfo.size(); i++) {
        String pn = pinfo.get(i).packageName;
        pName.add(pn);
    }
}
return pName.contains(packageName);// 判断pName中是否有目标程序的包名,有TRUE,没有FALSE
}
简单讲讲,其实就是先获取app所有安装的包名,然后判断是否包含我们需要的应用市场的包名。

android 使用应用市场进行版本更新就讲完了。

就这么简单。
————————————————
转自:

https://blog.csdn.net/bzlj2912009596/article/details/80589841

https://blog.csdn.net/a896159476/article/details/84107130

安卓 APP更新的两种途径相关推荐

  1. 安卓App自启动,两种不同的方式!!!支持到安卓4.4

    初衷 自己给车机买了CarPlay盒子,但是车机启动后需要点击App才能使用,十分拉闸!!!所以做了这个自启动器. README! 因为 它是apk文件 它是基于安卓4.4开发的 所以 它能安装到所有 ...

  2. android 热更新 方案,热更新-热更新app开发的两种系统方案!

    针对app开发工作人员来讲,除开要会编码,热更新也是一定要学好和把握的方法,从技术性视角而言,热更新对Android和iOS各自有不一样的系统软件方案,为了更好地让大伙儿掌握这二种系统方案的差别,今日 ...

  3. App打包的两种方式

    在HBuilder上对APP提供了两种打包方式,云打包和本地打包,下面主要对这两种打包方式做个介绍 两者的区别:云打包相对简单,但是每天最多只能打包五次,而且在高峰期打包时间可能会很长,本地打包相对比 ...

  4. dapper mysql 批量_MySQL数据库之c#mysql批量更新的两种方法

    本文主要向大家介绍了MySQL数据库之c#mysql批量更新的两种方法 ,通过具体的内容向大家展现,希望对大家学习MySQL数据库有所帮助. 总体而言update 更新上传速度还是慢. 1:  简单的 ...

  5. android 使用系统下载并更新版本,安卓系统更新升级的种方法

    最近有网友问小编"安卓系统怎么升级?",针对该问题,笔者也在网上查找了下相关资料,不过并没有找到什么有价值的相关介绍,多数都是介绍如何自动升级.或者下载升级版包等等方法,对于一些常 ...

  6. 使用高级语言编写计算机程序步骤,计算机执行用高级语言编写的程序主要有两种途径解释和编译编译专.doc...

    计算机执行用高级语言编写的程序主要有两种途径解释和编译编译专.doc 计算机执行用高级语言编写的程序主要有两种途径:解释和编译 编译:专指由高级语言转换为低级语言编译和解释的区别: 是否产生目标程序 ...

  7. 在德国注册商标的两种途径

    随着中德经贸合作关系的不断发展,奔驰.宝马.西门子等德国品牌在国内早已耳熟能详,成为德国产品优秀品质的代名词.与此同时,我国自有品牌在德国市场一直鲜为人知.除贸易结构中自有品牌商品份量小等原因,我大部 ...

  8. 淘客基地拾牛安卓APP更新至1.4版本

    淘客基地拾牛安卓APP更新至1.4版本,更新内容如下: 1.增加手机号登录.注册: 2.[商品详情]页面优化,增加店铺名.评论.产品参数等信息: 3.增加[找同款]功能(在商品详情页): 4.增加[代 ...

  9. 饥荒怎么自动订阅服务器,饥荒Mod订阅及安装图文教程 两种途径都可以

    原标题:饥荒Mod订阅及安装图文教程 两种途径都可以 <饥荒>添加Mod可改变游戏玩法或是功能,使其更有趣味性,不过具体的安装步骤很多玩家还不知道,今天小编带来<饥荒>Mod订 ...

最新文章

  1. 苹果手机微信上form表单提交的问题
  2. UML中聚合和组合的关系(笔记)
  3. URL存在http host头攻击漏洞-修复方案
  4. Bootstrap全局css样式_辅助类
  5. html跳动爱心代码,html+css实现跳动爱心❥(^_-)-Go语言中文社区
  6. Maven工程Spring框架AOP的简单使用
  7. InstallShield安装过程介绍
  8. python基本判断语句_python两种简洁的条件判断语句写法
  9. 腾达ap设置说明_腾达路由器怎么设置AP模式?
  10. 上周六香山游兄弟们的合影
  11. 如何取消PPT的密码保护?
  12. 腾讯云 linux pptpd 搭建 和遇到的部分问题解决
  13. SQL SERVER插入数据操作
  14. 微信重定向地址参数被拦截
  15. FATE —— 二.3.2 Hetero-NN使用CustModel设置顶部、底部模型
  16. Linux:WCP知识库安装及配置
  17. 《炬丰科技-半导体工艺》 组合式 CMP 和晶片清洗装置方法
  18. 面试小知识(2)为什么TCP需要三次握手和四次挥手
  19. Android_8.1 Log 系统源码分析
  20. vue 自适应屏幕的宽高度

热门文章

  1. 奈奎斯特采样定理之我见
  2. 限时删,2020 CSDN 博客之星排名泄露
  3. 利用python绘制勾股定理赵爽弦图
  4. 服务器重启后jar包自动重启
  5. Gopher China 2021,未来可期
  6. 中国十大无线耳机排行榜,音质好配置高的蓝牙耳机分享
  7. 2020年中高级Android面试秘籍(Android高级篇-3)
  8. Matlab 模拟声波散射,一种目标声散射特征模拟装置的制作方法
  9. 圣地亚哥911警用呼叫中心响应时间平均5秒
  10. 内网服务器防火墙作用,防火墙内网用户通过公网域名访问内部服务器典型配置案例集...