idemonnnnnn / homer Goto Github PK
View Code? Open in Web Editor NEW✈Android端与网页端在局域网络下进行文件传输的App项目。
License: Apache License 2.0
✈Android端与网页端在局域网络下进行文件传输的App项目。
License: Apache License 2.0
在安卓12的设备上运行,由于启动service服务之后无法执行startForeground,createNotificationByChannel里面的PendingIntent.getActivity方法使用错flag了,导致过20多秒后闪退
安卓12的PendingIntent flag已经修改,请修改对应Flag
//android 源码如下:
public static PendingIntent getActivity(Context context, int requestCode,
Intent intent, @flags int flags) {
return getActivity(context, requestCode, intent, flags, null);
}
建议做以下修改
fun getPushIntentFlag(): Int {
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
PendingIntent.FLAG_IMMUTABLE
} else {
PendingIntent.FLAG_UPDATE_CURRENT
}
}
替换项目中的 PendingIntent.FLAG_UPDATE_CURRENT
打扰了
thanks for your hard work, l think your project is awesome. if you can implement my proposal, that will be so nice. l am looking forward to a brand-new release app.😊
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.