On April 14, we had an appointment at DFA SM Manila for Philippine passport renewal. The process took 2 hours in total, which wasn’t so bad. We were holders of the older type of e-passport, which were only valid for 5 years. We received our renewed passports via LBC about 10 business days (rush) after […]
Author: Catzie
Android: SharedPreferences not accessible from SyncAdapter
When I was trying to access a SharedPreferences value from my Android app’s SyncAdapter, I kept on receiving an old value that was saved to the key. Quick solution to inaccessible SharedPreferences from SyncAdapter A quick solution (which may be a short-term one) I tried was to remove android:process=”:sync” from the following code:
|
1 2 3 4 |
<service android:name=".service.SyncService" android:exported="true" android:process=":sync"> |
But […]
Get your Postal ID: SM North EDSA (2018 January)
If you prefer to apply for a postal ID at one of the PHILPOST branches in malls, then I think you’ll get valuable information from this page. We chose to get our postal ID from SM North EDSA; it wasn’t an easy process for us because of things we didn’t know beforehand. And now, I’d […]
Android app dev: Intent extras set in onBackPressed() misssing when back to onActivityResult()
It’s funny how we spent about an hour trying to figure out why the Intent extras that we’re setting are not being sent back to onActivityResult(). If we only knew that the solution was as simple as moving one line of code. The call to super.onBackPressed() should be placed after setting Intent extras and after […]
Android app dev: Missing import org.apache.commons.lang3.text.WordUtils;
I use a few instances of WordUtils.capitalizeFully() on an Android app that I’ve been working on. And there are times when the import org.apache.commons.lang3.text.WordUtils; breaks, sometimes after merging with some of my git branches. To fix this, what I do is open app/build.gradle and add the following line under dependencies:
|
1 |
compile 'org.apache.commons:commons-lang3:3.4' |
Hope this saves somebody […]
Something to avoid when using Android RecyclerView
When using Android’s RecyclerView, don’t use the same inflated XML layout file for items you intend to shuffle on the fly! Their contents will overlap. -CK
Android RecyclerView notifyItemChanged() IllegalStateException “Cannot call this method while RecyclerView is computing a layout or scrolling”
If your Android app is crashing with error IllegalStateException “Cannot call this method while RecyclerView is computing a layout or scrolling”, you may try placing your notifyitemchanged inside a Runnable. Assuming you have a call to notifyItemChanged() inside onBindViewHolder() that is making your app crash with IllegalStateException, you may try something like this:
|
1 2 3 4 5 6 7 8 9 |
myRecyclerView.post(new Runnable() { @Override public void run() { myArrayList.remove(position); myArrayList.add(something); recyclerViewMainScreenHeader.getAdapter().<code>notifyItemChanged</code>(); } }); |
Aventus Makati Doctors Schedule
Most people in my family are Intellicare card holders, and we frequent Aventus Makati because of that. Do you often go to Aventus in Filomena Building too? I scanned a copy of Aventus Makati Doctors’ schedule for our convenience: Click the image above to enlarge. You may even print it! Hope that helps.
Not impressed at “Impressions” restaurant at Maxims Hotel: nice ambience but horrible food service
So we tried the sit-down buffet at Impressions in Maxims Hotel, but we sat down eating nothing for a long while. They say Impressions is a fine dining restaurant, but the food service is not so fine. I could ignore the hungry mosquitoes of Impressions feasting on my feet that night, but waiting so long […]
Ubuntu: Show current Git branch on Terminal prompt
There are times when I keep running git status or git branch to check which branch I’m on and I just found that I could do something to show the name of my current Git branch on my Terminal prompt, thanks to a colleague. In the following screenshot I’m working in the directory “sample_app”, on […]