Giter Club home page Giter Club logo

roomdb-sample's Issues

Save Image

How to save image in android room database?

An error found while back to home page after a note saved

We first thanks for create this awesome working demo with newest android arch component room.

after i forked the git and run the application in android 8.1 orio; i found an error .

09-20 17:12:49.027 9717-9830/com.an.room E/AndroidRuntime: FATAL EXCEPTION: pool-1-thread-2 Process: com.an.room, PID: 9717 java.lang.ArrayIndexOutOfBoundsException: length=19; index=-1 at android.icu.text.DigitList.isIntegral(DigitList.java:289) at android.icu.text.DecimalFormat.parse(DecimalFormat.java:2034) at android.icu.text.DecimalFormat.parse(DecimalFormat.java:1931) at java.text.DecimalFormat.parse(DecimalFormat.java:804) at java.text.SimpleDateFormat.subParse(SimpleDateFormat.java:2353) at java.text.SimpleDateFormat.parseInternal(SimpleDateFormat.java:1615) at java.text.SimpleDateFormat.parse(SimpleDateFormat.java:1528) at java.text.DateFormat.parse(DateFormat.java:360) at com.an.room.util.TimestampConverter.fromTimestamp(TimestampConverter.java:21) at com.an.room.dao.DaoAccess_Impl$4.compute(DaoAccess_Impl.java:218) at com.an.room.dao.DaoAccess_Impl$4.compute(DaoAccess_Impl.java:174) at android.arch.lifecycle.ComputableLiveData$2.run(ComputableLiveData.java:100) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) at java.lang.Thread.run(Thread.java:764) 09

It seems error occurred while converting time from timestamp to date. hope you will see that happened exactly.

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.