Skip to main content

Posts

The basics of building an Android Application

The first thing that is important to understand as a developer is what really happens behind the scene when a user taps on an app icon. How does a developer gain access to the entry point of the application. For this post I will focus on the flow only. If you need to understand how to create your app then follow the simple instructions in this tutorial -  Building your first App . Identify MAIN activity When an app launches, the Android OS first looks into AndroidManifest.xml file to identify the MAIN activity. It looks for an activity tag containing intent-filter with name android.intent.action.MAIN. Start the APP Once the MAIN activity class is known, it then creates a new instance and calls onCreate(Bundle savedInstanceState) method. This method is the entry point to the application. Show the APP This is typically done by specifying the elements that a developer wants to display in a  layout file  stored inside res/layout subdirectory. Android makes it easy to re...

Android - Where to Start?

I am getting started with Android development. I hope to share my understanding of how to build apps and how things work in Android as I learn more. This is my first post about getting started. If you are looking for a starting point, you can easily get started by following Android online tutorials  or pickup one of the Android books such as Hello Android  , The busy coder's guide or The big nerd ranch guide . Next, to setup your development environment follow the instructions to install the Android Development Toolkit . The toolkit has a built-in emulator and so it is not necessary to buy an Android device, at least, at this time. You can get started by running your applications in the emulator. 

Error 324 (net::ERR_EMPTY_RESPONSE): The server closed the connection without sending any data.

I was consistently getting this error in chrome for a webpage that was loading just fine in safari. I managed to fix the problem by doing the following in chrome; Go to History > Show Full History Type the site domain to filter the results to show all recent attempts to load the page. Select all entries in filtered results and click "Remove Selected items." In the same History window, select "Settings" from a list menu in the left bar of the page. Click "Show advanced settings ..." . Then, under Privacy click "Content settings..." Click "All cookies and site data..." In "search cookies" textbox type the domain name of the website where the page is hosted. Click "x" to delete all cookies associated with the domain. Exit the settings window by clicking "Done" and try reloading the page.  I hope this fixes the problem. If you followed the same steps, please let others know whether it worked or n...

NAS - Netwrok Attached Storage

I have been thinking about creating a central storage for my home computers. I have been using dropbox but I don't feel comfortable putting all my files in the cloud. So I finally pulled a plug on Synology ds212j . I was debating between synology and QNAP . I decided to go with Synology because it was less expensive and appeared to be more popular. I also ordered 2TB WD Red hard drives, courtesy amazon.com recommendations. If you are in the market for a NAS, here are a few things to keep in mind; 1.   Hard disk size : If you are planning to buy a new drive, it is recommended to go with a bigger size because it would save you the effort to reconfigure the volume . But if you are on a budget and want to use existing hard drives then you may find Synology Hybrid RAID useful. It allows you to make the most of available storage and provides simple steps to replace the hard drives in future. 2. It is not a backup : I was surprised when I read in forums that RAID is not a backup be...

The Lean Startup

My team, like many others, has adopted the Lean Startup process to quickly test and learn from customers. I expect to post a series of blogs to share our experience. In case you are just getting started, I would highly recommend watching following two FREE  videos available online. Build. Measure. Learn. Lean Startup SXSW 2012 – hosted by Eric Ries.  http://www.udemy.com/lean-startup-sxsw-2012-videos-and-presentations How to Build a Startup – Steve Blank (teaches Lean Launchpad class).  http://www.udacity.com/overview/Course/ep245/CourseRev/1 You should also subscribe to their blogs; Startup Lessons Learned Steve Blank's blog The concept of Lean Startup is very simple. Put something out in front of customers as quickly as possible to get their feedback. 

YouTube ipad app, please!

I upgraded my ipad to iOS 6 and I am already regretting it. My 2 year old was very comfortable using the native YouTube app that was part of previous iOS.  I downloaded YouTube iphone app but it is not as intuitive as the native app. I wish there was a way to revert to iOS 5 or a new app from Google for iPad. 

ipad stuck on exchange password

I recently activated 2-step verification on google. When I opened my ipad it kept asking me for exchange password. I tried entering my correct password for gmail but it kept prompting for the password. A quick search on google from my computer brought me to this page http://www.ipadforums.net/off-topic/55512-exchange-password-problem.html . I was able to get around the problem by following steps as listed below; 1. Double press home button to bring up multi-tasking bar that allows switching to other apps. 2. Click on settings app 3. You will still see the password prompts. Try to hit cancel and activate airplane mode. It may take a couple of tries since you have to do it quickly. 4. Then go to Mail and click on gmail account settings. You need to reset your password as mentioned in next step. 5. Now switch to your computer. Go to google 2-step verification setting page . Login using your gmail account password. 6. Click on the "Manage application specific passwords" l...