-
Recent Posts
Recent Comments
- vidya on Toolbar overlapping listView
- wpadmin on SAX parser using AsyncTask to read xml file on net
- Free Stuff on SAX parser using AsyncTask to read xml file on net
- Crave Freebies on SAX parser using AsyncTask to read xml file on net
- wpadmin on Resources references from the manifest cannot vary by configuration
Archives
- September 2018
- July 2018
- June 2018
- October 2017
- July 2017
- June 2017
- May 2017
- April 2017
- March 2017
- December 2016
- June 2016
- March 2016
- February 2016
- November 2015
- May 2015
- January 2015
- April 2014
- March 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
Categories
Meta
Monthly Archives: July 2017
Missed error due to logcat scrolling in Android Studio
I had an activity crashing but could only briefly see the crash report scroll by in the Android Studio logcat before it was cleared and replaced by the restarted activity. Changing ‘Show only selected application’ to ‘Edit filter configuration’ did … Continue reading
Posted in Android
Leave a comment
Restore scroll position on return to listview
Thanks again to stackoverflow. Wanted to position listview at same place it was left when the user clicked on an item to update/view it (in separate activity). To save position – not just of top record but of the offset … Continue reading
Posted in Android
Leave a comment
Update listview after item update
I couldn’t find a way to refresh the listview after returning from updating an item in a separate activity. I couldn’t get any variation of adapter.notifyDataSetChanged() to work, despite it being suggested in many places. What worked for me was … Continue reading
Posted in Android
Leave a comment
onItemClickListener not working
Had list view using custom adapter and found that onItemClickListener would not work. Found answer in stackoverflow. Apparently the listener won’t work if any row item contains a focusable or clickable view. The solution is the following line, which I … Continue reading
Posted in Android
Leave a comment