Android Avd running of flash drive - eclipse

So I created an AVD(eclipse) and moved all the files that were on my computer to my flash drive,but every time I run the application on my computer or another computer it says can not find a compatible AVD/no Avd exists. Is there any way that I can tell eclipse that i changed the loaction of the AVD and that it should read it off of my flash drive rather than my computer? Thanks much help would be appreciated

Add a new user environment variable (Windows):
Start Menu > Control Panel > System > Advanced System Settings (on the left) > Environment Variables
Add a new user variable (at the top) that points your home user directory:
Variable name: ANDROID_SDK_HOME
Variable value: C:\Users\yourUsername

Related

Atom Script package for AutoHotKey

I'm am completely a noobie when it comes to using Atom and programming in general but I've been getting my feet wet with AutoHotKey recently (previously have some super beginner experience with Python). I've loved using Atom and came across the Script package which says it supports AHK.
When I try to run an ahk script, however, I get:
"'AutoHotKey' is not recognized as an internal or external command, operable program or batch file. "
I already have the requisite language package installed.
In reading through Script's information it has a table with the header "Required in PATH", underneath of which it says AutoHotKey.exe. I suspect this has something to do with why I am unable to get it to work, but being completely uneducated in what they even means leaves me scratching my head.
Any help that anyone could provide would be greatly appreciated, thanks!
You need to add C:\Program Files\AutoHotkey (assuming you installed it in the default location) to your system/user's PATH environment variable. This folder should contain AutoHotKey.exe.
For All Users on Your Computer
Open the Start Menu or click the Windows Search icon
Type Advanced System Settings
Select View Advanced System Settings (or similar)
Click the Environment Variables... button
In the lower list of variables (labelled System variables), select Path
Click the lower Edit... button
On the right-hand side, click New
Add the install directory for AHK, e.g. C:\Program Files\AutoHotkey
Click OK on all 3 dialogs.
Restart Atom
For Only Your User on Your Computer
Open the Start Menu or click the Windows Search icon
Type Advanced System Settings
Select View Advanced System Settings (or similar)
Click the Environment Variables... button
In the upper list of variables (labelled User variables for <USER>), select Path
Click the upper Edit... button
On the right-hand side, click New
Add the install directory for AHK, e.g. C:\Program Files\AutoHotkey
Click OK on all 3 dialogs.
Restart Atom

How to change folder that opened by default in VSCode?

I have small problem with VSCode folder, that opened by default.
Problem description: I start new instance of VSCode (trough File->New Window), and then if I choose File->Open Folder it opens dialog with my Windows user folder as starting point (C:\Users\MyUser)
Question: How can I change that folder in settings (if it possible)? So by default it will show as start point for example D:\development\ ?
At the time I write this answer, this is not possible. There are two problems on Windows, and one problem on Mac and Linux:
VS Code does not provide a default path to the file dialog 1. It does remember the last folder that you opened a file in, but that path cannot be used as a default because it is overwritten constantly.
On Windows only, Electron ignores the default path when creating a file dialog if the default path is a directory 2.
An extension also cannot solve this, because extensions are not allowed to modify the File menu 3.
I think the best option at this point is to pin a folder to the Quick Access area in Windows Explorer, as suggested in a comment, or to put an actual shortcut in the user profile folder.
Workspaces and File > Open Recent may also be helpful if you often open the same folders.
Your main problem is that you are unable to open your specific folder in VScode.
To solve that you can simply open the terminal/cmd in that specific window by just typing cmd in your search bar or just by pressing shift+right-click in that folder.
Now your cmd is open and you just have to type "code ." in the cmd and press enter to open the current folder in your VSCode.
In case that code . doesn't work for you then you have to add the Vscode in the environment variables of your windows.
Visual Studio doesn't provide a specific feature to open a specific path. But there is a solution to your problem. You are saying that you want D:\develpment as a default when you open VS Code. You can go to that specific directory or create shortcut to desktop then click right click on that folder and then click on open with code. If you didnot see open with code then reinstall your VS code and check on open with code when you are reinstalling VS Code.
make a shortcut on the desktop for vscode and then modify it and add the folder after the .exe command. This will default open that folder when you double click on it.
Visual Studio Code can be installed in two ways - User setup and System setup. I strongly believe you have User setup installed in your PC. Try re-installing it System-wide. That should probably fix your problem.
For more information: https://code.visualstudio.com/docs/setup/windows#_user-setup-versus-system-setup
PS: A lot more information is needed, you can share a screenshot of the window and elaborate more on it.

Why Visual Studio code and most of the applications are not installing in fresh windows 10?

