极光推送源码api封装改造

APP消息推送 极光推送 示例代码 APP消息推送 极光推送 示例代码 APP 进行别名绑定,以下接口进行 消息推送 个推消息推送代码示例链接https://blog.csdn.net/qq_36992948/article/details/110129625 /** * 描述: * * @author 闲走天涯 * @create 2020/11/6 16:59 */ @Slf4j @RestController @RequestMapping("/jpushNew") public class JPushNewControll 阅读详情

对于做安卓或ios客户端消息推送的第三方服务极光推送,它有一套自己的api,为了简化集成,我们往往需要改造封装。

极光推送官网:https://www.jiguang.cn/push

SDK下载地址:https://docs.jiguang.cn/jpush/resources/

PushExample.java

package cn.jpush.api.examples;

import cn.jpush.api.JPushClient;
import cn.jpush.api.common.connection.HttpProxy;
import cn.jpush.api.common.resp.APIConnectionException;
import cn.jpush.api.common.resp.APIRequestException;
import cn.jpush.api.push.PushResult;
import cn.jpush.api.push.model.Message;
import cn.jpush.api.push.model.Options;
import cn.jpush.api.push.model.Platform;
import cn.jpush.api.push.model.PushPayload;
import cn.jpush.api.push.model.audience.Audience;
import cn.jpush.api.push.model.audience.AudienceTarget;
import cn.jpush.api.push.model.notification.AndroidNotification;
import cn.jpush.api.push.model.notification.IosNotification;
import cn.jpush.api.push.model.notification.Notification;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.HashMap;
import java.util.Map;

public class PushExample {
    protected static final Logger LOG = LoggerFactory.getLogger(PushExample.class);

    // demo App defined in resources/jpush-api.conf
    private static String appKey = "";// 
    private static String masterSecret = "";// 

    public static String TITLE = "Test from API example";//
    public static String ALERT = "";
    public static String MSG_CONTENT = "{'type':'1','userid':'zhangsan','username':'张三','cmd':'','content':''}";
    public static String REGISTRATION_ID = "4345erhf7";//
    public static String TAG = "";// 多个以逗号隔开,为空默认发送全部tag
    public static String ALIAS = "";// 别名
    public static String PROXYURL = "";
    public static String PROXYPORT = "8080";
    public static String PROXYSTATE = "0";

    public static void main(String[] args) {
        Map<String, Object> map = new HashMap<String, Object>();
        PushExample push = new PushExample();
        // push.testSendPush(map);
        push.testMessage(map);


    }

    public Map<String, Object> testSendPush(Map<String, Object> map) {
        // System.out.println("----------调极光推送api");
        Map<String, Object> rmap = new HashMap<String, Object>();
        try {
            String returnCode = "0001";// 失败
            if (map != null && !map.isEmpty()) {
       
                this.appKey = map.get("appKey") + "";
                this.masterSecret = map.get("masterSecret") + "";
                this.TITLE = map.get("title") + "";
                this.ALERT = map.get("alert") + "";
                this.MSG_CONTENT = map.get("msgcontent") + "";
                this.REGISTRATION_ID = map.get("registrationid") + "";
                this.TAG = map.get("tag") + "";
                this.ALIAS = map.get("alias") + "";
                this.PROXYURL = map.get("proxyurl") + "";
                this.PROXYPORT = map.get("proxyport") + "";
                this.PROXYSTATE = map.get("proxystate") + "";

            }
            PushResult result = null;
            PushPayload payload = null;
            System.out.println("----this.PROXYSTATE:" + this.PROXYSTATE);
            if (this.PROXYSTATE != null && !"".equals(this.PROXYSTATE)
                    && "1".equals(this.PROXYSTATE)) {
                // System.out.println("-------------------有代理");
                HttpProxy proxy = new HttpProxy("proxy.tj.cmcc", 8080);
                JPushClient jpushClient = new JPushClient(masterSecret, appKey, 3, proxy);
                if (isStrNull(TAG)) {
                    payload = buildPushObject_all_all_alert();
                } else {
                    // 安卓-标签发送【多个标签以逗号隔开】
                    payload = buildPushObject_android_tag_alertWithTitle2();
                }
                result = jpushClient.sendPush(payload);

            } else {
                // System.out.println("-------------------无代理");
                JPushClient jpushClient = new JPushClient(masterSecret, appKey, 3);

                if (isStrNull(TAG)) {
                    payload = buildPushObject_all_all_alert();
                } else {
                    // 安卓-标签发送【多个标签以逗号隔开】
                    payload = buildPushObject_android_tag_alertWithTitle2();
                }

                result = jpushClient.sendPush(payload);

            }
            System.out.println("--------result:" + result);
            if (result.msg_id > 0) {
                returnCode = "0000";// 成功
            }
            System.out.println("------returnCode:" + returnCode);

            LOG.info("Got result - " + result);

            rmap.put("returnCode", returnCode);
            rmap.put("sendContent", this.ALERT);
            rmap.put("msgId", result.msg_id);
            rmap.put("sendno", result.sendno);

        } catch (APIConnectionException e) {
            LOG.error("Connection error. Should retry later. ", e);

        } catch (APIRequestException e) {
            LOG.error("Error response from JPush server. Should review and fix it. ", e);
            LOG.info("HTTP Status: " + e.getStatus());
            LOG.info("Error Code: " + e.getErrorCode());
            LOG.info("Error Message: " + e.getErrorMessage());
            LOG.info("Msg ID: " + e.getMsgId());
        }

        return rmap;
    }

