sreich / android-count-the-days Goto Github PK
View Code? Open in Web Editor NEWandroid project in kotlin to count the days from a time point
License: MIT License
android project in kotlin to count the days from a time point
License: MIT License
Hi,
first of all, great app!
Although it took me a while to find it, your app provides the functionality that I'm interested in.
I created a backup and tried to reimport it, but this failed.
The logcat shows following error messages:
06-28 10:26:16.611 15211-15211/sreich.countthedays E/AndroidRuntime: FATAL EXCEPTION: main Process: sreich.countthedays, PID: 15211 java.lang.RuntimeException: Failure delivering result ResultInfo{who=android:fragment:0, request=1, result=-1, data=Intent { dat=file:///storage/emulated/0/Download/test.backup }} to activity {sreich.countthedays/sreich.countthedays.SettingsActivity}: java.io.FileNotFoundException: /storage/emulated/0/Download/test.backup: open failed: EACCES (Permission denied) at android.app.ActivityThread.deliverResults(ActivityThread.java:3758) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3801) at android.app.ActivityThread.access$1400(ActivityThread.java:157) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5551) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) Caused by: java.io.FileNotFoundException: /storage/emulated/0/Download/test.backup: open failed: EACCES (Permission denied) at libcore.io.IoBridge.open(IoBridge.java:452) at java.io.FileInputStream.<init>(FileInputStream.java:76) at java.io.FileInputStream.<init>(FileInputStream.java:103) at android.content.ContentResolver.openInputStream(ContentResolver.java:682) at sreich.countthedays.SettingsActivity$DataSyncPreferenceFragment.onActivityResult(SettingsActivity.kt:172) at android.app.Activity.dispatchActivityResult(Activity.java:6487) at android.app.ActivityThread.deliverResults(ActivityThread.java:3754) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3801) at android.app.ActivityThread.access$1400(ActivityThread.java:157) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5551) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied) at libcore.io.Posix.open(Native Method) at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186) at libcore.io.IoBridge.open(IoBridge.java:438) at java.io.FileInputStream.<init>(FileInputStream.java:76) at java.io.FileInputStream.<init>(FileInputStream.java:103) at android.content.ContentResolver.openInputStream(ContentResolver.java:682) at sreich.countthedays.SettingsActivity$DataSyncPreferenceFragment.onActivityResult(SettingsActivity.kt:172) at android.app.Activity.dispatchActivityResult(Activity.java:6487) at android.app.ActivityThread.deliverResults(ActivityThread.java:3754) at android.app.ActivityThread.handleSendResult(ActivityThread.java:3801) at android.app.ActivityThread.access$1400(ActivityThread.java:157) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1405) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5551) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620)
It seems that the app hasn't the right permissions to open the backup file.
I'd like to help to solve the problem, but I think my Android-knowledge might not be enough to solve the problem.
I am using Android 6.0.1.
Best regards,
arwk
Prolly after I add some more features
Will help with testing, to add some default entries.
Which we'll then be able to show time since and until.
Per-counter. Allow to be be displayed as "1 year 2 months" and/or "14 months". Able to choose on counter edit which units you want to use. I could use Years + Months, or just Months, etc.)
Not sure what's involved in this, never made Android widgets before.
From there you could share it to whatever service you need.
Maybe even a custom string like "You are ______ seconds old!" counter
Not sure how useful this would be for people. Likely lower priority as it probably isn't trivial to add.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.