Giter Club home page Giter Club logo

paperplane's Introduction

Hi there 👋

  • 🔭 I'm an Android developer
  • 🌱 I'm currently learning Jetpack Compose and Rust
  • 💬 Ask me about Android development
  • 📫 How to reach me: Twitter or Telegram
  • 😄 Pronouns: he/him

Mozart, Beethoven, and Chopin never died. They simply became their music.

Anurag's github stats

paperplane's People

Contributors

lixiaozheng avatar tonnyl 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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  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

paperplane's Issues

Out of memory

当连续下滑页面(知乎日报,豆瓣一刻,果壳精选的任意一个),一直下滑,不久就会报出OOM.
个人觉得,作者的这种 二级详情页面 的缓存方式不太好,发送了那么多广播。

log附上
log.txt

如果第一次进入应用,且没网,会奔溃

原因出在DoubanMomentFragment第一次进入时因为没网DoubanMomentFragment会弹出一个SnackBar,(该SnackBar是相对于RefreshLayout显示的),但是在fragment_liset布局中缺少父布局CoordinatorLayout,而SnackBar所依赖的view又要在以CoordinatorLayout作为直接父布局,所以会奔溃。

ProductSans possible copyright infringement

Hello

I just came across your project and it looks quite good. Great work.

Anyways, I noticed you are using Google's ProductSans font, which is not open-source, so I thought I should let you know so you don't run into possible copyright infringements.

Check license site

关于Shortcuts的问题

您好,我注意到您的这款应用是支持Android Shortcuts那个功能的,在Nova Launcher下工作完全正常。然后我在开发过程中也想加入这个功能,但是按照官方文档做的时候,在Nova Launcher上一直无法实现该功能,想请教您一下这个功能在实现过程中还有需要值得注意的么?

2017/03/24 一个新问题

SearchFragment中的onOptionsItemSelected方法里的返回键图标不起作用,应该写在SearchActivity里面。

学习作者的代码写了个App

很久之前我在看 第一行代码 的时候就在 V2 看到你的 知乎专栏 App, 当时觉得界面很赞, 就开始关注作者了, 然后学习作者的 知乎专栏 App , 把它改成 MVP 架构(当学习MVP). 接着看到作者的 纸飞机 App, 还有 7 天开发一个App并上架 的文章, 我就决定要自己写一款能上架的App了 , 当时看到 卡片新闻 停止更新了, 我就决定开发一款新闻类的App, 开发了有半年时间, 前几个月上架酷安, 到目前为止有 1W 的下载量, 觉得还行吧,就想过来跟作者分享下 , 哈哈
项目地址 : https://github.com/iMeiji/Toutiao

随便问下作者的英文怎么学习的?感觉你的英文很6啊

Force stop occurs in certain situation

How to reproduce
1:Open the app once, then return to the launcher.
2:Do anything you like without killing(Force Close) the app's process
3:After some time(don't know how much exactly), maybe hours or a day, relaunch the app and probably need open an article, the app will then be crashed several seconds after.
4:Relaunch the app again, it will work fine.

Related logcat when the crash occured:

It seems to be related to the CacheService.

08-14 09:29:25.529 3425-3655/? I/ActivityManager: Displayed com.marktony.zhihudaily/.details.DetailsActivity: +1s548ms
08-14 09:29:25.548 2015-2191/? E/AndroidRuntime: FATAL EXCEPTION: Thread-37
Process: com.marktony.zhihudaily, PID: 2015
java.lang.NullPointerException: Attempt to invoke virtual method 'int com.marktony.zhihudaily.b.q.i()' on a null object reference
at com.marktony.zhihudaily.database.b.j$2.a(Unknown Source:1)
at com.marktony.zhihudaily.database.b.j$2.a(Unknown Source:2)
at android.a.b.b.b.a(Unknown Source:4)
at com.marktony.zhihudaily.database.b.j.b(Unknown Source:7)
at com.marktony.zhihudaily.service.CacheService.a(Unknown Source:83)
at com.marktony.zhihudaily.service.e.run(Unknown Source:4)
at java.lang.Thread.run(Thread.java:764)
08-14 09:29:25.559 3425-6845/? W/ActivityManager: Force finishing activity com.marktony.zhihudaily/.details.DetailsActivity
08-14 09:29:25.562 3425-6845/? W/ActivityManager: Force finishing activity com.marktony.zhihudaily/.ui.MainActivity
08-14 09:29:25.574 3425-3631/? I/ActivityManager: Showing crash dialog for package com.marktony.zhihudaily u0
08-14 09:29:25.623 3425-6590/? I/OpenGLRenderer: Initialized EGL, version 1.4
08-14 09:29:25.623 3425-6590/? D/OpenGLRenderer: Swap behavior 2
08-14 09:29:25.671 3425-3628/? W/BroadcastQueue: Skipping deliver [background] BroadcastRecord{f93ab1a u-1 android.net.conn.CONNECTIVITY_CHANGE} to ReceiverList{9ebc43c 2015 com.marktony.zhihudaily/10107/u0 remote:afb262f}: process gone or crashing
08-14 09:29:25.751 3425-8587/? D/ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=283, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ], android.os.BinderProxy@6cee828)
08-14 09:29:25.752 3425-15271/? D/ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [ LISTEN id=284, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ], android.os.BinderProxy@7c53941)
08-14 09:29:25.752 3425-15279/? I/ActivityManager: Process com.marktony.zhihudaily (pid 2015) has died: vis +99TOP
08-14 09:29:25.752 3425-15834/? I/WindowManager: WIN DEATH: Window{9764075 u0 com.marktony.zhihudaily/com.marktony.zhihudaily.details.DetailsActivity}
08-14 09:29:25.752 3425-4026/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=283, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ]
08-14 09:29:25.752 3425-15279/? W/ActivityManager: Scheduling restart of crashed service com.marktony.zhihudaily/.service.CacheService in 19280ms
08-14 09:29:25.753 3425-4026/? E/ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [ LISTEN id=284, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ]
08-14 09:29:25.756 3425-3912/? W/InputDispatcher: channel '3db5433 com.marktony.zhihudaily/com.marktony.zhihudaily.ui.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
08-14 09:29:25.756 3425-3912/? E/InputDispatcher: channel '3db5433 com.marktony.zhihudaily/com.marktony.zhihudaily.ui.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
08-14 09:29:25.756 3425-4851/? I/WindowManager: WIN DEATH: Window{3db5433 u0 com.marktony.zhihudaily/com.marktony.zhihudaily.ui.MainActivity}