    public Map<String, Object> testMessage(Map<String, Object> map) {
        // System.out.println("----------调极光推送api");
        Map<String, Object> rmap = new HashMap<String, Object>();
        try {
            String returnCode = "0001";// 失败
            if (map != null && !map.isEmpty()) {
                System.out.println("----------->赋值属性");
                this.appKey = map.get("appKey") + "";
                this.masterSecret = map.get("masterSecret") + "";
                this.TITLE = map.get("title") + "";
                this.ALERT = map.get("alert") + "";
                this.MSG_CONTENT = map.get("msgcontent") + "";
                this.REGISTRATION_ID = map.get("registrationid") + "";
                this.TAG = map.get("tag") + "";
                this.ALIAS = map.get("alias") + "";
                this.PROXYURL = map.get("proxyurl") + "";
                this.PROXYPORT = map.get("proxyport") + "";
                this.PROXYSTATE = map.get("proxystate") + "";

            }
            PushResult result = null;
            PushPayload payload = null;
            System.out.println("----this.PROXYSTATE:" + this.PROXYSTATE);
            if (this.PROXYSTATE != null && !"".equals(this.PROXYSTATE)
                    && "1".equals(this.PROXYSTATE)) {
                // System.out.println("-------------------有代理");
                HttpProxy proxy = new HttpProxy("proxy.tj.cmcc", 8080);
                JPushClient jpushClient = new JPushClient(masterSecret, appKey, 3, proxy);
                if (isStrNull(TAG)) {
                    payload = buildPushObject_android_all_message();
                } else {
                    // 安卓-标签发送【多个标签以逗号隔开】
                    payload = buildPushObject_android_tag_message();
                }
                result = jpushClient.sendPush(payload);

            } else {
                // System.out.println("-------------------无代理");
                JPushClient jpushClient = new JPushClient(masterSecret, appKey, 3);

                if (isStrNull(TAG)) {
                    if (isStrNull(ALIAS)) {
                        payload = buildPushObject_android_all_message();
                    } else {
                        payload = buildPushObject_android_alias_message();
                    }

                } else {
                    // 安卓-标签发送【多个标签以逗号隔开】
                    payload = buildPushObject_android_tag_message();
                }

                result = jpushClient.sendPush(payload);

            }
            System.out.println("--------result:" + result);
            if (result.msg_id > 0) {
                returnCode = "0000";// 成功
            }
            System.out.println("------returnCode:" + returnCode);

            LOG.info("Got result - " + result);

            rmap.put("returnCode", returnCode);
            rmap.put("sendContent", this.ALERT);
            rmap.put("msgId", result.msg_id);
            rmap.put("sendno", result.sendno);

        } catch (APIConnectionException e) {
            LOG.error("Connection error. Should retry later. ", e);

        } catch (APIRequestException e) {
            LOG.error("Error response from JPush server. Should review and fix it. ", e);
            LOG.info("HTTP Status: " + e.getStatus());
            LOG.info("Error Code: " + e.getErrorCode());
            LOG.info("Error Message: " + e.getErrorMessage());
            LOG.info("Msg ID: " + e.getMsgId());
        }

        return rmap;
    }