I am trying to install Visual Studio Code in my fresh windows 10 but it is throwing an error Setup was unable to create a directory
Error 5: Access is denied
Since your UAC(User Account Control) is turned off, and you are running the install as Admin (because you already are admin), it seems like a permission issue and not a UAC issue. Try this:
Create a folder name "Temp" under C:\ // This step is important, the
folder has to exist.
Right click the Computer in Start menu and select Properties. Click
Advanced System Setting. In System Properties windows, click
Advanced tab.
Click Environment Variables button. Under User
variables list, double click TMP.
Change Variable value: from
"%USERPROFILE%\AppData\Local\Temp" to "C:\Temp".
Try to install.

Testing Ionic2 app on real device

I am building an app using Ionic 2 and I am at the stage of wanting to test it on a real device. For now I just want to test it on my android phone. I have enabled developer tools but when I try "ionic build android" or "ionic run android" on windows command prompt, I get this error:
Error: Failed to find 'ANDROID_HOME' environment variable. Try setting setting it manually. Failed to find 'android' command in your 'PATH'. Try update your 'PATH' to include path to valid SDK directory.
Where/how do I set the path manually?
Assuming it wasn't already set by the SDK:
For Windows 10 and Windows 8:
In Search, search for and then select: System (Control Panel)
For Windows 7: From the desktop, right click the Computer icon. Choose Properties from the context menu.
Then:
Click the Advanced system settings link.
Click Environment Variables.
In the section System Variables (or User if you prefer), Click New and name it ANDROID_HOME.
Enter the correct path where the executable files are located

Android Emulator can't start, 'cause of wrong folder

I'm just starting to use Eclipse and ADT and I have some issues, the Android Emulator don't start :
[2011-07-10 15:32:25 - Android_FirstApp] ------------------------------
[2011-07-10 15:32:25 - Android_FirstApp] Android Launch!
[2011-07-10 15:32:25 - Android_FirstApp] adb is running normally.
[2011-07-10 15:32:25 - Android_FirstApp] Performing samr1.Android_FirstApp.Android_FirstAppActivity activity launch
[2011-07-10 15:32:25 - Android_FirstApp] Automatic Target Mode: launching new emulator with compatible AVD 'Android2.1'
[2011-07-10 15:32:25 - Android_FirstApp] Launching a new emulator with Virtual Device 'Android2.1'
[2011-07-10 15:32:26 - Emulator] PANIC: Could not open: C:\Users\Sam\.android/avd/Android2.1.ini
The path isn't correct, though the path in Android2.1.ini is correct. The User folder is located in an another disk.
How can I modify the start path of Android Emulator ? I can't find where.
Thanks
EDIT :
I found that graphical AVD Manager creates AVD directory inside C:\Users\.android\ on Windows 7 :
Default location of AVD files
But using Command Line doesn't work.
So i moved my AVD files in C:\Users\Sam\ and now it works.
This is a bug in the ADT Plugin. For a workaround until it is fixed use a NTFS symbolic link.
I have a C: drive for windows 7 and a D: drive for all my work and data. After installing windows 7 I relocate all my special folders from C:\Users\John Doe to D:\John Doe. The ADT Plugin is trying to load the emulator from C: when it and the configure files are on D: (PANIC: Could not open etc.). NTFS can get the ADT Plugin to read from D: using a NTFS symbolic link. Open a command prompt in C:\Users\John Doe (obviously use your user name), use the mklink command.
mklink /J "C:\Users\John Doe\.android" "D:\John Doe\.android"
Now when the ADT plugin is trying to reference .android on C:, NTFS sends the request to D: and the emulator starts correctly.
Create a environment variable called: ANDROID_SDK_HOME and set it to C:\Users\Administrator
Open Eclipse > Window > Preferences and click in Run/Debug and String Substitution
Add a new variable called: user.home and set it to C:\Users\Administrator
Create an AVD and run it.
It should work now.
The configuration files for your emulator might have been saved by AndroidSDK and AVD Manager some where else in your hard drive.
Do the following:
First search for the .android folder on you harddisk.
After you find that, move the .android folder to your user root directory - which may be "C:\Users\hallo\" in your case.
These type of project creation errors(with cause and solution) is described here.
The configuration files for your emulator might have been saved by AndroidSDK and AVD Manager some where else in your hard drive.
Do the following:
First search for the .android folder on you harddisk.
After you find that, move the .android folder to your user root directory - which may be "C:\Users\something\" in your case.
Other Method
Check the location of old folder you can open eclipse Navigate to Windows--> Preferences-->Android-->Expand it and Select Build
Find the Value of Default Debug keystore and you will know your .android folder location.
Then mklink /J "old folder location" "C:\Users\Something\"
if anyone is interested on the same problem in Linux (Ubuntu 11.10) the solution is NOT run Android SDK Manager as root. Aparently, SDK expects to be runned by a regular user, and it tries to work with the main user folder, that's why the error. This is what I suspect.
This worked for me by running eclipse as root ( in Ubuntu ), my be run as administrator will work