anitaa1990 / roomdb-sample Goto Github PK
View Code? Open in Web Editor NEWA simple notes app to demo Room + LiveData implementation in Android
License: Apache License 2.0
A simple notes app to demo Room + LiveData implementation in Android
License: Apache License 2.0
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.
There is problem on this code.
GetTask(2) return LiveData not the class Note.
It needs to get Note class from LiveData
How to save image in android room database?
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.