[Q] Creating/Running AVD through Eclipse with networked user profile - Android Software Development

Our user profiles are stored on a networked share (\\shared-server\clientdata$\username). When I create an AVD through the SDK and AVD manager everything seems to appear to work correctly.
When I try to start it I get the following errors:
emulator: ERROR: unknown virtual device name: 'test_avd' emulator: could not find virtual device named 'test_avd'
I am assuming this has something to do with our user profile being on the network.
If I copy \\shared-server\clientdata$\username\.android to c:\Users\username\.android, after creating the AVD I can then start it up.
Is there an easier solution to this?

Related

Android SDK 1.5 emulator trouble in windows

hi i m new to xda and to android i m not tech savy
i install sdk 1.5 i try ddms it works good what when i try to lanch emulator nothing happnes and i try by going in command promt im getting this error can any one help me out in this
C:\Documents and Settings\jass>emulator
emulator: ERROR: You did not provide the name of an Android Virtual Device
with the '-avd <name>' option. Read -help-avd for more information.
If you *really* want to *NOT* run an AVD, consider using '-data <file>'
to specify a data partition image file (I hope you know what you're doing).
Emulator in 1.5 sdk requires you to create virtual devices. Type:
android create avd -n <name> -t 2
Enter n when it asks y/n
Then
emulator -avd <name>
Pick whatever name you like in place of <name>
All this is described in the sdk documentation. Remember, reading is fundamental!
i m getting this
C:\Documents and Settings\jass>android create avd -n <name> -t 2
The system cannot find the file specified.
C:\Documents and Settings\jass>android create avd -n <karan> -t 2
The system cannot find the file specified.
C:\Documents and Settings\jass>android create avd -n <name> -t 1
The system cannot find the file specified.
C:\Documents and Settings\jass>
you have to replace "<name>" with an actual name like foo or bar or anything you like (otherwise the shell will interpret < and > as scream redirection)
for more information run "emulator -help-virtual-device"
thanks guys!!!!!!! its working now !!!! wow!!!!!!!!
Another help needed
Hi @ll,
thanks for the last posts
My SDK is now running. but i have another question. is ther a way to download software from the market ? How can i do this with the emulator from the sdk.
I need to check out a email aplikation which communicte with exchange. But i dont have a g1. So i will try to do this with the sdk emulator.
is there a way ?
On emulator isn`t a application called market.
Can anyone help me ?
IS java installation is mondatory for installing AVD on Emulator
Dear Jashu,
IS java installation is mondatory for installing AVD on Emulator?
Anticipating u r earliest reply.
Regards
Chandrakala
jashsu said:
Emulator in 1.5 sdk requires you to create virtual devices. Type:
android create avd -n <name> -t 2
Enter n when it asks y/n
Then
emulator -avd <name>
Pick whatever name you like in place of <name>
All this is described in the sdk documentation. Remember, reading is fundamental!
Click to expand...
Click to collapse
karan09 said:
hi i m new to xda and to android i m not tech savy
i install sdk 1.5 i try ddms it works good what when i try to lanch emulator nothing happnes and i try by going in command promt im getting this error can any one help me out in this
C:\Documents and Settings\jass>emulator
emulator: ERROR: You did not provide the name of an Android Virtual Device
with the '-avd <name>' option. Read -help-avd for more information.
If you *really* want to *NOT* run an AVD, consider using '-data <file>'
to specify a data partition image file (I hope you know what you're doing).
Click to expand...
Click to collapse
HI KAran,
Please let me know the procedure for AVD installation on emulator.... I got struked at creating the AVD, It was asking for Java.
I had given this command
C:\<Doc..............\chandrakala>andriod create avd -n chandrakala -t 2
'java' is not recognised as an internal or an external command, operable program or batch file.
Please let me know is it mondatory to install jdk-6u10-windows-i586-p.exe.
Regards
Chandrakala
HI,
Please let me know the procedure for AVD installation on emulator.... I got struked at creating the AVD, It was asking for Java.
I had given this command
C:\<Doc..............\chandrakala>andriod create avd -n chandrakala -t 2
'java' is not recognised as an internal or an external command, operable program or batch file.
Please let me know is it mondatory to install jdk-6u10-windows-i586-p.exe.
Regards
Chandrakala
please refer to thread: http://forum.xda-developers.com/showthread.php?t=525930
this will explain how to get market / google apps working in the emulator
including creating / loading an AVD based on a current rom
If you have questions, make sure you read the eitire thread, then ask away.
also please refer to http://forum.xda-developers.com/search.php?f=446 in the future
Please let me know the procedure for AVD installation on emulator
chandrakala said:
HI,
Please let me know the procedure for AVD installation on emulator.... I got struked at creating the AVD, It was asking for Java.
I had given this command
C:\<Doc..............\chandrakala>andriod create avd -n chandrakala -t 2
'java' is not recognised as an internal or an external command, operable program or batch file.
Please let me know is it mondatory to install jdk-6u10-windows-i586-p.exe.
Regards
Chandrakala
Click to expand...
Click to collapse
ok try this web he explain step by step but first update your java
http://www.hometutorials.com/google-android.html there will be a old video this is just example he is showing to to install sdk 1 not 1.5
try like this
C:\Documents.......\chandrakala>android create avd -n chandrakala -t 2
hit enter when it ask you "Do you wish to create a custom hardware profile [no]"
and i did it on my sdk
C:\Documents and Settings\Jesse>android create avd -n chandrakala -t 2
Android 1.5 is a basic Android platform.
Do you wish to create a custom hardware profile [no]
Created AVD 'chandrakala' based on Android 1.5
when you want to start emulator enter comand like this :
C:\Documents and Settings\Jesse>emulator -avd chandrakala
it will first say this below . then emulator will start
emulator: emulator window was out of view and was recentred
Boost the android emulator speed
Hi guys decide to show you how to run emulator without avd.
Ever since I downloaded the Android SDK I rarely use the AVD to run the Image.
I Just use the emulator with c++.
I noticed there are several emulators in the SDK which are:-
emulator-arm.exe
emulator.exe
emulator-x86.exe
They all use QEMU 0.10
To use the ARM IMAGES I use the code to launch the emulator with the specified skin, processor, and many other commands which are availble.
Be carefull with the commands especially the skins since they can cause it to be resented by the emulator.
To get the C++ source codes USE THE FOLLOWING link gist://gist.github.com/2894413.git
paste the link in your browser and replace the gist since I am a new member
note you can add more parameters e.g
-icount 4
which specifys the number of instruction per clock tick
compile with c++
Note any programming language would do even using the commandline would work.
I have attached copies of the source
If this has been helpfull reply to the thread!
Good luck!

Cannot figure out how to use emulator in SDK

I'm not super good with any linux code and I haven't used the cmd prompt a whole lot since I was about 12 years old to play hangman in dos. It took me a long time to get the SDK to even recognize my phone. Used sdparted in sdk to switch from ext3 to ext4. That is about all I know how to do from the AndroidSDK/tools prompt.
Here's what I want to do. I don't mind typing on my phone whoever it is much easier to type on my computer. I want to enter a lot of information into an application I have on my phone, but using my keypad on the phone itself would be really tedious. I'm not sure if running the emulator from the SDK is what I want to use. I tried to get it working and have failed.
I tried typing in "avd devices" (Try to do my own research before posting) this gave me some error about: "java is not recognized as an internal or external command, operable program or batch file."
I'm not really trying to write my own apps. I don't think I'm smart enough. I just want to make entering data onto my phone a bunch easier.
O and I'm rooted using Cyanogen's newest ROM
Strange.
cd to your SDK tools folder.
Then you can create an AVD.
You can do this with the following command:
android create avd -n [ENTER A NAME]
Then you can run it by this command: emulator @[GIVEN NAME]
This will make a AVD the following directory:
C:\Documents and Settings\YOUR USERNAME\.android
Tried like you said. Same error message. Something about Java. Didn't even get past the first part. Sucks because everytime I do this it's a freaking hastle!
C:\Users\Harry>cd/
C:\>cd androidsdk/tools
C:\AndroidSDK\tools>android create avd -n mytouch
'java' is not recognized as an internal or external command,
operable program or batch file.
SWT folder '' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo
rm.
C:\AndroidSDK\tools>
have you installed JDK?; http://java.sun.com/javase/downloads/index.jsp
Something wrong with Java.
Alright so in the past hour I've learned a lot. I uninstalled Java and reinstalled it. This allowed me to type in "android list targets". And everything worked. You're right Strange...
So I typed in this: android create avd -n my_android1.6 -t 2 (I'm reading all this right from the Android Developers site)
Everything worked then at AndroidSDK/tools I typed this: emulator -avd my_android1.6 -t 2
Opened the Emulator however this looks like a stock version of Android not my phone. All very cool and I feel somewhat better, but this still doesn't help me type any information into applications that are actually on my phone? Thanks for your help on this I'm trying not to be dumb. Hopefully you know what to do or what I messed up. Is it something about creating the AVD that I did wrong?
Like I said I'm running Cyanogen 4.2.5 and all my apps are on my SD Card not sure if this has anything to do with emulator or if I'm even getting any closer to a solution.
Android ScreenCast!
This is what I want to do right here! http://forum.xda-developers.com/showthread.php?t=557717
This is the solution, but it's not responding to any of my mouse inputs or keystrokes. Any ideas? This would be the best thing ever if I could get it to work. It looks like my phone exactly when I run the program, but nothing works.

Handling squlite3 databases on a a AVD?

Hi,
i am very new to Android development and my app needs to manage a sqlite3 DB. I have a few very basic questions, for which i could not find an answer in the Android dev guide. I use Eclipse with ADT Plugin 0.95 and an AVD for testing on a Wondows machine.
- With reference to "Examining sqlite3 Databases from a Remote Shell" in Developing->Tools, is adb the only option i have to launch a remote shell to handle databases? How do i do it from Eclipse?
- Is there a tool i can use to created sqlite3 databases that i can then load on my AVD or device?
Many thanks in advance,
x70
The dev docs you mention are referring to inspecting the databases on the device which is useful for debugging, you can't do this via Eclipse, only via command prompt or terminal. To handle a database in code, either extend SQLiteOpenHelper or create a custom class that interacts with your DB via Context#createOrOpenDatabase.

[How To] SetUp The EnvironMental Variable for Decompiling apps

TECHNICAL INFORMATION
The PATH is the system variable that your operating system uses to locate needed executables from the command line or Terminal window.
The PATH system variable can be set using System Utility in control panel on Windows, or in your shell's startup file on Linux and Solaris.
SOLUTION
Here PATH represents the bin path of installed version of Java that contains classes. (e.g. C:/jdk1.6.0/bin)
Setting Path on Windows
Windows 7
1. Select Computer from the Start menu
2. Choose System Properties from the context menu
3. Click Advanced system settings > Advanced tab
4. Click on Environment Variables, under System Variables, find PATH, and click on it.
5. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH,
you may select to add a new variable and add PATH as the name and the location of the class as the value.
6. Reopen Command prompt window, and run your java code.
Windows XP
1. Start -> Control Panel -> System -> Advanced
2. Click on Environment Variables, under System Variables, find PATH, and click on it.
3. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH,
you may select to add a new variable and add PATH as the name and the location of the class as the value.
4. Close the window.
5. Reopen Command prompt window, and run your java code.
Windows Vista
1. Right click My Computer icon
2. Choose Properties from the context menu
3. Click Advanced tab (Advanced system settings link in Vista)
4. In the Edit windows, modify PATH by adding the location of the class to the value for PATH. If you do not have the item PATH, you may
select to add a new variable and add PATH as the name and the location of the class as the value.
5. Reopen Command prompt window, and run your java code.
Setting Path on Solaris and Linux
To find out if the java executable is in your PATH, execute:
% java -version
This will print the version of the java executable, if it can find it. If you get error java: Command not found. Then path is not properly set.
To find out which java executable the first one found in your PATH, execute:
% which java
Below are the steps to set the PATH permanently,
Giving instructions for two most popular Shells on Linux and Solaris.
For bash Shell:
Edit the startup file (~/ .bashrc)
Modify PATH variable:
PATH="$PATH":/usr/local/jdk1.6.0/bin
export PATH
Save and close the file
Open new Terminal window
Verify the PATH is set properly
% java -version
For C Shell (csh):
Edit startup file (~/ .cshrc)
Set Path
set path="$PATH":/usr/local/jdk1.6.0/bin
Save and Close the file
Open new Terminal window
Verify the PATH is set properly
% java -version
No need To thanks mee for this guide,Coz I have just copy/pasted a comment by KartzXDAin one of my guide
If possible thanks him.........
Reserved
Reserved !!!!!!! :fingers-crossed:
Thankx a lot dude
can we add multiple instants of java paths ?
i have 2 java folders
jre1.6.0_31\bin
And
jre1.6.0_25\bin

[Q] Unable to start the emulator

Hi,
I'd like to develop for Android using Qt5. I installed the SDK and the NDK, set the AVD up and tried to launch the Emulator.
If launching the x86_64 machine, the emulator's display is blank (there's only skin).
If launching the x86 machine, I only have the android logo blinking without any progress.
Command line gives the log
Code:
$ ./emulator -avd Androidx86
emulator: WARNING: Host CPU is missing the following feature(s) required for x86 emulation: SSSE3
Hardware-accelerated emulation may not work properly!
emulator: ERROR: _factory_client_recv: Unknown camera factory query name in 'listZ'
emulator: ERROR: _factory_client_recv: Unknown camera factory query name in ''
Killed
The camera is disabled, though. The emulator fails to work no matter if there's snapshotting enabled or not, the same for the "Host GPU" option.
Why does it refuse to work? I'm using Linux Mint 17 with MATE.
check if you setup the right path to the SDK
mlabouardy said:
check if you setup the right path to the SDK
Click to expand...
Click to collapse
I didn't set the path at all. I simply `cd`-ed to the sdk directory and ran the emulator
marmistrz said:
I didn't set the path at all. I simply `cd`-ed to the sdk directory and ran the emulator
Click to expand...
Click to collapse
Search for tutorial "how to set environment variable for SDK path", depend in your machine. Good luck.
Sent from here to there

Categories

Resources