Author: mariangeladev

Android links

RxJava
http://blog.feedpresso.com/2016/01/25/why-you-should-use-rxjava-in-android-a-short-introduction-to-rxjava.html

http://blog.danlew.net/2014/09/15/grokking-rxjava-part-1/
https://github.com/ReactiveX/RxJava
https://www.ykode.com/2015/02/20/android-frp-rxjava-retrolambda.html

Determine if android app is the first time used
https://stackoverflow.com/questions/4636141/determine-if-android-app-is-the-first-time-used#13237848

Android get device locale
https://stackoverflow.com/questions/23348954/android-get-device-locale

How to get package name from anywhere?
https://stackoverflow.com/questions/6589797/how-to-get-package-name-from-anywhere#6589829

RecycleView [links]

https://developer.android.com/training/material/lists-cards.html
http://www.binpress.com/tutorial/android-l-recyclerview-and-cardview-tutorial/156
https://www.raywenderlich.com/126528/android-recyclerview-tutorial
https://stackoverflow.com/questions/35597866/listview-to-recycleview
https://gist.github.com/skyfishjy/443b7448f59be978bc59
http://www.vogella.com/tutorials/AndroidSQLite/article.html#tutorial-sqlite-custom-contentprovider-and-loader
https://stackoverflow.com/questions/26312301/is-it-possible-to-make-cursoradapter-be-set-in-recycleview-just-like-listview
https://stackoverflow.com/questions/26312301/is-it-possible-to-make-cursoradapter-be-set-in-recycleview-just-like-listview
https://stackoverflow.com/questions/26517855/using-the-recyclerview-with-a-database/27732748#27732748
https://stackoverflow.com/questions/39825125/android-recyclerview-cursorloader-contentprovider-load-more
https://github.com/SarthakM9/TodoApp
http://emuneee.com/blog/2016/01/10/cursors-recyclerviews-and-itemanimators/
https://stackoverflow.com/questions/28525112/android-recyclerview-vs-listview-with-viewholder
https://stackoverflow.com/questions/28392554/should-we-use-recyclerview-to-replace-listview?rq=1
https://github.com/riyazMuhammad/Android-CardViewRecyclerView
http://www.vogella.com/tutorials/AndroidRecyclerView/article.html
https://inducesmile.com/android/android-gridlayoutmanager-with-recyclerview-in-material-design/
https://stackoverflow.com/questions/26666143/recyclerview-gridlayoutmanager-how-to-auto-detect-span-count/30256880#comment62202844_30256880
https://www.bignerdranch.com/blog/recyclerview-part-1-fundamentals-for-listview-experts/

OnClickListener
https://www.littlerobots.nl/blog/Handle-Android-RecyclerView-Clicks/
https://antonioleiva.com/recyclerview-listener/
http://www.sapandiwakar.in/recycler-view-item-click-handler/
https://stackoverflow.com/questions/24471109/recyclerview-onclick/26196831#26196831
https://stackoverflow.com/questions/24471109/recyclerview-onclick
https://stackoverflow.com/questions/30284067/handle-button-click-inside-a-row-in-recyclerview
https://stackoverflow.com/questions/24885223/why-doesnt-recyclerview-have-onitemclicklistener/24933117#24933117

Set empty view
https://stackoverflow.com/questions/27414173/equivalent-of-listview-setemptyview-in-recyclerview
https://stackoverflow.com/questions/28217436/how-to-show-an-empty-view-with-a-recyclerview

ItemDecoration
https://developer.android.com/reference/android/support/v7/widget/RecyclerView.ItemDecoration.html
https://gist.github.com/homj/b3c1d07aefa35b4912ab
https://stackoverflow.com/questions/28531996/android-recyclerview-gridlayoutmanager-column-spacing#30701422

Updates

Hello friends!

I didn’t write for a while. I was busy to rewrite the apps.
1. I changed the ListView to RecyclerView. It was very tough and I didn’t understand everything very well.
2. Russian Words: added localization (Italian) for db and interface. I added the auto locale detection and loading the necessary table. I didn’t update the app in the store, because I want to test it a bit with my phone, when I feel that it is ready I will update it in the store.
3. I studied a lot =)
I am going to write additional posts about the RecyclerView and add some useful information about it.
This was just an aperitif. Thanks for all. There are still so much to learn.

Load more, loaders

https://stackoverflow.com/questions/44491406/how-to-load-more-items-to-the-listview-with-a-loadermanager
http://blog.iamsuleiman.com/android-pagination-tutorial-getting-started-recyclerview/
https://stackoverflow.com/questions/26579764/loaders-with-paginated-listview
http://www.androiddesignpatterns.com/2012/07/understanding-loadermanager.html
http://android.amberfog.com/?p=296
https://github.com/codepath/android_guides/wiki/Endless-Scrolling-with-AdapterViews-and-RecyclerView
https://stackoverflow.com/questions/12583419/implement-endless-scroll-on-listview
https://stackoverflow.com/questions/1080811/android-endless-list
https://medium.com/google-developers/making-loading-data-on-android-lifecycle-aware-897e12760832
http://www.vogella.com/tutorials/AndroidBackgroundProcessing/article.html
https://stackoverflow.com/questions/39825125/android-recyclerview-cursorloader-contentprovider-load-more#40017905

Russian words: updated

Ufffa… I updated the Russian words app. I completely rewrite all the code.

  1. Now it uses a database. Everything is inside the db.
  2. I added the new words.

TODO: remove some bad parts from the code and polish UI; add second language; add new words.

http://www.grokkingandroid.com/android-tutorial-writing-your-own-content-provider/
https://developer.android.com/guide/topics/providers/content-providers.html
https://developer.android.com/reference/android/content/ContentUris.html
https://developer.android.com/reference/android/content/UriMatcher.html
https://developer.android.com/guide/components/loaders.html
https://developer.android.com/guide/topics/data/data-storage.html

Novita: updated

I added a database. It works through the CursorLoader, ContentProvider. It was quite easy to implement. I added all news sources to the database. It was just a first update. I found that I like my app. I use it everyday. TODO: add settings fragment to check what news sources user should see on the main activity. The app is powered by https://newsapi.org/

I didn’t update the screenshots. I am going to do it tomorrow.