Giter Club home page Giter Club logo

open-hosts-editor's Issues

Crash on backup

User reported a crash when using the backup function.

Here's the stack trace:

java.lang.RuntimeException: Failure delivering result ResultInfo{who=@android:requestPermissions:, request=0, result=-1, data=Intent { act=android.content.pm.action.REQUEST_PERMISSIONS (has extras) }} to activity {me.vittorio_io.openhostseditor/me.vittorio_io.openhostseditor.activities.MainActivity}: java.lang.RuntimeException: Could not create file directory.
    at android.app.ActivityThread.deliverResults(ActivityThread.java:4965)
    at android.app.ActivityThread.handleSendResult(ActivityThread.java:5006)
    at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:51)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2068)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loop(Looper.java:224)
    at android.app.ActivityThread.main(ActivityThread.java:7551)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)
Caused by: java.lang.RuntimeException: Could not create file directory.
    at me.vittorio_io.openhostseditor.model.HostsManager.getBackupStorageDirectory(HostsManager.java:209)
    at me.vittorio_io.openhostseditor.model.HostsManager.saveBackup(HostsManager.java:183)
    at me.vittorio_io.openhostseditor.activities.MainActivity.onRequestPermissionsResult(MainActivity.java:273)
    at android.app.Activity.dispatchRequestPermissionsResult(Activity.java:8408)
    at android.app.Activity.dispatchActivityResult(Activity.java:8253)
    at android.app.ActivityThread.deliverResults(ActivityThread.java:4958)
    ... 11 more

Import from file feature

A few users have requested the ability to import from a txt file.

It also seems like the direct edit button (pen icon) is not very intuitive, possible UX improvement needed.

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.