View Single Post
Old 03-26-2017, 12:31 PM   #23
plusz
Addict
plusz is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!plusz is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!plusz is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!plusz is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!plusz is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!plusz is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!plusz is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!plusz is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!plusz is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!plusz is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!plusz is faster than a rolling 'o,' stronger than silent 'e,' and leaps capital 'T' in a single bound!
 
Posts: 384
Karma: 50008
Join Date: Feb 2017
Device: 13.3" Boox Max2, 7" Kobo H2O
ReLaunchX_1.2.0

I have finally found out what was the reason of possible freeze of the app. Unfortunately it is an Android problem which was fixed in Jelly Bean so best approach for older Android version is to avoid using such code.

Details for devs: The problem is with running anything via getRuntime().exec(cmd) on Android lower than Jelly Bean. The execution of cmd can be interrupted by a signal and Android will never restart or dispose the process. There is probably very small chance for it to happen but it can once in a while.

Luckily this code was not used very much so I managed to get rid of it.

Changes:
1. File properties popup will not display file owner and file permissions on non-rooted devices. To get the information shell process "ls -l" was used which may hang the app. This information is useless for people who does not root anyway.
2. Completely new Storage Info view. Elegant and more readable for non-geeks. Still if you prefer there is a setting to display the old table with details beneath the graphical bars on the view. Changed internal code which previously was starting shell process "df /sdcard" etc. to use other safe and faster Android API.
3. Fixed invisible strings. Few strings were white on white, namely in the 'Association Settings' view which can be accessed by Android Menu button.

New Storage Info view
Click image for larger version

Name:	4-view.jpg
Views:	2070
Size:	68.4 KB
ID:	155829

If you prefer it can be combined with 'old style' details table by "Advanced Settings > Appearance > Storage Info view" setting
Click image for larger version

Name:	5-setting.jpg
Views:	1285
Size:	110.4 KB
ID:	155830

but on small screens the 'old style' table may not fit so you may need to scroll the view
Click image for larger version

Name:	6-view_details.jpg
Views:	1221
Size:	78.6 KB
ID:	155831

Enjoy new binary
ReLaunchX_1.2.0.zip

Last edited by plusz; 03-26-2017 at 12:36 PM.
plusz is offline   Reply With Quote