Differences between onPause() and pauseTimers()for Android WebView

A long opened issue for EinkBro states that after creating new background tab, it’s not possible to continue certain behaviors normally (e.g., modify query string, or load more content, etc in Google, and Twitter website). In the beginning, I couldn’t reproduce the issues on my several devices with various Android OS versions. My first thought is that: it’s caused by different WebView versions and some of them are having issues. ...

October 30, 2022

EinkBro APP 基本使用教學

EinkBro 是一個專門為 Eink 電子紙閱讀器開發的瀏覽器 APP。由於介面長得跟一般的瀏覽器 APP 很不一樣,而且又有很多按鈕可以按,和很多設定可以調整,所以寫了這篇文章來介紹一下它。首先會講解基本功能和設定。然後在第二部分說明一些更進階的用法,以及我自己在使用上的技巧。 ...

April 14, 2022

Multi-touch Gesture Support for EinkBro APP

The design concept of EinkBro APP is to reduce UI element by default as much as possible. When users need more features, they can add function icons to the toolbar, or enable features from Settings page. Multi-touch gesture support is implemented in this concept too. By default, it’s not turned on; users could browse the web just like other browsers. Once the user wants more flexible control over the web tab, they can enable multi-touch feature to access more quick functions by swiping on the screen with two fingers. ...

March 6, 2022

Annotation Support for Epub file in EinkBro App

EinkBro browser is developed to support similar behavior of ereader APP to a normal browser, including page-by-page scroll feature, and more powerful text style customization. Nevertheless, no matter how well EinkBro is developed, sometimes normal ereader APPs are still more suitable for long-term reading. As a consequence, I also implemented the “Export to epub file” feature, so that users can export their favorite web content to a standard epub file for later reading on other devices or APPs. ...

February 1, 2022

改善將網頁內容寫入既有 epub 的流程

目前 EinkBro 有提供儲存網頁成 epub 檔案的功能,這大概是少數(或是唯一)瀏覽器有提供的功能之一。不過,礙於 Android 每次升版對於檔案的存取方式都不斷在(亂無章法地)改進,到目前為止,最通用的開啟手機上檔案方式是:利用 Intent.ACTION_CREATE_DOCUMENT 叫起系統的 file expolorer default APP,從那很不好用的介面中選取想要的檔案,或新增一個檔案。 ...

January 9, 2022

看網頁時支援將背景由黑轉白

使用 EinkBro APP 時,常會遇到網頁背景是黑色的,最常見的應該就是在開啟 ptt 的文章時。由於電子紙的特性,在黑底白字的使用場景下,很容易就會產生很多殘影,需要更頻繁地重新更新畫面。 ...

November 24, 2021

在 Android 中利用 Room + Flow + ViewModel + RecyclerView 讓畫面上的列表自動反應資料庫的資料更新

EinkBro App 中的實作大都是用很舊很舊的技術。雖然隨著功能不斷增加,我有逐漸把一些檔案翻新成 Kotlin,和盡量把相關的邏輯抽出到獨立的 class 或檔案中,不過整體來說,架構還是很老派(其實就是沒有什麼架構,全部的邏輯幾乎都塞在同一個 Activity 中)。 ...

October 27, 2021

參加 iThome 鐵人賽的感想

今年因為開發 EinkBro App,寫了不少與之相關的開發記錄文章。剛好有同事建議可以參加看看鐵人賽,就報名了。在之前完全不知道國內有這種活動,看來我平常接觸的資訊太少了。 ...

October 16, 2021

快上加快 — EinkBro (14)

快上加快 — EinkBro (15) 原以為這麼小的一個 App,不到 3MB (扣除擋廣告的資料檔)的實作,既沒有任何的 tracking 機制,也沒有去網路抓任何非網頁內容的資料回來,理論上網頁載入速度要快到不行才對。 ...

September 16, 2021

可自訂的工具列 — EinkBro (13)

可自訂的工具列 — EinkBro (14) 隨著開發的功能愈來愈多,工具列的空間已不足以將所有的功能都排在上面;而且也不是每個功能都是使用者會常用的功能。為了要解決這個問題,工具列開始支援自訂,讓使用者可以自訂工具列上的功能和排序方式。如果能在上面放上最常用的功能,使用者就不用頻繁地開啟層層選單找尋功能按鈕。 ...

September 11, 2021