Tuesday, November 23, 2010

Android: Using WebViews

Hi

Following is a short checklist of making webviews work in Android:

1. Ensure you add the permission before the tag in the android.manifest file
2. See my Internet Connectivity on the Android Emulator post earlier
3. Use URIs like http://google.com and NOT www.google.com

This should do it.

Android: ADT Plugin 9.7 versus 9.8

Hi

Many developers have been complaining that they are unable to see the available permissions in ADT plugin for Android development. After exploring a little, I figured that the reason in that people using the Eclipse ADT plugin v9.8 or greater, DO NOT see these permissions as it has been removed. To see a list of the permissions, developers should uninstall the current ADT plugins in download ADT-0.9.7.zip from http://developer.android.com/sdk/adt_download.html and try again.


They should be able to see the drop down in the permissions tab within the android manifest file.

Hope that helps.

Friday, November 19, 2010

Android: AVD Internet

Hi

A very common problem faced by android developers in establishing a connection in the Android Emulator (AVD). The solution is quite straight forward but owing to developer phsche, the answer is never detailed out. So, here goes:

To enable internet connectivity on your AVD, do the following:

1. Make sure your AVD is running before you start this.
2. Go to cmd>run
3. navigate to your tools directory of the sdk. mine is: C:\Users\Pawan\Desktop\android-sdk_r07-windows\android-sdk-windows\tools
4. On the command prompt, you should see:
.../tools>

then type the following (only in bold):
adb.exe shell
# sqlite3 /data/data/com.android.providers.settings/databases/settings.db
sqlite> INSERT INTO system VALUES(99,’http_proxy', 'proxy:port');
sqlite>.exit

'proxy:port' is your PC's IP Address or (127.0.0.1)
so, a sample of 'proxy:port' is 10.12.23.45:80

Good luck

Monday, June 7, 2010

Straight to the point

Hi. Think of this as a simple technology blog outlining solutions to most common problems faced by developers and others in the technology space. Look out for step by step solutions and straight to the point answers. So go ahead and try me. You'll be pleasantly surprised.

So let's cut to the chase - see you on the other side.