Installing Android ADT SDK: Fixing JAVA_HOME Variable Issue

Android Studio ADT

Hi Folks!

I am teaching some students of University of Sargodha, they are in their 7th semester next will be their last. They are taking Android Development course in this semester and Unfortunately there is huge communication gap between their teacher and the students and most of the students complained that the behavior and teaching style of the teacher is so awkward and hilarious that 80% of the class is still not able to install Android Studio on their laptops. Imagine you have taken almost entire course and you still haven’t installed your programming editor, how do you think you can pass the finals. Anyway I personally thank that teacher, because of this attitude of his I had to research a little and I learned the bug fix. So for all of those students and newbies in Android development if you are installing Android Studio and having the JAVA_HOME Environment Variable issue then here is what I suggest you should do;

Android Studio ADT


Download Android Studio ADT

Android Studio is a new Android development environment based on IntelliJ IDEA. Similar to Eclipse with the ADT Plugin, Android Studio provides integrated Android developer tools for development and debugging. It can be downloaded from here


Installing Android Studio ADT

The file you have downloaded will be something like this android-studio-bundle-132.883541-windows.exe where the numeric in the name is the version of the file. It can vary from time to time as the team keeps upgrading the utility. Remember before installing Android Studio Bundle download and install latest JDK

Download JDK from here

Once JDK is installed then proceed to installing Android Studio. It is not a rocket science just run the installer file and then it will be just a next-next wizard. Once Android Studio Bundle is installed run it from the shortcut it created in your programs

If it gives you this error : Cannot load JVM DLL C:\Program files\Java\Jdk(version)\Jre where version is the one you installed on your machine then don’t panic. The operating system couldn’t find a mean to run the Java Virtual Machine on your machine. You need to download a patch from Microsoft Which is Microsoft Visual C++ 2010 Redistributable Package

Once you have downloaded the Visual C++ 2010 Redistributable Package you can now restart your machine and run  the Android Studio. This time it will load the IntelliJIDEA Editor and you can start programming

Android ADT with IntelliJ

This will be your first hello world app.

Android for Beginners


I hope you’d have learned something useful from this post. Let me know if you have any questions in installation of Android Studio on any version of windows.




Advertisements shuts down due to Piracy Charges from Californian Court

I was shocked when I opened a while ago to download a software crack which was one of my favorite hobby to do whenever I needed a crack of some software which I couldn’t find for free on the internet. shuts down

When I saw news on BBC that shut down and fined $110 million and the owner has decided to shutdown the project. I started wondering why and how is this possible. The owner of the had earned more than this amount from this website from last 10.5 years and when I see alexa ranking of which has been less than 300 for a pretty long period and when I estimate the earnings this site was making from Ads and affiliates, Gary Fung was easily able to pay the fine and keep the site running. But seriously who was responsible for this site to end up like this. shuts down due to piracy charges

Tell you what I hauled into details and narrowed down my search results and Guess where the pointer narrowed to? Me, myself, I was the one who was always looking for pirated stuff, cracks and hacks of software, and pretty much anything which is out there in the market with a lot of price which the manufacturer of that product deserves to be paid and I am stealing that right from them. shuts down due to piracy charges

Just like me, there are millions of other people on the internet who have been using and piratebay services for the same reason I did, which resulted in shutting down this site or a huge online business I am not sure what Gary Fung has now in my mind but there was a huge crowd and a huge community connected together via and for them this news was a sudden shock just like I had a while ago.

Gary Fung said in his posting on his page, that during this journey he had met a lot of skilled people and this journey had changed his life forever, I too wanted to confess to Gary Fung that all of us have met a lot of skilled people in our lives but Gary Fung’s effort in form of was priceless.

The level of knowledge and data sharing which was possible through could never have been possible through any other torrent community. We are sorry for your loss Gary Fung. I wish we could have stop ourselves a bit earlier to use your website for pirate materials so this incident could never had happened.

Good Bye

How does Google Adsense Pay You?

How does google adsense pay

Google Adsense is a service through which Google place Ads on the websites who use this service and it pays the website’s owner a specific amount against number of clicks the Ad gets. So far it is the cheapest yet most effective way of starting earning for beginners. But the question is how does Google get that money and how does and what does Google pay us or the subscriber who uses Adsense Service.

Google has a parallel program called Google Adwords. For those of you who are already familiar with this can skip to next section to read how much Google pays the subscriber. Google Adwords is a service through which the subscriber can submit his own Ad and Google will display that Ad on the websites who are using Adsense Service. Google Adwords is an outstanding service for cheap advertisement on the internet and also very effective as it has a good conversion rate. A conversion rate means people actually visiting your website from your Ads divided by total number of people who viewed your Ad.

When someone just views your Ad, this is called an impression. Through Google Adwords service, the subscriber can set his budget as per impressions or clicks. A much known term around the blogging and SEO world is heard and that is PPC. PPC stands for Pay per Click and exactly what Google does. Google charges you for every Click that your Ad gets from its service.

There is a lot more to Google Adwords than just putting Ads on other websites. The charm in Google Adwords service is that you have a very intensive control panel through which you can control your Ad campaign however you like. You can publish your Ads Country wise, City wise, Region wise and can also throw your Ads around the Globe. You can set your own budget. You can set frequency of Ad appearance. You can pause a campaign, restart a campaign, block or delete a campaign. All of these features make Google Adwords a very popular online Advertisement Service

Now comes the point that how much Google pay us if we use its Adsense Service. Simple answer is it depends on number of clicks and Cost per Click (CPC) which Google Ads get from visitors of our website. It also depends on what kinds of Ads are displayed on your website. More expensive the Ads are; more money will be paid. But there is a lot of difference between what Google charges and What Google pays. Google mostly pays 5% to 10% of the amount it charges from Google Adwords users. It means if an Ad displayed on your website has a cost per click of $10 than you will get $1. But it rarely happens because most of the Adwords Campaign doesn’t have this kind of budget. Normally what Adsense subscribers get from random Ads is $ 0.05 to $ 0.55.

Payouts are done every month and if the payment threshold is crossed which is set by user. Payment can be wired, or received through PayPal or credit card.

So how can we earn plenty of money from Google Adsense? Traffic Generation! More traffic you have on your website more users are likely to click on Google Ads increasing your monthly payouts.

Happy Learning!