The aim of the app is to fetch news from different wordpress websites and display in the application. While the news are displayed, the app gives you the ability to click and view each news within the app. Instead of taking you out of the app, it gives you the comfort of viewing within the app.
History
Previous Updates
- Reimplementing CrytpoNews in Native Android(UPDATE: Storing News in DB)
- Reimplementing CrytpoNews in Native Android (UPDATE #2 : ADDED SETTINGS CUSTOMIZATION)
- Reimplementing CrytpoNews in Native Android (UPDATE #3 : NETWORK LISTENER)
- Reimplementing CrytpoNews in Native Android(UPDATE #4: Share News Functionality)
New Features
- User can now save his/her favorite news to read later by just clicking of a button
Clicking on Show Favorites to Enter Favorite screen | The covered Star Icon Indicates that the Post has been Favorited |
---|---|
Empty Favorite Screen with no Items | OnLongPress Action on an item creates a context Menu where user can delete (1) post at a time |
---|---|
Favorite Screen with one Item | Empty Star Icon indicates that the post has not been favorited |
---|---|
How It was Implemented
The resources for the icons were gotten from google icons - Commit can be found here
- Since This Project uses MVVM architecture, i created the FavoriteActvity - this was where all the logic for
querying
anddeleting
the favorite took place. I also create a FavoriteviewModel class which bridges the FavoriteRepositoryClass and the Activity.
A dao was created to retrieve the data from the FavoriteTable -(A pojo class annotated with @Entity
) in the database. This class was adequatey provided using dagger in the AppModuleClass.
The
star
icons were implemented in the NewswebPageActivity where a user canadd
andremove
from the database.Flexible Adapter was used to perform LongPressAction on the adapter in the Favorite Activity.
Final Commit here
Resources
- Github Pull Request- Link of PR can be found here
- Apk for download - Download here
- *Note: Ff you have a previous installation, kindly uninstall before installing this version, versioning will soon be available out on Playstore !!!
Roadmap
- Searching all news
Persisting user newsProviding different layouts- Providing different themes for user
- Push Notifications
News Posts sharing- Incorporating more news and giving the user the flexibility of deciding what he wants to read per time.
Able to save Favorites
On the Next Updates , Users will be able to :-
- Search through News,
- Delete Multiple Items in Favorite Activity.
Posted on Utopian.io - Rewarding Open Source Contributors
Good Work!! MVVM Architecture practices were followed and you made the Dao for database connectivity. I like how you put all the assets you used in 1 commit. and all the code in 2nd and reformated the code :)
Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.
[utopian-moderator]
Thank you
nice
Thanks
Thanks for the contribution. It has been approved.
Need help? Write a ticket on https://support.utopian.io.
Chat with us on Discord.
[utopian-moderator]
Congratulations @mathemandy! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
Award for the number of upvotes received
Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOP
Congratulations @mathemandy! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
Award for the number of upvotes
Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOP