Sunday, July 6, 2014

My new app: Blogger Stats

As I mentioned some time ago, I've been working on a simple app for displaying pageviews statistics for blogs on the Blogger platform. The idea interested me, because I wanted to check how many people viewed my blog, and there was no app like this on Google Play. Using a browser to go to the administration website was simply inconvenient. It was slow and you had to log in to see the information. That's why I decided to try to create an app for it.

You can get Blogger Stats for Google Play here:

The screenshot on the right explains perfectly what the app does. It basically tells you how many people visited your blog in the last week, in the last month, and since you started it. Unfortunately, more detailed statistics are not available, because the Blogger API does not support it right now. This information is usually satisfying enough though.

What's great about the app is that you don't have to log in to your account, because it uses the built-in Android authentication mechanisms. This way it's also safer, because your username and password are not stored anywhere. What is more, you can use it offline, because it stores historical data on the device. Finally, if you have more than one blog, you can easily switch between them using the dropdown menu in the action bar.

What I'm particularly proud of is that Blogger Stats handles orientation changes elegantly by using retained fragments. This way the user does not even realize that the app is being restarted. To read more about this technique, go to the Handling Runtime Changes section on the Android Developers site.

If you're interested in implementing something similar or in using other Google API's, I recommend the following resources:
Blogger API reference
Google APIs authentication guide
Sample Android App for Google Tasks (todo list)
Google Plugin for Eclipse

As to additional libraries that I used, there was Crashlytics for crash monitoring and discreet-app-rate for displaying an elegant notification encouraging users to rate the app. Both helped me a lot with my other apps and are very easy to implement.

Once again, you can find Blogger Stats on Google Play. If you have a Blogger blog, I'm sure it'll be useful for you. And don't forget to leave me a nice review :)


  1. You made an awesome app . Can you please share it's source code ?

    1. I'm sorry, but I don't think I'll be able to do it. The app has been released on the Google Play Store and I don't want someone else to copy it. I could give you a hand if you need any help with your app if you want.

    2. Hey you're not working on the app as i xan see there is no update to your app in last 4 years.If you share with i'll give you all credit and i won't copy your app but i'll learn from your code and will try to build a better version.

    3. Whoa, I didn't realise that it has been so long since I updated the app. I might do it in the future, but I'm not sure it can be made much better. Google still doesn't allow fetching more precise statistics. Take a look here: Only "last week", "last month" and "all time" are available.
      I'd rather not share the code, but it shouldn't be too hard to implement a similar thing yourself, if you still think it's worth it.