<activity
android:name=“cn.jpush.android.ui.PushActivity”
android:configChanges=“orientation|keyboardHidden”
android:exported=“false”
android:theme=“@android:style/Theme.NoTitleBar”
tools:ignore=“DuplicateActivity”>
<activity
android:name=“cn.jpush.android.ui.PopWinActivity”
android:configChanges=“orientation|keyboardHidden”
android:exported=“false”
android:theme=“@style/MyDialogStyle”>
<service
android:name=“.service.JpushBackgroudeService”
android:enabled=“true”
android:exported=“false”
android:process=“:pushcore”>
<receiver
android:name=“.receiver.PushBackgroudeBrocast”
android:enabled=“true”
android:exported=“false”>
<receiver
android:name=“包名”
android:enabled=“true”
android:exported=“false”>
<activity
android:name=“cn.jpush.android.service.JNotifyActivity”
android:exported=“true”
android:taskAffinity=“jpush.custom”
android:theme=“@android:style/Theme.Translucent.NoTitleBar”>
在gradle中的
defaultConfig{
ndk {
abiFilters ‘armeabi-v7a’, ‘x86’, ‘x86_64’, ‘armeabi-v7a’//,‘arm64-v8a’
}
manifestPlaceholders = [
JPUSH_PKGNAME: applicationId,
JPUSH_APPKEY : “你的ID”, //JPush 上注册的包名对应的 Appkey.
JPUSH_CHANNEL: “developer-default”, //暂时填写默认值即可.
]
}
这样 配置就算可以了,然后在包下,复制从官网下载的demo,到包里,参考地址:https://docs.jiguang.cn//jpush/client/Android/android_3m/
比如TagAliasOperatorHelper这个工具类 改好以后在全局的Applition中 初始化
JPushInterface.setDebugMode(true);
JPushInterface.init(this);
String registrationID = JPushInterface.getRegistrationID(this);//这个可以传给后台 推送到具体的个人
如上配置好之后:
检查一下有没有通知栏权限
package xxx;
import android.app.AppOpsManager;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ApplicationInfo;
import android.net.Uri;
import android.os.Build;
import android.provider.Settings;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
public class CheckAndStartNitifycationUtils
{
public static boolean isNotificationEnabled(Context context) {
String CHECK_OP_NO_THROW = “checkOpNoThrow”;
String OP_POST_NOTIFICATION = “OP_POST_NOTIFICATION”;
AppOpsManager mAppOps = null;
if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT) {
mAppOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);
}
ApplicationInfo appInfo = context.getApplicationInfo();
String pkg = context.getApplicationContext().getPackageName();
int uid = appInfo.uid;
Class appOpsClass = null;
try {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数初中级Android工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则近万的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年Android移动开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Android开发知识点,真正体系化!
由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且会持续更新!
如果你觉得这些内容对你有帮助,可以扫码获取!!(备注:Android)
![](https://i-blog.csdnimg.cn/blog_migrate/1864c86386831d8ef4513228f1097ca8.jpeg)
重要知识点
下面是有几位Android行业大佬对应上方技术点整理的一些进阶资料。
高级进阶篇——高级UI,自定义View(部分展示)
UI这块知识是现今使用者最多的。当年火爆一时的Android入门培训,学会这小块知识就能随便找到不错的工作了。不过很显然现在远远不够了,拒绝无休止的CV,亲自去项目实战,读源码,研究原理吧!
- 面试题部分合集
《互联网大厂面试真题解析、进阶开发核心学习笔记、全套讲解视频、实战项目源码讲义》点击传送门即可获取!
资料。
[外链图片转存中…(img-xnBSqmp5-1712524290040)]
高级进阶篇——高级UI,自定义View(部分展示)
UI这块知识是现今使用者最多的。当年火爆一时的Android入门培训,学会这小块知识就能随便找到不错的工作了。不过很显然现在远远不够了,拒绝无休止的CV,亲自去项目实战,读源码,研究原理吧!
[外链图片转存中…(img-2ombVNUn-1712524290041)]
- 面试题部分合集
[外链图片转存中…(img-NDn5cbFt-1712524290041)]
《互联网大厂面试真题解析、进阶开发核心学习笔记、全套讲解视频、实战项目源码讲义》点击传送门即可获取!