GithubHelp home page GithubHelp logo

sreich / android-count-the-days Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 3.0 292 KB

android project in kotlin to count the days from a time point

License: MIT License

Java 9.71% Kotlin 90.29%
android jvm kotlin

android-count-the-days's People

Contributors

sreich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

android-count-the-days's Issues

Import Backup fails

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

Add per counter custom date/time format

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

Create a widget

Not sure what's involved in this, never made Android widgets before.

Custom per counter output string?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.