希望提供预缓存功能

在某些环境下,如地铁、地下室、郊外等地方,网络信号非常不好,这时候加载文章会变得非常困难。
希望能够在有无线网络的时候,自动预下载文章及图片,这样可以在没有网络或网络不好的情况下也能够流畅地阅读。

当然,后台自动下载可能会增加耗电量,这个功能也可以做成手动的。用于可以提前手动要求预下载所有内容,比如在出门前就可以使用家中的无线网络把最新的文章都下载回来,这样外出时到了网络不好的地方依旧能够流畅阅读。

最后感谢一下作者提供了这样一个整合知乎、果壳和豆瓣阅读的工具。

支持一下

很喜欢这个项目。
但是google play因为我下载了这个项目,居然又给我推荐了一个叫做卡片新闻的客户端。内容比咱多,是个强劲的对手,也是很好的学习对象。
加油!

App运行崩溃问题

机型:华为荣耀6 H60-L02
Android 版本:4.4
崩溃位置:收藏界面点击Toolbar 进入搜索界面之后,在搜索框连续输入多次文本App崩溃

闪退太多了

image
image
复现步骤:克隆下来之后,直接运行,然后点击切换黑夜模式就会出现第一图的闪退,我修复了之后,在点击就出现第二个闪退。
手机:huaweimate8
android版本:7.0

命名修改

你好。utils包和ui包的包名换成小写吧,编译报错。

学习你的代码写了个APP

大神,您好,我参考你的源码也写一个几乎一样的APP,不过我里面采用了一些新的框架butterknife、retrofit、rxjava、greendao。 同时也优化了一些bug。
我想上传的我的git上, 但我想毕竟是算是抄袭你的,不知道上传的内容注意点什么,请指导。

关于CollapsingToolbarLayout的toolbar

您好:
我想请教你一个问题,就是你现在APP里面detail窗口里的CollapsingToolbarLayout下的toolbar上滑时会滑出整个界面。但是我按照android教程里写都不会滑出去。而且app:layout_collapseMode="pin"也设置,按照API的说法,设置为pin:CollapsingToolbarLayout折叠后,此布局将固定在顶部。

No more apk upgrade in the future

It is hard, but necessary to announce, there is no more apk upgrade in the future, as the title says.

I'm sorry for that.

Before the version v3.2.0 released, I've received an email from Zhihu, said that I have infringed upon their copyright and asked me to remove the content of Zhihu Daily in the Paper Plane app.

So after the code refactoring, I decided to stop the maintaining. And here, I make an apologize to Zhihu, Guokr and Douban.

If you just want to learn the code, you can fork it and develop by yourself. But, I suggest that it should be used only for study, no commercial activities. Code issues and PRs are welcomed, but you know, apk will not be upgraded and published anymore.

At the end, thanks to the contributors, the starers, the users and so on. Thanks!

关于后台被回收的问题

你好,我们app也采用了谷歌官方mvp的架构,发现应用在后台被回收后,打开应用界面空白,presenter为空,明明是已经走了MainActivity的onCreate等生命周期,没找到解决方案。
然后看到你的app,发现如果后台被回收打开应用程序就直接崩溃了,所以问问有没有解决方案或者好的思路= =,不太想使用onRestoreInstanceState之类的恢复数据,希望被回收后再打开应用是重新打开

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.