gasflow icon indicating copy to clipboard operation
gasflow copied to clipboard

apk size

Open gabsoftware opened this issue 8 years ago • 9 comments

Gasflow is advertised as "lightweight" but I find 11 MB to be quite big for such a small app. Please reduce the apk size :-)

gabsoftware avatar Apr 02 '16 23:04 gabsoftware

Would it be possible to generate the picture used for the notification instead of storing every possible values?

gabsoftware avatar Apr 02 '16 23:04 gabsoftware

Oh, that's why the app is so heavy, I was very surprised when I installed it.

Almtesh avatar Apr 03 '16 15:04 Almtesh

The app itself is lightweight but its resources make it heavyweight.

gabsoftware avatar Apr 05 '16 15:04 gabsoftware

Maybe it would be doable to only have pictures of digits from 0 to 9 and compose the speed number from that? For example 123 KB/s would display the picture of 1, then 2, then 3?

gabsoftware avatar May 19 '16 05:05 gabsoftware

Maybe we could generate the bitmap on the fly, but it will downgrade the performance because generating bitmaps will take more CPU and RAM.

Anyway, I compressed (lossless) the PNG files so the app size will be a bit smaller (https://github.com/mridang/gasflow/pull/8)

mysegfault avatar Jul 31 '17 23:07 mysegfault

Or you could generate bitmap cache at first launch, so the apk is not so heavy, but the bitmaps are still present for work.

Almtesh avatar Aug 01 '17 06:08 Almtesh

Does it have to be pictures, can't it be text? Just asking, not sure it that's possible for Android notification bar. For example using setNumber.

gabsoftware avatar Aug 01 '17 06:08 gabsoftware

@Almtesh that's a good idea, i can try to generate the bitmaps and cache them @gabsoftware no it can't be text, just bitmaps. setNumber is used to give an extra number (like unread messages) only

mysegfault avatar Aug 01 '17 07:08 mysegfault

Thanks Gabs/w 4 this app but it wont change to white colour, & notification size so tiny, very hard to read. Android kitkat

qtron avatar May 01 '18 09:05 qtron