
Android 上整合 Text to Speech 功能
EinkBro 做為一個瀏覽器,很多開發的功能都是圍繞著內容呈現的調整。今天,要來介紹 9.14.0 新加入的特別功能:語音閱讀網頁內文。 在 Android 上,Text to Speech 功能早在 API level 4 就開始支援,不過,好像很少有瀏覽器有支援這功能。畢竟,大部分人使用瀏覽器都是想要用眼睛去看內容,而網頁的篇幅通常也不會太長。 ...

EinkBro 做為一個瀏覽器,很多開發的功能都是圍繞著內容呈現的調整。今天,要來介紹 9.14.0 新加入的特別功能:語音閱讀網頁內文。 在 Android 上,Text to Speech 功能早在 API level 4 就開始支援,不過,好像很少有瀏覽器有支援這功能。畢竟,大部分人使用瀏覽器都是想要用眼睛去看內容,而網頁的篇幅通常也不會太長。 ...

這也是老毛病了。三不五時會有使用者反應,雖然在 Google Play Store 中可以找到 EinkBro,但想要下載時,畫面上卻顯示 “您的裝置與這個版本不相容”。由於之前我也沒認真去研究為什麼會發生,所以通常解決方式都是:請使用者上 Github 網站,直接下載 apk 來安裝或是去 f-droid 上安裝。 ...

最近下載 EinkBro 的使用者多了一點。早期不太去理它的臭蟲,也因此發生得愈來愈頻繁。今天終於花了點時間找出原因,並且解決了它。 從 App 版本和 Android OS 版本看來,這是個非特定設備下就會觸發到的問題。之前一直沒理它的原因是,雖然 Google Play Console 上有 Crash 的 callstack (如下圖),但是有寫跟沒寫差不多,因為沒有真的寫出行數,只能在 BrowserActivity::onCreate() 裡自己找線索。 ...

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

EinkBro 是一個專門為 Eink 電子紙閱讀器開發的瀏覽器 APP。由於介面長得跟一般的瀏覽器 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. ...

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

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

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

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