Developing Android applications in Java – Overview – My Notes

As I told before, I attended the free webinar by CreativeTech on Developing Android Applications with Java yesterday.

My friend Jaskirat, asked me write about the session since he missed some parts of it as he slept during the session. ๐Ÿ™‚ Okay it was not because the session was boring, but due to the fact that 11 AM PST is midnight of us guys in India. I happily obliged and here are my notes from the session.

Introduction

The training started off with a brief introduction about the format of the session, about CreativeTech trainings, partnership with Oโ€™Reilly, brief profile of the author etc. They also explained how to use the GoTo Webinar console, ask questions etc.

Then there was a brief introduction about the android platform, its stack and how various components fit it. He also explained the various verbs like activity, intent etc. You can read about them in the Application fundamentals section of the android documentation.

Choosing the SDK version

Next there was a brief explanation about the SDK and the difference between android SDK and Google APIโ€™s and also about the various versions of SDK. This led to a brief Q&A session where people asked which version to SDK to target. The instructor then recommended targeting for SDK version 1.5. He said that version 1.5 strikes a balance between market reach and available features.

You can checkout the different versions of SDK and their market share in the android developer page.

Installing necessary software

After the Q&A, the instructor showed how to install the necessary software to follow the code samples.

You need to install the following

  • Eclipse
  • Android SDK
  • ADT Eclipse Plugin

You can follow the instructions in the android documentation page to install the above softwares.

After installing the necessary software, you should also create an Android Virtual Device (AVD), which will allow you to run the application in the Android Emulator.

Demo Application

The goal of the session was to introduce the android platform and to write a demo flashlight app.

The app will have two views (red and green, see screenshot), which can be toggled by clicking a button. The following are the screenshots of the application.

red-view green-view

Implementing the demo application

This was the meat of the presentation (but was pretty short due to time constraints), where he explained how to start writing code, to implement the demo application.

You can follow the steps in the โ€œHello Worldโ€ tutorial of the android documentation to setup the project.

Source code

I have uploaded source code for yesterdayโ€™s session in github and you can download it from there.

The first session was really very good and I will be attending the remaining 5 sessions too and if possible will write blog posts with the notes that I take. Meanwhile if you are interested in developing android applications, then you should really watch this tutorial.

Update: I have added additional information about the android project structure in a subsequent post.

Update 2: I have also completed the homework for this session and have posted my source code and explanation.

Update 3: You can also view my notes for the next session.

You can also subscribe to my blogโ€™s RSS feed or follow me in Twitter to receive updates about my notes for the next sessions.

Posted in Android/Java | Tagged , , | 21 Comments

Turning 27 today

Well, itโ€™s the day in every year, when you have to get loads of scraps in Orkut and wall postings in Facebook, emails from forums which you have registered with a couple of years back, phone calls right from 12 in the night and your phone keeps beeping about the new SMS. Yes today is my birthday and I am turning 27 this year ๐Ÿ˜‰

Thanks guys for all the scraps, wall postings, emails, tweets, phone calls and SMSes. You all really made it my day today. ๐Ÿ™‚

So like all these years, I am going to eagerly wait to face the surprises which life is planning to throw at my way. ๐Ÿ™‚

Posted in Random/Personal | Tagged , | 5 Comments

Free online course on developing android applications using Java

Oโ€™Reilly Training is conducting a 6-week online course which will help you to get started developing Android Applications with Java. The following is the official description

This free 6-week online course will get you started developing Android Applications with Java. You’ll learn hands on how to build actual working apps with Eclipse and the Android SDK, as well as the ins and outs of Android’s features

This online course if free if you watch it live, otherwise you may have to purchase it. You can check out the schedule in the official course page.

I check out the agenda and it seems to cover most of the basic things that you need to learn to develop applications using the Android platform. If you are interested then you register for the course at the official course page.

Posted in Android/Java | Tagged , , | 22 Comments

Facebook knows where to look for me ;)

I was doing an ego search on Google and you can imagine my surprise when I found this ad as one of the sponsored result. ๐Ÿ™‚

sudar-muthu-facebook

I know I am famous but was humbled to know that even Facebook knows about it. ๐Ÿ˜‰

Posted in Random/Personal | Tagged , | 2 Comments

Using WordPress as a platform

I just gave a talk in Bangalore PHP Meetup about ways in which we can use WordPress as a platform. The following is the slide I used and a little write up about the talk.

Continue reading »

Posted in Events/Conferences, WordPress | Tagged , , , , , | 9 Comments

WordPress MU merge has begun

Sometime back, I wrote about Mattโ€™s announcement of merging WordPress and WordPress MU codebase together.

Now the wait is over, the actual merge process has started and this is going to be really exciting. ๐Ÿ™‚

This will also mean that we will be able to run BuddyPress on single user WordPress installations, which is kind of cool. Eagerly waiting for WordPress 3.0 ๐Ÿ™‚

Posted in WordPress | Tagged , , | 1 Comment

[Poll] – RoloPress Importer

