Setting up Android Emulator on Ubuntu


The following article has been adapted from the original by Çiğdem Avcı. You can find the original (Turkish) article here.

Let’s try Android on Ubuntu! For this, you must have Java environment installed. After we download the Android SDK (http://developer.android.com/sdk/index.html), we unpack the archive with the following command:

tar -xzvf android-sdk_r3-linux.tgz

The archive has been extracted into android-sdk-linux folder. Since the Android tools are under android-sdk-linux/tools, we set the PATH variable to include that folder.

PATH=${PATH}:~/android-sdk-linux/tools
export PATH

To see what’s inside the PATH variable, we type

echo $PATH

We make sure that the path which contains android-sdk-linux/tools is correct. For our experiments, we have created a separate folder named android. We will continue working in this folder. First, we navigate to this folder from the terminal.

cd android

Next, we start producing virtual phones (AVD – Android Virtual Device). Let’s create a virtual SD-Card (Secure Digital Memory Card).

mksdcard 2048M SDCARD

And now, let’s create a virtual phone.

android create avd -n CGDM_PHONE -t 2

Failed. We get an error:
Error: Target id is not valid. Use 'android list targets' to get the target ids.

We do that to see the list.

android list targets

We don’t see any lists. Maybe, we missed to install something. Let’s install if there are any updates or revisions.

android

We can’t connect to the URL shown on the UI. We check the “force https connection” under “Settings”. Under available packages, we start downloads related to android 2.0 which we think might be necessary. After the installation is complete, we try to create our virtual phone again.

android create avd -n CGDM_PHONE -t 2

Android 1.6 is a basic Android platform.
Do you wish to create a custom hardware profile [no]
(We press enter here)

Created AVD 'CGDM_PHONE' based on Android 1.6, with the following hardware config:
hw.lcd.density=160

This time it worked. Now, let’s run the emulator.

emulator @CGDM_PHONE -sdcard SDCARD

Whoa! :) There comes the virtual phone.

Up to this point, we learned to prepare the emulator environment. We’ll learn to use it later.

Happy coding!


Special thanks to my dear friend, Çiğdem Avcı for letting me publish her article here.

Apple loses yet another iPhone prototype at a bar

Yes, sometimes history does repeat itself. Once again, an Apple employee is rumored to have left an unreleased iPhone prototype at a bar, according to a CNET report.

The phone supposedly went missing at the tequila lounge Cava 22 in San Francisco’s Mission District in late July, and it was eventually sold on Craigslist for $200, unidentified sources familiar with the investigation told CNET’s Greg Sandovla and Declan McCullagh.

The news sounds eerily similar to last year’s lost iPhone 4 fiasco, but for some reason the story didn’t find its way to the gadget blogosphere until now. Last year’s prototype iPhone 4 was eventually sold to the gadget blog Gizmodo for $5,000, where it went on to spawn an infamous series of blog posts leaking just about every detail of the device.

That this recent find hasn’t made the same waves may be a sign that it’s not an iPhone 5 prototype. I have a hard time imagining that Apple could let a true iPhone 5 prototype out of its grasp after last year’s fiasco. The company has reportedly taken extreme measures with its next-generation iPhone prototypes, like sending them out to carriers inside of locked and sealed boxes.

Once Apple realized the phone was missing, it enlisted the help of the San Francisco police department. CNET writes:

Apple electronically traced the phone to a two-floor, single-family home in San Francisco’s Bernal Heights neighborhood, according to the source.

When San Francisco police and Apple’s investigators visited the house, they spoke with a man in his twenties who acknowledged being at Cava 22 on the night the device went missing. But he denied knowing anything about the phone. The man gave police permission to search the house, and they found nothing, the source said. Before leaving the house, the Apple employees offered the man money for the phone no questions asked, the source said, adding that the man continued to deny he had knowledge of the phone.

