GithubHelp home page GithubHelp logo

idemonnnnnn / homer Goto Github PK

View Code? Open in Web Editor NEW
30.0 2.0 14.0 11.29 MB

✈Android端与网页端在局域网络下进行文件传输的App项目。

License: Apache License 2.0

Kotlin 66.62% CSS 4.98% HTML 1.63% JavaScript 26.77%

homer's Issues

android 12 以上设备闪退,请修改Notification flag

在安卓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

打扰了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.