Translate

Tuesday, May 24, 2011

How to enable internet access from Android emulator using proxy?

I was able to access internet in the past from Android 2.2 emulator but suddenly it stopped working. Problem was, I was behind firewall and I had to access internet using proxy server. I searched for solution and I found following command which worked for me.

Steps:
  1. Go to "<android-sdk-home>" directory and go to tools folder from command prompt.
  2. Type command: emulator -avd -verbose -http-proxy http://host-id:port
Above specified command will start virtual emulator, then I was able to access internet from Android browser.

If you are trying to access internet from any app, make sure you have set following internet access permission in your AndroidManifest.xml:
 <android:name="android.permission.INTERNET" /> 

Wednesday, May 11, 2011

Android 3.1 has Android Open Accessory Development Kit Support

The Android 3.1 platform (also backported to Android 2.3.4) introduces Android Open Accessory Development Kit support, which allows external USB hardware to interact with an Android-powered device in a special "accessory" mode. When an Android-powered powered device is in accessory mode, the connected accessory acts as the USB host and the Android-powered device acts as the device.

Android USB accessories are specifically designed to attach to Android-powered devices and adhere to a simple Android accessory protocol that allows them to detect Android-powered devices that support accessory mode.

Android Open Accessory support overcomes this limitation and allows you to build accessories that can interact with an assortment of Android-powered devices by allowing the accessory initiate the connection.

For more information, visit link: http://developer.android.com/guide/topics/usb/adk.html

Android 3.1 Released

A new flavor of Android is now available at large, namely Android 3.1 Honeycomb, already rolling-out on Motorola XOOM devices as an incremental release.
Link: http://news.softpedia.com/news/Android-3-1-Released-Available-Now-for-Motorola-XOOM-199608.shtml

Android 3.1 Platform Highlights: http://developer.android.com/sdk/android-3.1-highlights.html

The New Features of Android 3.1 and Ice Cream Sandwich: http://lifehacker.com/5800417/the-new-features-of-android-31-ice-cream-sandwich

Android Marketplace coming to Google TV soon: http://androinica.com/2011/03/android-marketplace-coming-to-google-tv-soon-what-apps-would-you-want/

Stay tuned for more updates.

Monday, May 9, 2011

Run Linux Kernel on CUDA based GPU

KGPU is a GPU computing framework for the Linux kernel. It allows the Linux kernel to directly execute CUDA programs running on GPUs.

The current KGPU release includes a demo task with GPU augmentation: a GPU AES cipher based eCryptfs, which is an encrypted file system on Linux. The read /write bandwidths are expected to be accelerated by a factor of 1.7 ~ 2.5 on an NVIDIA GeForce GTX 480 GPU.

For more information: http://gpgpu.org/2011/05/04/kgpu-gpu-computing-in-linux-kernel

The source code can be obtained from https://github.com/wbsun/kgpu, and news and release information can be found at http://code.google.com/p/kgpu/.

Thursday, May 5, 2011

Getting started with JCrasher - An automatic robustness tester for Java

JCrasher is an automatic robustness testing tool for Java code. JCrasher attempts to detect bugs by causing the program under test to "crash"--to throw an undeclared runtime exception. Although it has the advantage of being completely automatic: no supervision is required except for online inspection of the test cases that have caused a crash. Compared to other similar commercial and research tools, JCrasher offers several novelties:
  • JCrasher transitively analyzes methods, determines the size of each tested method's parameter-space and selects parameter combinations and therefore test cases at random, taking into account the time allocated for testing
  • JCrasher defines heuristics for determining whether a Java exception should be considered a program bug or the JCrasher supplied inputs have violated the code's preconditions
  • JCrasher includes support for efficiently undoing all the state changes introduced by previous tests
  • JCrasher produces test files for JUnit--a popular Java testing tool
  • JCrasher can be integrated in the Eclipse IDE.
For more information, visit the link: http://ranger.uta.edu/~csallner/jcrasher/index.html

There is a paper written on JCracher which can be found at location: http://www.cs.umass.edu/~yannis/jcrasher.pdf

Download location: Download JCrasher.

I am also learning how to use it. Once, I have created few good samples, I will update the post.

Wednesday, May 4, 2011

Why do you get Error in opening servicehost. System.ServiceModel.AddressAccessDeniedException?

Error in opening servicehost. System.ServiceModel.AddressAccessDeniedException: HTTP could not register URL http://+:MyUri/ . Your process does not have access rights to this namespace. Net.HttpListenerException: Access is denied

I was using Windows 7 (64 bit), Open command prompt with admin privileges and execute following command that fixed the issue for me:
netsh http add urlacl url=http://+:80/MyUri user=DOMAIN\user

For more information look at the link: http://msdn.microsoft.com/en-us/library/ms733768.aspx