The iPhone 5 is expected to feature a thinner design, bigger screen and other cosmetic changes from the iPhone 4. A true iPhone 5 prototype would likely sport some of those changes, and if the Craigslist seller was familiar with Apple’s smartphone line, he or she would have probably asked for far more than $200 on Craigslist. Most likely, the prototype in question looks like an iPhone 4 (although it may be one of those developer-only iPhone 4s with a dual-core A5 chip).

Retrieved from http://venturebeat.com/2011/08/31/apple-loses-new-iphone/ on September 1, 2011.

Tolga Naber – Cem Yılmaz

Cem Yılmaz’ın ilk sinema filmi olan 1998 yapımı ”Herşey Çok Güzel Olacak”ın unutulmaz sahnelerinden…

Porsche Carrera’sını çaldığı Tolga’ya kafa atan abisi Nuri (Mazhar Alanson) ile hemen ardından Bodrum’a tatile giden Altan, bir dinlenme tesisinde Tolga’nın gazetede hastaneye kaldırıldığını okur. Bunun üzerine içinde endişeli bir ruh hali oluşan Altan birden hayal görür.

ODTÜ Yol Olmasın

Herkesin tatilde olduğu bir dönemde büyükşehir meclis gündemine gelecek olan ODTÜ’nün imar planı ile ilgili “sivil toplum kuruluşlarının” istekleri adı altında bir yağmanın önünü açma girişimi mevcut şu anda. 50 kilometre yarıçapındaki metropoliten Ankara içerisinde Atatürk Orman Çiftliği, Atatürk Kültür Merkezi alanları dışında “yegane saygın alanı” olan ağaçlandırma faaliyetleri ile Ağa Han Ödülü almış ODTÜ’yü çıkarlarına alet etmek isteyenlere, bir eğitim kurumunu daha rant sağlamak amacıyla yok etmeye kalkışanlara karşı herkesi göreve çağırıyoruz. Bir imza da siz atın.

İmza kampanyasını düzenleyen: http://www.facebook.com/odtukampus

Detaylı bilgi için(alıntıdır): http://sehircilik-planlama-ulasim.blogspot.com/2011/07/odtunun-yagmalanmas.html



First Impressions of Mac OS X Lion

Scrolling

The first thing I noticed right after installing it on my computer is that they inverted the scrolling direction with Mac OS X Lion. So, when you scroll up using your touchpad or the scroll wheel on your mouse, you navigate down on a page and vice versa. They imitated the touch-operated interface of iPhone. In my humble opinion, this is a very bad design choice. You might find it very frustrating and difficult to get used to. However, you don’t have to get used to it, as you can switch back to the original settings easily.

NTFS

Lion recognized the NTFS partition on my hard disk and my NTFS-formatted external hard drive, but, unfortunately, there is no write support. I really hope they will fix this issue with an update, because it is kind of annoying to have to use 3rd-party applications to do such an elementary task.

Buttons

They’ve shrunk the three little buttons at the top-left corners of windows. I don’t know why they did this or if there is a way to switch back to the old buttons. They look kind of weird.

Launchpad

I really liked the Launchpad. It makes it very easy to find and run an application quickly. They introduced a touchpad gesture for it, too, but you need 4 fingers -that’s right, four- to perform it. This makes it a little hard, but I like it anyway.

To be continued…

Smiley on the Blog

You may or may not have noticed (probably you haven’t) that there is a tiny smiley at the end of each page on my blog. I was curious when I first noticed it, because I certainly haven’t put it there. After a little digging, I found this info on WordPress support pages. Here’s what it reads:

In order to tell you all the cool stats about how many visitors you’ve had, which of your posts are most popular, and how people get to your site, we need a way to track things.

We’re able to collect this information by loading a small image to your page when someone looks at it.

And we chose a small smiley :)

That’s it. Mystery solved. I wonder who decided to choose a smiley as an image. For example, they could have chosen a 1×1-pixel image which could have been virtually impossible to see. It is cute, after all.

Garfield of the Day


  



Viewed 17761 times