    // 全部推送
    public static PushPayload buildPushObject_all_all_alert() {
        return PushPayload.alertAll(ALERT);
    }

    public static PushPayload buildPushObject_all_alias_alert() {
        return PushPayload.newBuilder()
                .setPlatform(Platform.all())
                .setAudience(Audience.alias("alias1"))
                .setNotification(Notification.alert(ALERT))
                .build();
    }

    public static PushPayload buildPushObject_android_tag_alertWithTitle() {
        return PushPayload.newBuilder()
                .setPlatform(Platform.android())
                .setAudience(Audience.tag("liuyqtag"))
                .setNotification(Notification.android(ALERT, TITLE, null))
                .build();
    }

    // 新增方法,以逗号隔开的形式【标签】 【android形式 】
    public static PushPayload buildPushObject_android_tag_alertWithTitle2() {
        return PushPayload.newBuilder()
                .setPlatform(Platform.android())
                // .setPlatform(Platform.all())
                .setAudience(Audience.tag2(TAG))
                .setNotification(Notification.android(ALERT, TITLE, null))
                // .setNotification(Notification.alert(ALERT))
                .build();
    }

    public static PushPayload buildPushObject_android_and_ios() {
        return PushPayload.newBuilder()
                .setPlatform(Platform.android_ios())
                .setAudience(Audience.tag("tag1"))
                .setNotification(Notification.newBuilder()
                        .setAlert("alert content")
                        .addPlatformNotification(AndroidNotification.newBuilder()
                                .setTitle("Android Title").build())
                        .addPlatformNotification(IosNotification.newBuilder()
                                .incrBadge(1)
                                .addExtra("extra_key", "extra_value").build())
                        .build())
                .build();
    }

    public static PushPayload buildPushObject_ios_tagAnd_alertWithExtrasAndMessage() {
        return PushPayload.newBuilder()
                .setPlatform(Platform.ios())
                .setAudience(Audience.tag_and("tag1", "liuyqtag", "ss", "dd"))
                .setNotification(Notification.newBuilder()
                        .addPlatformNotification(IosNotification.newBuilder()
                                .setAlert(ALERT)
                                .setBadge(5)
                                .setSound("happy")
                                .addExtra("from", "JPush")
                                .build())
                        .build())
                 .setMessage(Message.content(MSG_CONTENT))
                 .setOptions(Options.newBuilder()
                         .setApnsProduction(true)
                         .build())
                 .build();
    }

    // 新增方法,以逗号隔开的形式 
    public static PushPayload buildPushObject_ios_tagAnd_alertWithExtrasAndMessage2() {
        return PushPayload.newBuilder()
                .setPlatform(Platform.ios())
                .setAudience(Audience.tag_and2(TAG))
                .setNotification(Notification.newBuilder()
                        .addPlatformNotification(IosNotification.newBuilder()
                                .setAlert(ALERT)
                                .setBadge(5)
                                .setSound("happy")
                                .addExtra("from", "JPush")
                                .build())
                        .build())
                 .setMessage(Message.content(MSG_CONTENT))
                 .setOptions(Options.newBuilder()
                         .setApnsProduction(true)
                         .build())
                 .build();
    }

    public static PushPayload buildPushObject_ios_audienceMore_messageWithExtras() {
        return PushPayload.newBuilder()
                .setPlatform(Platform.android_ios())
                .setAudience(Audience.newBuilder()
                        .addAudienceTarget(AudienceTarget.tag("tag1", "tag3"))
                        .addAudienceTarget(AudienceTarget.alias("alias1", "alias3"))
                        .build())
                .setMessage(Message.newBuilder()
                        .setMsgContent(MSG_CONTENT)
                        .addExtra("from", "JPush")
                        .build())
                .build();
    }

    // 【自定义消息】新增方法,以逗号隔开的形式 【android形式 】
    public static PushPayload buildPushObject_android_tag_message() {
        return PushPayload.newBuilder()
                .setPlatform(Platform.android())
                // .setPlatform(Platform.all())
                .setAudience(Audience.tag2(TAG))
                .setMessage(Message.content(MSG_CONTENT))
                .build();
    }

