Coursera: Cloud Services for Android Handheld Systems

Hello all,

It’s been a while since I last posted on wordpress. I think I have just been so busy at work and with the Coursera course on Cloud Services for Android Handheld Systems. Here are some great threads to read up on if you are also completing the course at the moment:


There Goes Gravity: A Life in Rock and Roll

Kurt von Behrmann's view

A Take on There Goes Gravity: A Life in Rock and Roll

There Goes Gravity There Goes Gravity


By: Kurt von Behrmann

Access is crucial to any journalist. However, acquiring it in the rarefied realm of contemporary music presents special challenges. The biggest obstacle is gaining the trust of musicians, particular those who have achieved stratospheric success. Lisa Robinson had entrée into that world, and all that comes with it, the good, the bad, the ugly and even the boring.

“There Goes Gravity: A Life in Rock and Roll” chronicles Robinson’s encounters with acts that achieved iconic status and those that were seminal in the underground music scene of 70’s in New York. The thrust of the book focuses on her stint as a traveling journalist with the Rolling Stones and Led Zepplin.   Both from the U.K., wildly successful and huge fans of African-American music, their respective tours included the obligatory chartered…

View original post 1,523 more words

Beginners: How-To Guide for ImageView’s setSelected() method

In this post I will discuss with the setSelected method from the ImageView class. Documentation for this class can be found here: .

In the WordPress android app, we see setSelected method in action as each time you touch the comment button to leave a comment in a post, the comment button turns from blue to orange. If you click on the orange comment button, it becomes blue again. 

This transition from one colour to another is actually completed using a very simple piece of android code. Firstly, we need to gets a references to the imgBtnComment (which is the blue comment button).

final ImageView imgBtnComment = (ImageView) getView().findViewById(;

Once you have that, you can use the line below to switch from the blue comment button to orange comment button once an event has occurred, such as a touch on the button, typically detected through the use of a listener. We use the following setSelected method code for the ImageView:


This will then tell android to use the orange comment button image as we are setting the setSelected to true and so it will look for the associated drawable with the attribute called “state_selected” . See xml for the drawable below:

<?xml version=”1.0″ encoding=”utf-8″?>
<selector xmlns:android=””&gt;

<item android:drawable=”@drawable/ic_comment_active” android:state_pressed=”true”/>
<item android:drawable=”@drawable/ic_comment_active” android:state_selected=”true”/>
<item android:drawable=”@drawable/ic_comment”/>


From the above, you can see that there are two drawables defined. One is for either “state_pressed” and “state_selected” and the other is the normal blue comment button / the one that is displayed when no one has touched it – therefore it is not “active”.

If you want it the imageView to appear as a blue comment button, you can use the following setSelected code:


Your comment button should now be blue.


Open-Sourced Android

Exploring what you can do with android has becoming quite a hobby for me. I love seeing how developers program android apps and how all the classes pull together to generate that polished finish product.

As a tech guru from another blog recently said, to code well you need to first read and understand good code. I think I have taken that to heart and I have been trolling the internet on the beast that is google, constantly on the lookout for open-sourced code.

For all your beginner android programmers / hobbyist and the seasoned android veterans, one indispensible resource to have is where open-source developers develop their apps and then upload for people to evaluate. There are some great example apps there and a would-be programmer can definitely learn a lot.

A quick flip through the categories of open-sourced apps on f-droid reveals some real gems hiding away in between the mass of apps. There are open-sourced apps for messaging (“Telegram” which bears a striking resemblance to Whatsapp), for internet browsing (“Lightning”) and even blogging (“WordPress”). These apps are professionally developed and feels like something one would actually pay for – thank goodness for open-source!:)

Do you know of any other great open-sourced apps which are great for learning how to code for android? Let us know by leaving a comment below.

Living in a place you plan on leaving

All I need is a suitcase.

Sucks to be Sam

If people divided up their life stories into chapters, all they would need is a suitcase. Skip the narrative and just dig through the contents. Forget the setting and the characters and the scenes. Look at the baggage tags, the corny tourist t-shirts, the souvenirs and the different kinds of sand, dirt and dust that collects in the edges of the suitcase.

You can gather a lot about a person’s life and what they’re about based on the things they jammed in the suitcase to bring back to loved ones and the places they’ve been. But that’s mostly with vacations, semesters abroad or internships in a different city.

Suitcases that plan on making a return home are very different than the ones that don’t. These suitcases are the real chapters in people’s lives. These suitcases are less about where their owner has been and more about where they’re going. Because…

View original post 660 more words

Hot Sweet Eats of the Week: HaHaHa Cupcakes Review


180 Tales of Summer

Ha Ha Ha cupcakes is a sweet-tooth having person dream come true. The place of business is adorable and has a relaxing atmosphere for wrapping up your busy day.

The cupcakes are absolutely amazing and there are tons to choose from. My

Ha Ha Ha infamous cupcakes. Ha Ha Ha infamous cupcakes.

favorite would have to be the chocolate cupcake with the oreo-mixed icing on top(found to the left) it was delicious and fresh. However do not expect it to be fluffy like the cupcakes we are used to back in the states. It is a little bit more dense.

If you are looking for a quick, treat in a comfy atmosphere this is the place to go. You can expect to pay 3-en (yen) for one cupcake, they also do parties and have cupcake related items within the store.

Hours: hey are open 7 days a week from 10:00 a.m. until 7:00 p.m.


View original post 34 more words