Jul 7, 2010

Hello World - in Android

Its been quite some time since I coded something in Android after setting it up. In the meantime, my system got formatted, and change in office project meant I was not getting much time to work on programming. After all, Managers don't code - eh ?

Well, I dont know. I like coding. Its an itch I have to take care of. So, after the initial Android examples, I tried a little change in the Android's Hello World. I was awake anyways watching the Uruguay vs Netherland's World Cup match! :)

The code changed a bit from the default 'Hello World'. Instead of static text, I added a edit box and an 'ok' button. Clicking on it will make an alert box pop up with a small message.

Its a small piece of code - about 40 lines. However, the API is a bit confusing for me, especially since I am also relearning Java as I go along.

Next on the agenda - make a small graphics app.

Jul 1, 2010

Microsoft's Kin is no more



It looks like Microsoft has pulled the plug on developing their own phone - which they had named Kin. There are a lot of theories around why it did not do well, and why they shut down the Kin.

I think that the KIN was killed due to 2 major reasons :
1. It was not doing well.
2. Politics.

1. It was not doing well

Here, I think that the problems were 2 fold.

First the shitty name which no one can identify with. It just does not sound cool. The chap doing the branding , he is not worth the money that was being paid to him.

Two, it was being targetted at the teenagers - but in a way that is patronizing. It was supposed to have all the wow features - facebook , twitter integration etc. However, I doubt they even tried to look at the psychology of teenagers. Teenagers hate it when people tell them what to do - and that was exactly what Kin was doing. Teenagers love to be treated as adults - which Kin was not doing. Teenagers go for brands and cool names - the Kind did not have that.

However, I dont think that this was why the Kin line was pulled up. Microsoft has very deep pockets and can afford to have a loss making product in the market for quite a long while - as one can see from the xbox.

So, my hypothesis about pt 2.

2. Politics

I think internal egos and politics killed the Kin. The people in the Windows mobile had much more of a say than the people developing the Kin. There would have been a power struggle behind the scenes - and Kin eventually lost out. Interestingly, people seem to shun talking about office politics - its taboo to speak about it - but not speaking about it does not mean that it is not existing.

Now, I got a bad feeling about the 'Kin'nect - the motion detection stuff that Microsoft is building. They should change that name to something else ...

Jun 29, 2010

How Google can clean up the Android Market


Google has an application market just like Apples AppStore called the Android Market.

Apple naysayers have been touting the benefits of the Android market saying that it is open and anyone can submit apps to it, quite unlike the draconian process for the Apple AppStore. This has lead to its own problem with a deluge of apps on the store which are malicious or substandard.

Om has written an article on ways to clean up the Android Market.

I have a different take on it.

Google can ill afford to go the Apple way and start certifying all the apps. Neither can they go putting the kill switch on the apps. What my suggestion is that Google go the way Twitter has and start to certify legitimate apps.

The process will be simple.

The company which wants it apps to be certified will submit its application to Google. Google after its due diligence can certify it, or point out what is wrong with it.

For making this work, Google will have to :
  • Setup a system for recieving applications.
  • Setup QA for certifying the apps.
  • Make a few changes to the market application (both web and mobile) to show that an application is certified.
This will go a long way towards making sure that people can get around all the fluff that is there and be sure that genuine applications exist.

At the same time, it also allows developers to put their app onto the market even if they have not been certified - giving a better time to market.

Related Posts :

Jun 16, 2010

9 Lives

9 Lives is the latest book by William Dalrymple. I have grown fond of his readings after reading City of Djinns, The Last Moghul and In Xanadu.

When I got the book ( borrowed from my cousin in exchange for the Last Moghul), I was wondering what the book would be about. It was about 9 lives - or people that was clear. But what was not clear was how it would be played out.

Well, its simple really. These are 9 different lives. Its like the biographies of 9 different people. Each life is contained in its own - a separate story.

Each story is about a religious sect - which you may heard of, but in the urban worlds we live in, these are shunned. Its a peek into the lives of the sadhus and other holy men and women of India. It delves into their psyche as to what makes them do the things they do. Be it a Jain nun, or a Tibetan Monk or a Tribal Singer or a Tribal dancer. Following these unlikely people and learning about their lives , WD has presented a look into a world we know exists, but never bothered to find out about.

This book is definitely a must read. I am sure you will be touched by these lives, and would want to find more about India.

Jun 14, 2010

iPhone vs Android


For those who did not really like my write up :)