    // 【自定义消息】新增方法,所有 【android形式 】
    public static PushPayload buildPushObject_android_all_message() {
        return PushPayload
                .newBuilder()
                .setPlatform(Platform.android())
                // .setPlatform(Platform.all())
                .setAudience(Audience.all())
                .setMessage(Message.content(MSG_CONTENT))
                .build();
    }

    // 【自定义消息】新增方法,以逗号隔开的形式【别名】 【android形式 】
    public static PushPayload buildPushObject_android_alias_message() {
        return PushPayload.newBuilder()
                .setPlatform(Platform.android())
                .setAudience(Audience.alias(ALIAS))
                .setMessage(Message.content(MSG_CONTENT))
                .build();
    }

    public static boolean isStrNull(String str) {
        boolean flg = false;
        if (str == null || "".equals(str)) {
            flg = true;
        }
        return flg;
    }

}


C#—ASP.NET:集成极光推送(Push API v3)   1、极光推送官网(https://www.jpush.cn/)申请一个账号。 2、服务中心,开发者服务中,创建一个新的应用,输入正确的Android的包名 3、获取到了一个AppKey 和一个 Master Secret,这两个参数比较重要,验证权限使用。 4、去官网找到下载C# SDK的包https://docs.jiguang.cn/jpush/resources/   ... 阅读详情

相关推荐

极光推送Java版Maven项目实战集成

极光推送(JPush)基于TCP长连接与设备维持心跳机制,实现毫秒级消息触达。其服务架构采用分布式集群设计,支持千万级并发连接,在Java生态中通过SDK封装RESTful API调用,简化开发者集成成本。// 示例:基础推送请求逻辑该SDK屏蔽底层通信细节,内置重试、序列化、签名生成等机制,保障高可用性。相较于自建推送系统需投入大量资源维护连接稳定性与iOS APNs证书轮转,极光推送显著降低运维复杂度与总体拥有成本(TCO)。标签允许定义键值对,在POM其他位置通过${key}

weixin_42388898的博客 860

极光推送之java后台封装REST API

1 什么是推送? 这个看图效果最好请直接看下图: 我们手机经常会收到如上图弹框消息,我们今天说的dfsdf啊

程序员小奎的博客 4586

极光推送源码

集成极光推送sdk,实时推送效果,单击标题栏跳转!

【极光推送】jpush服务端开发详尽过程

前言 今天突然要做一个手机的推送消息功能,综合了网上各路大神的意见最终选择了极光推送。然而作为一个从来没开发过web项目的人来说,大神们说的很简单的官网教程让我看的一头雾水。找了几篇大牛写的教程,里面基本忽略了像我这种连html调用servlet都需要百度的菜鸟。于是将所有过程记录下来,希望对后来人有帮助。 一、 准备工作 1. 登录极光推送官网https://www.jpush.c

summer_sy的博客 1万+

极光推送---【客户端】、【服务器端】源码.zip

极光推送,使得开发者可以即时地向其应用程序的用户推送通知或者消息,与用户保持互动,从而有效地提高留存率,提升用户体验。平台提供整合了Android推送、iOS推送的统一推送服务。

极光推送 自定义源码类

极光推送的自定义源码类 最简单的直观的方式 一看就懂……

SpringBoot集成极光推送完整实现代码(建议收藏)

工作中经常会遇到服务器向App推送消息的需求,一般企业中选择用极光推送的比较多,在集成极光时发现极光的文档并不完整,网上的文章也很多不能直接使用,这里列出我在工作中集成极光的全部代码,只需要按照如下代码保证一次性实现。

weixin_39255905的博客 2913

AndroidStudio 下极光推送源码

基于AndroidStudio的极光推送,可以收到通知,自定义消息等,亲测可用

极光java推送实例,android极光推送示例源码(入门级完整实例)

【实例简介】【实例截图】【核心代码】package com.duduhali.Jpush;import com.duduhali.flying.R;import cn.jpush.android.api.CustomPushNotificationBuilder;import cn.jpush.android.api.JPushInterface;import android.app.Activi...

weixin_35730901的博客 628

ST7789P3初始化配置

【代码】ST7789P3初始化配置。

zqq_1314的博客 4161

利用HTML+CSS设计PPT:html-to-pptx实现自动化转换与可编辑输出

