sagar9268 / memoir Goto Github PK
View Code? Open in Web Editor NEWA simple and easy to use app to keep your journal entries in an interesting way.
A simple and easy to use app to keep your journal entries in an interesting way.
By clicking on the share button from the drop down menu of a particular card a user should be able to share that journal to their social networking sites or E-mails, Google Drive, Keep, Messages, etc.
I know it sounds a lot but we can start by doing bit by bit...
First the G-mail, G-Drive, G-Keep then moving on to more difficult ones like Facebook and Google+..
You have to implement edit journal option so that user can edit a previously inserted journal.
On selecting edit journal option insert journal activity will be opened and the text fields and image field will display previously inserted text and image. Then user can edit it as needed and then save it. After saving the database will be updated and user will automatically switch to home screen.
A calendar will be displayed in calendar fragment screen, which will highlight the dates on which a journal entry has been done and other dates will remain un-highlighted.
And on clicking on a particular date it will either take us to that day's journal entry if it's highlighted date or else if the date is un-highlighted then it will take us to the journal entry screen to enter that days journal.
To do these:
For Dob: Create a date picker which will be activated when the user will try to edit their profile and can set their DOB from that and will be displayed as text view in the DOB text view field.
For Gender: Create a box checker input type containing Male, Female and Others as the options to choose from. And the selected option will be displayed in the Gender text view field.
While making a journal entry you should also be able to enter it using your voice (speech to text feature)
timeline will be added in the home screen to display all the journal entries in an chronological order from recent to oldest
it will be displayed using cards which will contain date, journal text entered,and photos (if added)
Logcat Message : java.lang.ClassCastException: com.bumptech.glide.load.resource.bitmap.GlideBitmapDrawable cannot be cast to android.graphics.drawable.BitmapDrawable
at com.sagar.memoir.ImageUtils.drawableToByteArray(ImageUtils.java:14)
at com.sagar.memoir.DatabaseHelper.updateJournal(DatabaseHelper.java:138)
at com.sagar.memoir.JournalEntryActivity.editJournal(JournalEntryActivity.java:253)
at com.sagar.memoir.JournalEntryActivity.access$400(JournalEntryActivity.java:34)
at com.sagar.memoir.JournalEntryActivity$2.onClick(JournalEntryActivity.java:127)
If have image...
when click save,,error occurs
The app shows some times java.lang.OutOfMemoryError because of too many bitmaps being loaded into the memory while populating the home with journals.
If we will use Glide library to load the images then it will solve the error to a large extent.
So, It is preferred to use the Glide library wherever the images are to be shown.
Adding image to a journal (optional) from the local gallery of phone
Image should be selected on the journal entry activity screen and then store it in 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.