Android :: Specify Arguments When Starting Android Emulator In Eclipse To Wipe Data
Jul 31, 2010
I have read that in order to clear data stored in the Android emulator I should start the emulator with the "-wipe-data" arguments. However, I can't see how to specify startup arguments. I have read that it should be possible to specify these in the "Target" tab of the Debug Configurations dialog. However, if I open Debug Configurations from the Eclipse Run menu all I see in the Target tab are radio buttons for "Manual" or "Automatic" Deployment Target Selection Mode, buttons for "Refresh" and "Manager..." and drop-down boxes for "Network Speed" and "Network Latency" options. There are buttons for "Details..." and "Start..." but these are grey. I can't see anywhere where I can enter a "-wipe-data" option. The Run Configurations dialog seems to be identical. (I am using Eclipse SDK 3.5.2)
View 1 Replies
Feb 12, 2010
Is it possible to tell Eclipse to use some extra arguments for aapt (-0 in specific)?I have been looking for past couple of hours and the best hack I came up with was to create a wrapper for the aapt tool to inject the argument to the command line. The trouble with this approach is that whenever I should lose that wrapper, then I'll be quietly introducing a bug into my application.
View 1 Replies
View Related
Jan 30, 2009
After generating ADT 0.9, using Cupcake SDk, i need to specify a sdcard to emulator, in eclipse. In ADT 0.8 there is a field in Run Configuration, but in ADT 0.9 no. How can i do that?
View 2 Replies
View Related
Jul 6, 2010
In my application, how do I disable the transition animation that shows the new activity layout enter from the right and the old one exit to left? Versions 2.0 -> 2.2 if relevant.
View 2 Replies
View Related
Apr 8, 2009
Is there a way to reload an Android application in the emulator without closing the emulator, saving any code changes, and running the emulator again? If I make even a simple change to the layout, it takes about 30 seconds by time I run it in Eclipse and Android "boots", and I can unlock the emulator to run the application. Is there any way to shorten this time when making changes, or is it something I just have to deal with?
View 3 Replies
View Related
Mar 17, 2009
I am running Eclipse on XP. The Emulator was running correctly but all of sudden today it hang up. I closed Eclipse, rebooted the XP, now when I invoke eclipse, it displays a ddms alert box with the message:
"Failed to initialize monitor thread: Unable to establish loopback connection"
and eclipe prints in its console: [2009-03-17 18:41:46 - DeviceMonitor]Connection attempts: 61
I can start the emulator manually but it's not linked to eclipse and eclipse still gives the same errors.
Why did it stop running and how do I fix it?
View 3 Replies
View Related
Feb 9, 2010
I am using Eclipse to develop both C and Java. I have an Android phone, and when I connect it to my PC, Eclipse (?) automatically starts adb, even though all the Android projects are closed. Is there a way to prevent this happening?I want to tether my phone using pda-net to my PC, to use as a modem. pda-net cannot connect if another adb process is running.
View 1 Replies
View Related
Aug 11, 2010
When developing on BlackBerry or iOS, you can deploy your application just by dropping the compiled code into a special directory, and when the simulator boots up it will check that directory and install any apps that it finds there. Is this possible for Android? The reason this feature is desirable is because my build system deploys builds nightly. I want the emulator ready to go when my QA team gets in the next morning. To do that, I have to write a script that boots up the emulator, waits for it to start up, then calls adb install and finally shuts down the emulator. It would be great if I could just drop the .apk in a directory and have it ready to go the next time QA boots up the emulator.
View 2 Replies
View Related
Jul 15, 2009
Android SDK startup takes more than 2 minutes. is there a way to start the emulator faster with any special parameters.
View 3 Replies
View Related
Apr 13, 2010
Finally strace gave me this:
CODE:................
And several other attempts to call "link" that also fail (sshfs does not support hard links).
Is it possible to change the emulator's behavior to create lock files somewhere in /tmp (using some hash of image path as lock file name)? I am OK to try this myself: which repositories from https://android.git.kernel.org/ are necessary to rebuild the emulator alone, and where in the sources is the code responsible for image locks?
View 4 Replies
View Related
Apr 20, 2009
I need to run several emulator instances to test my application. When i try to run instances using emulator -data <path> option, the emulator crashes.
I got a MS Visual Studio window informing that emulator throws a "unhandled win32 exception".
The exception message in the debugger (MS Visual Studio 2008) is: "Unhandled exception at 0x77c4706c in emulator.exe: 0xC0000005: Access violation reading location 0x03216848"
The emulator runs normally without "-data" option.
View 2 Replies
View Related
Nov 1, 2010
I am getting the following error when I try running my program in the emulator:
emulator: ERROR: the user data image is used by another emulator. aborting`
View 1 Replies
View Related
Feb 4, 2009
I'm developing an application which downloads a file from FTP server. The code first checks if file is present on local system . If it is not present on local system then it downloads it from FTP server. Application must download file from FTP server when it executes first time after getting installed.
If we reinstall the application , android preserves the data of old application .So now application finds the file on local system and does not download it from FTP server. But it should always download the file on first execution after fresh install. Is there any way to completely wipe out the previous application data on fresh install? Is there any registry or some location where an application can store data and it gets automatically wiped out when application is uninstalled?
View 5 Replies
View Related
Oct 10, 2010
Is there a difference between the CMW wipe data function compared to the about phone => privacy => factory reset option? I'm running android 2.1 on a Fascinate. Thanks for any responses!
View 1 Replies
View Related
May 4, 2013
What actually android wipedata/reset means ?. Is there any problem if i select wipe data factory reset...? if i select this option, is there any chance of losing my internal memory datas like messages, contacts, etc ?
View 5 Replies
View Related
Jul 19, 2010
when ever I'm running little program that I write on the emulator I'm getting: "Hello android, program_name" for example: I'm writing a little program could udp_client and I'm getting: "Hello android, udp_client" can someone tell me if this is the way it should be?
View 2 Replies
View Related
Jun 20, 2010
In Eclipse, I have set my project's target build to 2.0.1 (right click on project folder -> Properties -> Android). In my AVD manager I have a number of emulators - one for 1.5, one for 1.6 and one for 2.0.1. How do I tell Eclipse to run the project (built to 2.0.1) on the 1.5 emulator? The "Run configurations" menu gives me only the 2.0.1 emulator...
View 1 Replies
View Related
May 21, 2010
I have issue with running apps in emulator from Eclipse. I was using tutorials from http://developer.android.com: http://developer.android.com/guide/tutorials/hello-world.html http://developer.android.com/resources/tutorials/hello-world.html
Also, i tried running sample projects delivered with SDK. Whenever i run project, emulator loads but my project is not installed. And when emulator loads, nothing happens. I was searching on web a bit, and i figured that if i restart 'server' it continues to install my app:
android-sdk ools>adb kill-server - D:...android-sdk ools>adb start-server - * daemon not running. starting it now * - * daemon started successfully *
Log:
New emulator found: emulator-5554 - Waiting for HOME ('android.process.acore') to be launched.
You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To un subscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?
View 2 Replies
View Related
Feb 9, 2010
I set up Eclipse as directed on the android development site, and ran the emulator after building one of the sample apps. The emulator comes up and just displays some text and doesn't function after that. The program doesn't even seem to run. I am following the steps on the site exactly (or at least I think I am), but no matter what program I try to run on the Emulator it never seems to function (just displaying that same message).
View 5 Replies
View Related
May 20, 2010
Just allowed eclipse to uprade the emulator. Re-booted (eclipse and the PC) and now I get this error whenever I try to run any android configuration. Error Thu May 20 15:32:45 PDT 2010 Problems occurred when invoking code from plug-in: "org.eclipse.jface".
View 3 Replies
View Related
Nov 25, 2009
I was playing around with the Motorola MotoDev IDE, which is kind of a jazzier front-end to Eclipse, and it asks you on startup if you want the Android emulator to show up in an IDE window. I said yes. That makes the emulator show up in an Eclipse tab, like the Console, Outline, etc. After a while it became apparent that MotoDev wasn't sufficiently different than Eclipse to make it worth the install. So I got rid of it. This is on Mac OS X with Snow Leopard. Now when I start Eclipse and run any Android project, even Hello world, the Console shows the emulator installing and the APK installing, and the Intent starting. But no emulator window. I found a setting in Eclipse->Preferences->Android->Launch Settings that said -no-window for the emulator. MotoDev must have set that. That had to be it. I got rid of it and still no Emulator. So I got rid of Eclipse, the SDK, everything and did a full fresh install of everything. Still no emulator window. I can start the emulator with an AVD from the command line fine and I see it. But from Eclipse, nada.
View 2 Replies
View Related
Sep 30, 2010
I accepted that it was bug in Helios but I now find that I'm now getting the same error under Eclipse 3.5
When I send a location from the DDMS perspective using the emulator control tab. I have a standard listener:
onLocationChanged(Location location){...}
If I break on the first line of this, having sent the lat/lon pair of 53.5/-3.0 from the DDMS tab, then the mLatitude/mLongitude in the location argument have changed to 53.508833/-3.005000 (6 dec places only shown).
The Android SDK is 2.2 in both and the target is Google APIs level 7. Does anybody else experience this or could offer a possible explanation? (It amounts to quite a big error in terms of metres on the map.)
View 1 Replies
View Related
Aug 26, 2010
I just installed the whole shebang in order to develop android apps in Eclipse (I'm running 64-bit gentoo). Everything seems to go fine, and I created the dev group's hello-world example:
package com.nfshost.flyingmonkey.android;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class HelloAndroid extends Activity {
/** Called when the activity is first created. */
@Override.................................
View 2 Replies
View Related
Oct 30, 2010
How to run the emulator within eclipse without using ADT. All I want to do is run the emulator with -partition-size option of the emulator and you cant do this by default. Im sure there might be a tricky way of doing this but googling doesn't give me any clues. does any one know ? I also thought about running the emulator as part of a script and call the script within eclipse.
View 1 Replies
View Related
Sep 16, 2010
I recently started learning Android, and have set up the development environment. I've created a HelloWorld like application. Basically I did nothing then create a project, and change the default display string. When I try to run the application on the emulator, it does not install the application on the Emulator.This is my Eclipse Console output:
[2010-09-16 12:06:01 - DroidTest] Android Launch! [2010-09-16 12:06:01 - DroidTest] adb is running normally. [2010-09-16 12:06:01 - DroidTest] Performing com.example.DroidTestActivity activity launch [2010-09-16 12:06:01 - DroidTest] Automatic Target Mode: Preferred AVD 'VanillaAVD' is not available. Launching new emulator. [2010-09-16 12:06:01 - DroidTest] Launching a new emulator with Virtual Device 'VanillaAVD'
Ironically, doing the exact same thing on a other computer, does result in the application being installed and runned successfully.I've tried many things to fix this problem: - Fresh Eclipse install - Android SDK re-install - Project recreation - AVD re-creation - Changed Eclipse workspace - the kill-sever command line command.Getting quite desperate here, after having tried for two days, so hope someone has a clear solution for this.
View 4 Replies
View Related
Feb 19, 2009
I have a newbie question which is puzzling me regarding using Intents to start a new Activity but passing some data with the Intent for the new Activity to use. My app has (say) MainActivity from which I want to launch a second activity, SecondActivity, within the same app, whilst I pass an integer parameter to SecondActivity. Now my problem is : how do I receive the Intent when SecondActivity gets started and recover the value of the integer parameter ? Which member function of.
View 3 Replies
View Related
Oct 10, 2009
When launching my app from within Eclipse, sometimes the running emulator is found and displayed in the launch dialog, sometimes it isn't?! Killing adb, the emulator and Eclipse usually helps until it happens again. Any idea why this is? I see this behavior since the launch of Android. I am running on Mac OS X. And it happened on Leopard as well as Snow Leopard.
View 9 Replies
View Related
Oct 3, 2009
I've got an AVD setup with an SD card, but I wanted to specify a different SD card image by setting a -sdcard option in Eclipse under Preferences -> Android -> Launch (I fill in "-sdcard C:sdcards sdcard96M.img" without the double quotes). But it seems no matter what I do, I always get the SD card that was created with the AVD. From the command line, the following works: emulator -avd myAVD -sdcard C:sdcardssdcard96M.img Do I need to use the command line instead of Eclipse to run this way?
View 2 Replies
View Related
Jan 14, 2010
I need to take screen shots of an android application running on an emulator in Eclipse Galileo. Is there a built in feature for this or do I have to download a plugin of some sorts?
View 3 Replies
View Related
Jan 26, 2010
I am not sure what's happening but whenever I try to run the project, I get the following in the console:
[2010-01-26 22:13:37 - TestProject1.0]
[2010-01-26 22:13:37 - TestProject1.0] Android Launch!
[2010-01-26 22:13:37 - TestProject1.0] adb is running normally.
[2010-01-26 22:13:37 - TestProject1.0] Performing com.testproject. Home activity launch
[2010-01-26 22:13:39 - TestProject1.0] Application already deployed. No need to reinstall.
[2010-01-26 22:13:39 - TestProject1.0] Starting activity com.greekrow. Home on device
[2010-01-26 22:13:40 - TestProject1.0] ActivityManager: Starting:
Intent { cmp=com.testproject/.Home }
[2010-01-26 22:13:40 - TestProject1.0] ActivityManager: Warning: Activity not started, its current task has been brought to the front.
View 3 Replies
View Related