Posts

Showing posts with the label Android

WiFi Characteristics of mobile phones in screen lock mode

Image
I have a Nexus 5 and I was wondering what power strategies/algorithms are used in it to save power when the screen is locked and the display is off. I wanted to have a practical first hand experience of seeing this happening. So I pinged the phone from my computer while it was connected to my WiFi network. I did performed the process twice - once while the phone was active and I was switching between/using apps on it, and the second time when the screen was locked and the display was off. I sent out 100 ping packets and here are the results: Ping during locked screen with display off Ping when the phone was active Summary: When screen was locked and display was off Minimum = 8ms, Maximum = 866ms, Average = 295ms Sporadic replies to ping, although no no packet was lost. Maybe the WiFi receiver was always on but the transmitter was only turned on periodically. A very large variance in the round trip times. When the phone was active Minimum = 3ms, Maximum = 387...

Installing Android on a Virtual Machine running inside Windows using VirtualBox

Operating System: Windows 7 Ultimate 64 bit Download VirtualBox (filename: VirtualBox-4.0.0-69151-Win.exe) from http://www.virtualbox.org/wiki/Downloads Download a ISO image of Android-x86 built for installation on a virtual machine (filename: froyo-vm-20100812) from http://www.android-x86.org/download   Install Virtualbox. Download "VM VirtualBox Extension Pack" (filename:Oracle_VM_VirtualBox_Extension_Pack-4.0.0-69151.vbox-extpack) from http://www.virtualbox.org/wiki/Downloads Install "VM VirtualBox Extension Pack" by double clicking on the file. Start VirtualBox Create a new Virtual Machine named "Android-x86-froyo" for OS "Linux" and Version "Linux 2.6" with RAM as 256 MB and dynamically growing IDE (not SCSI) Harddisk of 2 GB Capacity. Enable both the serial ports (COM1 and COM2) but leave them in "Disconnected" mode. To the above Virtual Machine, attach "froyo-vm-20100812.iso" as CD image to the IDE co...

Setting up toolchain for developing applications for Android on a Windows PC

Image
Operating System: Windows 7 Ultimate 64 bit Download "Java Platform,Standard Edition JDK" (filename: jdk-6u23-windows-i586.exe) from http://www.oracle.com/technetwork/java/javase/downloads/index.html When asked to select the platform, select "Windows" and not "Windows x64" because we want the 32 bit software and not the 64 bit one eventhough our OS is 64 bit. No special installation instruction, just keep clicking next on the installation wizard dialog boxes that pop up. Download "Eclipse IDE for Java Developers" (filename: eclipse-java-helios-SR1-win32.zip) from http://www.eclipse.org/downloads/ Use the 32 bit Eclipse eventhough your OS is 64 bit. Extract the folder "eclipse" from within eclipse-java-helios-SR1-win32.zip to C:\ Rename this "eclipse" folder to "eclipseandroid" in case you want to distinguish it from other installations of eclipse. Run C:\eclipseandroid\eclipse.exe Rename the workspace path...