Big Giveaway Winner!

Ladies and Gentlemen! We have a winner for our Big Giveaway of Harry Potter ebooks! Andy Res has one because of his outstanding amounts of likes to this blog. If you haven’t already, check out his blog: It is an exceptional blog and shows what one can do if he/she is committed. Everyone should check it out…

But remember, there is still the second place to worry about, who will win the Da Vinci Code ebook? Comment, like or follow for your chance…

20120417-111607 PM.jpg


A very good tutorial.

Android Research Blog

In this post I would like to describe the process of creating and displaying a custom dialog. Though the Android documentation describes pretty well the topic, I faced some problems implementing it, and I would like to share my findings.

The final output should look like this:

Android Custom Dialog

1. The first issue I have encountered was that I was getting a BadTokenExceptionin the onCreateDialog() method where I was instantiating the Dialog: android.view.WindowManager$BadTokenException: Unable to add window — token null is not for an application, 

Well, though the Android documentation suggests to use getApplicationContext(); actually it turns out that this is not the proper way to do it and most likely it will throw an exception. The correct way is to use this, or “ActivityName”.this instead of getApplicationContext(). For example:


2. The second issue I was facing was that I wanted to get rid off the standard dialog title.

View original post 80 more words

Big Giveaway!

C’mon everyone!
The whole Harry Potter series all yours just for commenting! For full details, see the previous Big Giveaway post. I need a winner, and this contest will keep going until I find one!

Can you raed and udnsrtaend tihs?

I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid… Aoccdrnig to rscheearch at Cmabrigde Uinervtisy, it deosn’t mttaer inwaht oredr the ltteers in a wrod are, the olny iprmoatnt tihng is taht the frist and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it wouthit a porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Amzanig huh? yaeh and I awlyas thought slpeling was ipmorantt.

I tuoghht tihs was celevr and cool!