Posts

Showing posts from December, 2013

Android onResume Hell

You could say I entered fragment onResume hell last night. In my android app I am using a ViewPager to scroll between various to-do list for a given project. Each list is a Fragment pretty much as set up in one of the starting skeleton apps defined in Android Studio. This is all well and good except for one of the features is you can move items between various lists. Making it disappear is pretty trivial as you have easy access to the ArrayAdapter for the ListView you are working with. At that point you don't really have a way to tell the list that has just got a new item in you list and you need to redraw. Eventually I hatch the idea that I will use the onResume() method on each fragment to update the view with any changes. That is call the notifyDataSetChanged() method on the ArrayAdapter class for the ListView. The weird thing is onResume was not being call as the fragment was being brought into view. Rather it was being called when we moved to the tab next to it. This mea

Progress and IntelliJ

Yay for having a couple of evening free to code over the weekend. It felt good to get two consecutive nights of coding. I have continued to work on my next android app. There were 5 large items left and then I thought of one more. So there are six... That is about to be reduced to 5 as I have nearly completed one of them. I am not planning on allowing much in the way of feature creep. Ok that last paragraph was pretty dry sounding and to be honest fairly dull. What I have actually been doing is working on adding support for multiple projects. Once complete you will be able to have separate to-do lists for different projects, or just work, home, hobby lists. I would say I am about half way though adding this feature. It is something that could probably have been dropped for a first release but I really want to have a reasonably complete app at the release stage. The reason for this is the android market place it now a big place, releasing into a crowded market is quite different t

Progress on my next Android App

To my surprise I have manged to get my head down a bit tonight and progress on an android app I am working on. Ok it is a pretty basic app To-Do list task manager. I am adding my own slight twist onto it but it is definitely a simple app to write. This is my get back into android app. At the moment I am quite enjoying, I either remember a fair bit about it or when development in android is greatly eased by making use of the internet. I have five major tasks outstanding and as one of them is polishing so I suspect I still have a fair bit of work ahead. It is also looking much better than many android apps that I have written in the past. The Android Studio is looking pretty good at the moment and my productivity is gradually starting to go up. In fact I am enjoying it so much I am actually considering using intelliJ when I code in other languages. The text editing part is pretty nice.