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 Introduction

Homer

xxx

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

前言

为什么有这个项目?

之前看了WifiTransfer 这个项目的相关文章,就对这个项目很感兴趣。
自己平时在家喜欢下载一些电影,美剧,动漫传到智能电视(Android系统)上,每次都用U盘传,感觉特别麻烦。于是想起了WifiTransfer 项目。
但是WifiTransfer 并不符合我的使用场景,比如:限制了只能传输APK,Android TV上不兼容等。
作为Android开发者便利用空余时间进行了改造,改造后:

  1. 对传输的文件类型没有限制。
  2. 兼容AndroidQ及以上设备。
  3. 兼容适配Android TV设备。
  4. 兼容了有线网络(AndroidTV连接网线)的场景。

使用

  1. Android手机或者TV,下载安装app-release.apk
  2. 启动点击右上角wifi图标,查看访问地址IP+端口。
  3. 打开手机或PC浏览器,输入访问地址。
  4. 在浏览器中选择文件上传,App中即可看到上传的文件。

Tips: 如果浏览器无法访问地址,请注意浏览器设备是否可以ping通Android端的IP。

效果

下载Demo.apk体验

xxx xxx

其他

如果你有问题或者建议,请Issues.

致谢

  1. WifiTransfer
  2. AndroidAsync

License

  Copyright [2022] [Homer]

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

homer's People

Contributors

idemonnnnnn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.