( Courtesy : Greywulf's blog )

In Xanadu

In Xanadu is William Dalrymples first book, and his 3rd book that I have read after City of Djinns and The Last Moghul.

Unlike the other 2 books, which deal more with the people and their lives, In Xanadu is more a personal journey story by the young William. In this book, he undertakes the journey following in the steps of Marco Polo all the way to Xanadu - the summer palace of the Chinese Emperor Kublai Khan. At the time of Marco Polo this route was a major route on the silk routes, but not much known to the western world.

At the time WD undertakes the journey, the world has transformed a lot. In giving descriptions of the places where they are travelling through and comparing with notes from Marco Polo one feels the differences that have undergone. Some routes are just too dangerous or just not doable due to political reasons which were part of the main thoroughfares. A kind of comparative history of the route takes place all throughout the journey.

Another feature that I felt was quite apparent was the differences in descriptions. While the world of Delhi was populated with colorful characters and you can imagine the various scenes in Delhi, the populance of the journey almost seems drab. It could also be because I am reading about places that I do not know much about. Ultimately, it felt to me, that India with all its shortcomings, is just a place which warms the heart more.

If you want my opinion of the book - I can say that you can give it a pass. Nothing really sticks to my mind about the book. Probably it is as I say before - I am unable to visualize the places that the journey took place through.

--

Next book is "9 lives" and the update will be up in a few days.

Jun 5, 2010

Android vs iPhone




Yesterday I got a chance to chill out with an Android phone - the HTC Desire. Its being used by one of my team mates (recently I have started working on a project with tenCube which makes the security software WaveSecure).

As a long time user of the iPhone (one and a half years now!), and having a good knowledge of current trends in the market I can say that I would passably know what I am talking about :)

At the end of the playtime ( which was like a few hrs since we were celebrating 5 years of tenCube in a lounge ) , I am left with mixed feelings. Let me elaborate.

What the Android has that the iPhone does not.

The biggest +like factor is the ability to multitask. That was like wow ! coming from the limitations of the iPhone. My colleages gtalk was working silently in the background, and he got an IM from another colleague from Singapore - which shows up as a scrolling text in the top status bar. I was like WTF ! cool !

Since its a google android, it works seamlessly with gmail. In fact - when you first start an android based phone, it will ask you for your gmail id - and if you are not using gmail as your primary email - you are not gonna enjoy the integration. But I suppose, if you are reading this post, you do have a gmail id.

Apart from this...
... nothing much.

Some comparison Notes

These are the things that I noticed while playing around with it.

iPhone has a kind of 'multiple desktop' concept where you can just scroll around by swiping left and right. In Android you require 2 steps : 1. click the button to bring out the list of apps and then scroll through them.

Android has the gadgets concept which is like the Windows or Google gadgets that you have on your PC. I think these are highly overrated as per screen you cannot really fit in more than 1 or max 2 gadgets.

Game quality on the iPhone is much superior to the Android. I have Assasin's Creed and Hero of Sparta on my phone, and going through the Android market I was not really able to find out any similar kind of game.

The Android market is tiny - and also not very well categorized. For instance, on the main screen you just have 'games' and 'apps' category. in games you just have some 4 different categories. In spite of what people may say about the android market place increasing - it still feels very limited and stifled.

Another annoyance is that the size of download is tucked away in the text and not shown at the top. Further it is greyed out - its like they want to trick you into downloading without knowing the size.

Form factor both were near enought. I guess thats cause of HTC engineering rather than Google.

Some pages have login screens with the login and password boxes. On the iPhone when you touch any of these, the page zooms so that you can easily see what you are typing in. On Android there is no such functionality. On top of it, double tapping does not work as expected. On the iPhone double tapping expands the table element , so for instance, if you double tap on a text column, it will 'fit-width' and you can continue with it. On android, it just zooms without looking at the element you are tapping. So most of the time, you end up pinching to zoom correctly.

The HTC also does not do landscape view - which is a mystery to me. Some text is still a bit small when you look at it in portrait mode. So, i am used to tilting to horizontal mode and can easily read it. On the HTC, I was not able to find such stuff.

The Facebook app for iPhone is much much better than that on Android. I think that the app is still new to Android and expect it to improve, but the one on iPhone is just better.

oh, and gmail integration is also doable on the iPhone by hooking up your gmail account as an exchange account. So that advantage goes away.

Conclusion.

On the whole - the User eXperience is much better on the iPhone, even now. Android has one upped on the functionality scale, but I have a big suspecion that the iPhone release ( on 7th June 2010) is going to blow away that advantage.

At this point I will not recommend any phone to you. Wait for the 7th , and i will be doing a review of the iPhone OS.

But one thing I do know - my iPhone 3G will not be doing multi tasking as apple is deliberately crippling that option.

May 11, 2010

Multiple GTalk accounts

If you are like me, you will probably be having multiple Gmail accounts. I have a primary gmail account, and a couple of google apps accounts. The issue always cropped up that I could not use gtalk for all the accounts. Fortunately a bit of digging around, and it is quite a simple solution !

