Friday, March 2, 2012

Installing Apk on Android Emulator Window and Mac

Below are the Steps to install Apk on Windows Android Emulator.

Open command prompt
Go to Android Sdk folder.C:\android-sdk-windows\tools
In command prompt type adb install apkname.apk

If you don' find adb command then
Download the adb.zip file which contains adb.exe, AdbWinApi.dll and InstallAgent(batch file)
unzip and copy these files to tools directory.

Below are the Steps to install Apk on Mac os Android Emulator.

Open Terminal
go to android-sdk-mac\platform-tools
type ./adb install myApp.apk

If you get any error while installing on Mac just restart the adb.Below are the commands
./adb kill-server
./adb start-server

Note : copy apk to tools and platform-tools directories on windows and mac respectively.

Thursday, September 15, 2011

Height Percentage issue with Google Maps

If you try to use style="width:100%;height:100%" on your map div, you get a map div that has zero height. That's because the div tries to be a percentage of the size of the , but by default the has an indeterminate height.
There are ways to determine the height of the screen and use that number of pixels as the height of the map div, but a simple alternative is to change the so that its height is 100% of the page. We can do this by applying style="height:100%" to both the and the . (We have to do it to both, otherwise the tries to be 100% of the height of the document, and the default for that is an indeterminate height.

The also has a margin by default. If you want to switch that off, add "margin:0" to the style, to push the body right out to the edge of the screen.

Reference : http://econym.org.uk/gmap/basic19.htm

Monday, May 2, 2011

Getting Current URL from UIWebView

To get the current URL string from a UIWebView object.

NSString *currentURL = UIWebViewID.request.URL.absoluteString;

Thursday, December 2, 2010

UIAlertView Text Aligment

Below is the code to left align the text in UIAlertView.

UIAlertView *someAlert = [[UIAlertView alloc] initWithTitle:@”Alert" message:@”Here long Description goes." delegate: self cancelButtonTitle: @"Ok" otherButtonTitles: nil];
[someAlert show];
[someAlert release];
((UILabel*)[[someAlert subviews] objectAtIndex:1]).textAlignment = UITextAlignmentLeft;//left alignment

Thursday, February 4, 2010

DevFest 2010 developer conference in Hyderabad and Pune

Google is excited to announce DevFest 2010 developer conference in Hyderabad and Pune in the month of february and march. This event is focused on sharing latest offerings for Google developer products : App Engine, Maps APIs, Chrome Extensions and Orkut APIs.
More information and to register click here
http://sites.google.com/site/devfest2010/