Created Osler Reader demo project which reads the record from files and show device user status
- Developed in Kotlin and used Courourine to download data from internet
- File Handeling in external Storage
- Minimal UI
-
how project works?
- Once we installed the app in device it will ask for storage permissions to store status files in ExternalStorage/Documents/Osler files
- If files are not present directory then it will copy deviceUserLisr.txt from asset folder to Osler files directory and if internet is available on internet app will download portalUserList.txt from https://gist.githubusercontent.com/altafc22/8d3ae42989532514bcbd042bdf7ee6d6/raw/5568c450cbc72e54134de2756adeeede14eb9eaf/PortalUserList.txt"
- Every time app will try to fetch data from internet. Internet is not there then app will display data from recently updated device user list
- If app downloaded portal user list then it will compare all device list records with newly downloaded portal User list and update all the records in UpdatedDevice list to show on the app
- App is parsing hex values of each record to show status of the user.
-
Standalone Java project
- This projects purely developed in Java. just created to get idea of logic which is used in will work in app
- Created DeviceUserManager class to consume records from the files and created updated file.
- To run this project it only need JDK in system and the the main class of Java prject is OslerReader.java
- Download Android APK : Osler Reader App