Just create a shortcut on the desktop for gtalk. If you have an issue creating the shortcut, navigate via the start menu to gtalk , right click -> copy -> right click on desktop -> paste.

Now right click the shortcut, and chose 'Porperties'.

In Target, add a /nomutex option at the end. E.g. : following is how it looks like in my shortcut.
"C:\Program Files\Google\Google Talk\googletalk.exe" /nomutex

Now, just click on the gtalk shortcut to start a new instance of the talk messenger. Add your gmail and domain accounts.

Have fun !

The iPod Revolution

The iPod Revolution
[Source: Online MBA for MashableMashableMashable.com]

May 2, 2010

Thoughts on The Last Moghul

Just recently completed reading 'The Last Moghul' by 'William Dalrymple'.

Its a moving account of the Mutiny of 1857 and the twilight days of the Moghul empire - with Bahadur Shah Zafar as the last of the line. This blog post is not a book review - read the book - its worth it. Its more of the thoughts that crossed my mind when reading the book.

  • Delhi used to be hot, but the heat usually started around May. Nowdays , April is itself considered summers.
  • The British came as merchants, but were able to rule and conquer India, as the various tribes of India kept fighting among each other. The rebellion of 1857 was with sepoys from UP and surrounding areas. The British used Punjabis and Gurkhas against them.
  • Equally horrendous atrocities were committed by Indians and British. The main difference was that while Indians went about it just like that, the British went about it efficiently.
  • While the Indians did not know whom to attack ( was he a conspirator of the british or not) , the British treated all brown skins the same.
  • The British were able to spy in the city of Delhi , while the Delhi governance were cluless about what the British were upto.
  • While the sepoys were Indians, the officers were British. So when it came to strategic thinking, the British had the upper hand and were able to win the battle, even though their forces were outnumbered 10 to 1. Again and again, it is shown that Quality matters over Quantity, but still people continue to value quantity more.
  • I keep wondering what the Red Fort would have looked like before the mutiny. After the mutiny, many parts of it were torn down by the British and the remaining were made as company barracks and officer mess & quarters.
  • Many of the traditions of 150 years ago still remain in the indian culture.
  • Bahadur Shah Zafar was an incompetent ruler. However, he found himself as the unwilling leader of the rebels ( or Pandeys the colloquial term given to the rebel sepoys after Mangal Pandey). He was not able to make up his mind whether to side with the sepoys or call of the mutiny. Being an old man 70+ years in age, it can be conceded to him that he was not able to take decisions - but ultimately it lead to his demise and the demise of the line of Moghuls.
  • Was also wondering if Zafar could not take clear decisions, what would happen to India now with the top politicians also in that age bracket and not able to take clear decisions.
  • Zafar was ultimately brought down by his wife, who wanted her son to take on the throne. Behind every unsuccessful man there is a woman also.
  • The accounts of Chandni Chowk etc are too good to be true. The Chandni Chowk now is a dump.
  • I also was struck by the fact that Indian leaders are so weak as they have no idea of actually leading and governing. For ages before India got independence, all the decision making was in the hands of British, which they never gave to the Indians. As such after the partition, India was lead by people (and still is) who have no idea how to govern. And so the sad state of the country.
  • The British found it easy to rule Indians by playing off one side against another. The same is still being done by Indian Politicians ( MNS, etc. ).
  • There was a lot of greenery around Delhi.
  • Nizammudin was a different village - away from Delhi.
Such books should be part of the school curriculum. They make you think.

Apr 12, 2010

non-US iTunes

I always had this problem .. whenever i used to tap the iTunes icon on the iPhone, it would say that it is not available in my country.

Stupid. I can't imaging why a company like apple would be so short sighted about iTunes, while the appstore works ( except that the india app store does not have Civilization Revolutions). Also, after getting my new Acer netbook and installing Ubuntu on it, it becomes difficult to access the iTunesU - a great resource for any kind of knowledge seeker.

I am yet to see the apple keynote from 8th April - for the OS4.0 details. I downloaded on my PC in iTunes but forgot to sync to the iPhone. Now, I am trying to get it to download on the ubuntu netbook, but firefox crashes for any itunes link!

Finally, in frustration, i browsed to the itunes web store in safari on the iPhone ... and ... it opened the itunes app ! I was delighted. Now I can browse all the stuff - from the ringtones ($1.29 per tone - boo!) to the movies and songs downloads to the podcasts. Damn - this thing is a gold mine ... and if you have the moolah to fork over for the movies and songs - you can damn near get anything !

I dont really like the iTunes software on the PC - because I was primarily using it for my music collection. But now, browsing through the podcasts and videos - it was an enlightning moment. This , together with the appStore and now the iBook marketplace , defines why apple is getting so far ahead - and why it will remain so far ahead.

Sometimes I think that locking up to the walled garden of apple wont be too bad after all.