android-emulator

Android Emulator hang up and impossible to quit

Hi, i've installed the Android plugin on Eclipse 3.6 in a regular way (aka i followed step by step the google installation page). When i launch any sample application, everything work fine, but if i try to quit the emulator (by clicking the exit cross button of the emulator), the emulator seems to hang completly. What is very bothering ...

How to download file on android emulator ?

Hi, by using web services we are able to download file from cloud to buffer storage. We need to now access this downloaded file from buffer memory and move it to SD card. I am using Eclipse and Android plug in. Can someone share any code ? My code snippet is below. String filename = "Test.zip"; URL url = new URL(FromUrl)...

permissions for an application

I tried making an IPC application.I enforced a permission for my application using "permission" tag in manifest and did not grant a permission to client application(did not use uses-permission in manifest)even though my application works fine.Will u please tell me can we really enforce permissions on emulator. ...

Sensor simulator on 2.1

Hello, I have a specific problem. I need to make openintents sensor simulator work on 2.1 emulator. Does anyone has an advice on how to pass around deprecated code and make it work on emulator 2.1. Ty in advance for any help or advice you might have. ...

Program adding contacts on the emulator does not add contacts on the HTC Desire

Hello, I want to write a program to automatically generate the contacts. I also use a special service to add account on emulator. The same account is used on the telephone. Below is my code: ContentValues values = new ContentValues(); values.put(RawContacts.ACCOUNT_TYPE, "localhost"); values.put(RawContacts.ACCOUNT_NAME, "PC Sync"); U...

Axis API in Android

Hi!!! I'd like to implement a Client Android of a web-service. How Web-Server, I use Tomcat, and how Web-Application I use Axis.To invoke a web-service, I need Axis Library. When I run my Client on Android emulator, the application is closed and in the LogCat there is following error: tag dalvikvm Message Could not find class 'org.a...

how to set anchor tag mailto: attribute in webview, android

Hi, I tried to set anchor tag mailto attribute like <a href='mailto:[email protected]'>[email protected]</a> in webview. when i run the app on simulator and click on the link it is showing "Unsupported Action .." How i can set mailto attribute work out in android webview.... Thanks ...

TextView Color does not change on Click

Hi, I have a TextView .I am using it like a link by using t2.setMovementMethod(LinkMovementMethod.getInstance()) for this textview in .java files so that it blinks when I clicks, but I want the color of textview to be changed when clicked. I used t2.setLinkTextColor(0xff0000), but doesnot work. my code is as follows: public class TextHy...

Name not found exception at PackageManager.GET_CONFIGURATIONS

Hi, Im trying to display versionname using below code PackageManager pkm = getPackageManager(); PackageInfo pki = pkm.getPackageInfo("com.example",PackageManager.GET_CONFIGURATIONS); String tempCurrentVersion = pki.versionName; Bt im getting exception at PackageManager.GET_CONFIGURATIONS as Name not found exception Please tell me how...

Android Emulator running revision 7 and Safari javascript enabled

Hello Wondering how to update settings on Mobile Safari of Android emulator to allow javascript. Manage applications on the emulator only shows the apps I have actually installed on the emulator. Thanks ...

Why can't we send a UDP packet from an Android emulator?

My friend and I have a wireless robot dog connected to a wifi network which our computer is plugged into. The computer is running an Android emulator and we are trying to send a UDP packet to the wireless robot dog. If the dog receives it, it should start sending UDP packets back. The program we wrote works outside of the emulator, and u...

streaming image from url, android

I need to load, and update image from URL. Using AsyncTask, Iam able to load image from URL bt i need to reload image from url for every 10 secs. Please help me how i can solve this issue. Thanks in advance ...

Unbearably slow android emulator -- is there a fix?

I know that the topic was discussed here last year, but I am hoping that someone has since found a fix. The emulator is simply not working for me anymore. It took 15 minutes or so to load hello world a few days ago, and now i cant get it to load a simple MapsDemo from the api samples no matter how long I wait. Im using eclipse with ...

Android ServerSocket ports, connection timeout problem

Hello, I am playing around a bit with peer-to-peer communication with android devices. I have written a basic program that creates a listening ServerSocket on each phone using the application. Using the application you can also connect to other devices that is listening, by connecting to the remote ServerSocket. Nothing strange about t...

Streaming image from url continuously

Im displaying image from URL. I implemented using a thread to retrieve data from URL for every 10 secs. Some times my application showing a message Application Not Responding dialog. When i google for the issue i found that we can use AysncTask for loading image. Using Async Task im able to get the image, bt what i need is retrieve d...

seekbar thumb position change when user press device volume keys

Im using seek bar to control volume of the device. Im able to change the volume of the device using thumb of the seek bar just by dragging it on touch pad. But when user presses volume(side) keys i need to set seek bar thumb position accordingly. Hw i can do this please let me know Thanks ...

Android app works on WiFi, in debug mode, or on emulator, not on cell network

I have an android application that parses some HTML, downloads an image, and displays it. I'm using an AsyncTask to do the HTML parsing and image downloading, but that shouldn't be relevant. I never have a problem when I'm on WiFi on my phone, when I'm using the Eclipse debugger on my phone, or when I'm using the emulator. When I have my...

import android .net.http package can't be resolved in android

hi all, how to download jar files for rectifying the package importing problems in android.i cant find jars downloading site for android. please help me renu ...

Best way to create a Web Service ON Android

Hi! I want to implement a Web Service on Android.. I want to use my device as server. After doing some research on the internet, I found several options: SerDroid (small web server for the Android platform) i-Jetty (open-source web container to run on the Android mobile device platform) KWS (lightweight and fast web server especially ...

Java crashcourse

Possible Duplicates: Learning Java? Best Java book you have read so far I wanna learn to program in Java so i can program for Android and iPhone. so is there a book or something where i can learn the basic very fast. I have a programming background in PHP, MySQL etc ...