With the maintenance release out, we are planning to work on importers, which will allow you to import contact data from other programs.

I want you to help me to choose which importer I should work on first, which will be released in for the next version of RoloPress.

So please cast your vote and we will work on the importer which receives the most number of votes.

(You can cast your vote here directly, if you are not able to see the poll widget or if you are reading this post from a feed reader)

Thanks ๐Ÿ™‚

Posted in WordPress | Tagged , , | 5 Comments

Look back – 2009

Well, without much delay (just 18 days compared with last yearโ€™s 56 days ๐Ÿ˜‰ ), here is my year end stats and review post for the year 2009.

Highlights of 2009

2009 has been a year of rollercoaster for me and a year full of changes both at the personal side as well as professional side.

I started the year with a trip to the operation theatre ๐Ÿ™‚ and then to Bangalore for attending Yahoo hack day, started having a crush on Google Wave, then changed job and moved to Bangalore and then changed my host ๐Ÿ˜‰ , participated in WordPress Plugin competition and then released a couple of Plugins (for which I got an excellent review from Ozh), and then had a break-up with TV (which turned out to be a very good thing) and then visited US on a business trip and then finally ended the year, by releasing RoloPress. ๐Ÿ˜‰

Okay enough of self-bragging and time for some stats. ๐Ÿ™‚

Number of Posts

total number of posts by year

Thanks to my break-up with TV, I got more time to spend with my blog, which can be seen from the increase in the total number of posts. The number of posts slowed down a bit towards the end of the year due to my travel and RoloPress, but on the whole, I am happy with the results ๐Ÿ™‚

Number of comments

total number of comments by year

More than the number of posts, the one which gave me more satisfaction, is the number of comments. Last year, I said that I will try to engage more user activity in my blog and one look at the graph should say that I succeeded. ๐Ÿ˜‰

Thanks to all those who commented, you really bought a smile on my face. ๐Ÿ™‚

Average number of characters in posts

average length of posts by year

There is a slight increase when compared with the previous years and since things have worked out well so far, I am planning to continue the same this year too.

Total number of characters in all posts

total length of all posts by year

I have almost written (okay typed ๐Ÿ˜‰ ) almost double the amount of characters in 2009 when compared with 2008. This is really good and I hope to continue the same next year too. ๐Ÿ™‚

Whatโ€™s in for this year?

So for this year, I am planning to concentrate more on my WordPress Plugins and RoloPress and also planning to learn a couple of languages like Haskel, Scala and R. Letโ€™s see how things turn out ๐Ÿ™‚

<shameless self promotion>I have created these wonderful graphs using my year end stats WordPress Plugin. If you run a WordPress blog then you can also generate these graphs by downloading my year end stats WordPress Plugin.</shameless self promotion>

Posted in Random/Personal | Tagged , , , | 1 Comment

RoloPress 1.1

As promised RoloPress, the WordPress based contact Manger was released at the beginning of this year.

Now the first maintenance release (version 1.1) has been released with a couple of bug fixes and some enhancements. You can read the full list of changes in the announcement post.

You can download the latest version from the homepage and if you are interested, you can check out the source code at github.

Try it out and if you have any feedback, please post it here or in the forums.

Posted in WordPress | Tagged | 3 Comments

US through my eyes

Finally after 3 weeks of stay in Sunnyvale CA, I am back in India. ๐Ÿ™‚

Whomever I met after my visit, asked me the same question. How was my experience out there? So instead of explaining to each of them separately, I am going to point this blog post to them.

I am not going to get into the cultural/lifestyle or economical aspect at all, instead I am going to just describe the subtle things which you will notice in your everyday life.

Right hand driving

The first thing that got my attention after getting down at SFO airport is that people drive in the right side of the road. Even though I know about it before, it took me quite some time to get used to it (especially while taking turns)

No metric system

The second thing which I noticed was that the metric system (km, kg, litre, Celsius etc) is not used. Instead they use the British system (miles, pounds, gallons, Fahrenheit etc). I was always trying to do the conversion internally when doing calculations.

No ground floor in elevators

This one was a real surprise. After landing in my hotel, I realized that the elevators donโ€™t have ground floor. So the ground floor becomes first floor and the first floor becomes second floor. Luckily I went in the elevator the first time instead of taking the steps. Otherwise I would have reached 4th floor instead of 3rd floor. ๐Ÿ™‚

More automation

I was not sure whether it was because of shortage of manual labour or for cost-cutting. Most of the places like shops, petrol (okay okay gas) stations, super markets etc were automated. Vending machines have replaced manual labour in all these places.

Access for everyone

This one was really a good thing. In almost all places, there were separate accessible paths/doors for disabled people. Every parking lot had separate places for disabled people.

On the whole, experienced a lot of new things in my 3 weeks stay and have taken some tons of photos. Keep an eye on my flickr page; I will be uploading them soon after doing some post processing.

PS: Wish you all a happy and prosperous 2010.

Posted in Travel/Trek | Tagged , | 6 Comments