在办公自动化和前端开发领域,将网页技术应用于文档生成是一个重要的技术方向。其核心原理在于通过解析HTML/CSS的结构与样式,将其映射为目标文档的原生对象模型。这项技术的价值在于,它能够将Web技术栈强大的布局与样式能力(如Flexbox、CSS Grid)与办公软件(如Microsoft PowerPoint)的广泛兼容性和可编辑性相结合。在实际应用场景中,这种技术特别适合需要快速生成兼具设计感与实用性的演示文稿,例如数据报告、产品发布和营销材料。本文探讨的html-to-pptx项目正是这一思路的工程实

weixin_30652491的博客 492

ASP.NET集成极光推送(Push API v3)

1、极光推送官网(https://www.jpush.cn/)申请一个账号。 2、服务中心,开发者服务中,创建一个新的应用,输入正确的Android的包名 3、获取到了一个AppKey和一个Master Secret,这两个参数比较重要,验证权限使用。 4、去官网找到下载C# SDK的包https://docs.jiguang.cn/jpush/resources/ Github 源码:https://github.com/jpush/jpush-api-csharp-clie...

qq_31432773的博客 762

基于单目视觉的四旋翼定点降落——如何通过mavros控制pixhawk(二)

    一直拖了这么久没有更新,怪我太懒啦~~~ 今天要特别感谢舒仔仔同学,我的好队友帮我写了这篇博文。这篇文章主要讲了如何通过mavros来控制pixhawk。硬件逻辑是这样子,我们先搞一个odroid(土豪上TX2),再用usb线将odroid与pixhawk连接。所以,odroid发送控制指令来控制pixhawk飞行。pixhawk与外界的通信协议是mavlink。ROS下面有个包叫mavr...

zhengyuxin0507的博客 1万+

RDPWrap 多用户远程桌面教程:Windows 家庭版的安装、调优与故障排查

同事出差,家里那台装开发环境的台式机一直开着。我下班路上用手机远程接回自己的会话,家里电视盒子也能再开一路,互不顶掉——这就是 RDPWrap 做的事:让 Windows 10/11 家庭版这类只允许一个远程会话的版本,支持多用户远程桌面并发登录。先说清楚边界:它不是微软官方功能,系统大版本更新后可能失效,商用场景还涉及授权合规问题。 ## 问题与原理:为什么多用户远程桌面在家庭版上不生效 W

gitblog_00038的博客 510

上位机图像处理和嵌入式模块部署(qmacvisual入门)

【 声明:版权所有,欢迎转载,请勿用于商业用途。 联系信箱:feixiaoxing @163.com】 虽然我们前面学习了很多的知识点,比如说在windows这边,用qt写界面,用opencv写图像处理代码;在linux这边先用树莓派测试,最后再部署到自己的平台上面。但是,对于一个商业软件是怎么运行的,很多时候我们心理还是没有底,或者说,自己写的软件距离一个商业软件还有多远,大部分学习的同学是不知道的。 就算有的同学说,这个时候可以借鉴一下vision pro,或者是

嵌入式-老费,一个分享专业嵌入式知识的blog 1242

AMBA-CHI协议详解(十五)

Write transactions事务描述以及请求属性,cache line状态转换。

Crazzy_M的博客 655

JPush极光推送自己集成服务端jar包

极光推送服务端的api太多,自己把他封装了个jar包,有兴趣的可以看看,源码和jar包都有。

z745968621的专栏 3377

大模型LangChain面试题及参考答案(上)

明确的输入输出类型:函数参数需包含类型注解,返回值需定义清晰的数据结构(如JSON格式),便于LLM理解参数含义和调用方式。工具描述:通过文档字符串或独立的描述对象(如Tool类)说明函数的功能、参数用途及调用场景,供LLM判断是否需要调用。示例:定义一个计算两个数之和的工具函数@tool"""计算两个整数的和。参数:- a:第一个整数- b:第二个整数调用场景:当用户需要进行数值加法计算时使用。"""除了内置的。

大模型大数据攻城狮的专栏 1154

tp极光推送

JPush API PHP Client 这是 JPush REST API 的 PHP 版本封装开发包,是由极光推送官方提供的,一般支持最新的 API 功能。 对应的 REST API 文档: https://docs.jiguang.cn/jpush/server/push/server_overview/ 支持的 PHP 版本: 5.3.3 ~ 5.6.x, 7.x 若需要兼容 PHP 5.3.3 以下版本,可以使用 v3 分支的代码。 因为运行 Composer 需要 PHP 5.3.2+ 以

Huhu呼的博客 405

302.QoS实现工具之MQC

QoS 技术可以对网络中报文进行分类处理,根据优先级提供不同的差分服务,如何实现这种差分服务呢?我们有一种强大的配置方法 - 模块化 QoS 命令行 MQC(Modular QoS Command-Line)。下面就来介绍一下 MQC。

迷逝 1401

OTA 升级失败/回滚策略设计:打造安全可靠的双分区/断点续传/签名校验方案

双分区机制(A/B Partitioning)是OTA升级的“保险箱”。简单来说,设备存储分为两个分区:A分区(当前运行)和B分区(备用)。升级时,新固件写入B分区,A分区保持不变。如果升级成功,系统切换到B分区运行;如果失败,设备直接回滚到A分区,完全不受影响。这就像玩游戏存档:你打Boss前存了个档,万一挂了还能读档重来。双分区就是设备的“读档”机制,避免了变砖的尴尬。以Android设备为例,Google从Android 7.0开始强制引入A/B分区机制(Seamless Updates)。

大模型大数据攻城狮的专栏 1242

极光推送Springboot微服务搭建教程

本文介绍Spring boot 项目中如何搭建极光推送服务,并已将极光推送方法做了封装,实现了三种推送方式: [ ] 服务端控制推送内容方式 [ ] 服务端控制推送并带返回值得方式 [ ] 服务端仅推送内容,客户端自定义显示的方式 你只需在极光官网申请密钥,使用本文提供的配置和源码,5分钟即可搭建完极光推送的后端微服务。 一.服务端配置文件 在项目的application.properties...

zwj1030711290的CSDN 695

win10 跳过U8环境检测的IE WebControls.rar

win10 安装u8的时候 提示IE WebControls 不通过,这个工具可以欺骗u8的检查。 跳过U8环境检测的IE WebControls。提示导入失败后,重新检测通过。

hello python jpush api_极光推送官方支持的 Python 版本服务器端 SDK

JPush API Python Client概述这是 JPush REST API 的 Python 版本封装开发包,是由极光推送官方提供的,一般支持最新的 API 功能。兼容版本Python 2.7Python 3环境配置pip 方式:sudo pip install jpusheasy_install 方式:sudo easy_install jpush使用源码方式:sudo python ...

weixin_39880615的博客 308

大中型超市收银系统(可直接运行)

光步前台收银系统系统功能:商品销售、商品退货、挂单、收银员权限、会员销售、单品取消、整单取消、商品查询、脱机销售、脱机数据上传,基本资料下载,开钱箱、小票打印、收款结算,支持多币种付款方式(现金、储值卡、礼券、微信等),支持多种促销。运行环境:.net 4.0登陆信息用户名:1001 密码:123456内置商品信息,商品编码可输入00001000 - 00010000,测试效果相关功能键F5 结算 F9挂单 F11商品查询 F8退货 Insert单品取消 Del整单取消 F12开钱箱F2 会员 Ctrl+Z退出系统 Home 锁屏 相关源码待公开

Data-Structures-and-Algorithm-Analysis-in-Java.pdf

作者: Weiss, Mark A. 出版社: Addison Wesley Data Structures and Algorithm Analysis in Java is an “advanced algorithms” book that fits between traditional CS2 and Algorithms Analysis courses. In the old ACM Curriculum Guidelines, this course was known as CS7. This text is for readers who want to learn good programming and algorithm analysis skills simultaneously so that they can develop such programs with the maximum amo...

手机APP消息推送极光推送jpush-php实例

「2022 年什么会火?什么该学?本文正在参与“聊聊 2022 技术趋势”征文活动」 本文环境 ThinkPHP5.0,PHP7.1,Mysql5.7\ 不懂的可以评论或联系我邮箱:owen@owenzhang.com\ 著作权归OwenZhang所有。商业转载请联系OwenZhang获得授权,非商业转载请注明出处。 jpush/jpush介绍 这是 JPush REST ...

owenzhang的博客 838

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

上一篇: photoshop常用快捷键大全
下一篇: 一位资深程序员大牛给予Java初学者的学习路线建议
阿杜_ardo
博客等级 码龄15年 158粉丝 249原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值