Android Device File Explorer save database to local disk - database

I am using Android Studio 3.2.1 and I want to save database from emulator storage to my local disk. So I open device file explorer (DFE), select my database and click Save As. Everything is fine if I save small databases. If I try to save database more than 4 Mb, device file explorer hangs on and it look like this:
And I can't save database to local disk. How can I fix it or it is only problem with my IDE?

I have faced same problem too. Newer version of Android Studio has this bug.
The solution is adb command.
use this code inside Android Studio terminal:
adb exec-out run-as your.package.name cat databases/your_db_name > your_db_name
then goto your project directory such as:
C:\Users\your-PC\AndroidStudioProjects\MyApplication
now open the db file using any sqlite editor

Solved: The problem is in the Emulator SDK, specifically in the memory allocation of the IntelĀ® HAXM ascelerator. The problem of Device File Explorer SaveAs was solved by increasing the memory, in my case, from 2Mb to 4Mb (the larger your file, you must give the ascelerator more memory)

Related

Xamarin File Storage

Question:
I know how to Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "SomeFile.txt");
But my question is when using emulator where does it store it or is it only in memory?
Thanks.
on Android, files are stored in the file system within the emulator image. You can use adb to access the files.
on iOS, the emulator file system is mapped onto the MacOS file system. You can get the full file path in code and then just access the files from Terminal or Finder

Fixing corrupted WinCE 6.0 from USB or SD card

I have an ARM v4 device with touchscreen running Windows Embedded 6.0.
I am developing new app for it (as a replacement for the old one). Everything worked correctly but I accidentally renamed file that was intended to run at startup (if it helps it is autorun.exe in /NAND folder) and now the Win does not start.
At startup error is shown and after clicking OK the process is stuck.
I need to revert this change (rename file back) but how to do it?
I cannot connect to the device anymore with Visual Studio, Remote File/Registry Viewer or similar tool as the conman is not running and I cannot run them (because Windows is not started yet, obviously).
Is there any way how to run cmd line or some tool from SD Card or USB or Ethernet where I can execute some command to rename file back?
I do not have the OS image or the knowledge to build it from scratch, that is too complicated for me.

Change file location for Android Studio

So, I just started using Android Studio. I am using windows 7 64bit on my main SSD. When I installed the IDE, I have the SDK and Android Studio saved on a secondary drive. Now I noticed that Android Studio added 3 other folders in the "Personal Folder" in my main SSD (.android, .AndriodStudio, .gradle).
Anyone know how to give these guys a different destination so I can save space on my main hard drive?
Copy those folders to wherever you want. But once you copy do the following steps.
1.) Open Windows explorer and right click on computer and select properties. In the control panel home that opened select advanced system settings in the left pane. Then select environment variables under advanced tab in the system properties window.
2.) Add a new user variable with name 'ANDROID_AVD_HOME' and value as path to /.android/avd/
3.) Similarly set GRADLE environment variables. This link might help - http://www.gradle.org/installation
4.) Start Android Studio - it will ask if you want to import config file. Give location to /.AndroidStudio/config
I hope this should work fine.

VB.Net Transferring A Windows Form App Onto A USB Stick

I am just wondering how do you transfer a windows form application onto a flash drive because every time I have tried after its transferred I click to open it and an error message displays saying:
"Cannot find the file 'F:\Vending Machine.vb.'
I need to be able to transfer it so when it opens I am able to edit the code and the appearance of the application as I would if I were to just open a new windows form application now.
Thank you
Marcus.
You will need to transfer the entire project/solution to the USB.
Transfering the already compiled .exe should open the latest build of your application. Transferring only a portion of the solution folder and then trying to open the .sln will cause errors on the files you have left out.
Clear your FlashDrive
Copy the entire folder(not the contents) to your flashdrive (C:\Users\Marcus's MPC\Documents\Visual Studio 2010\Projects\Vending Machine)
Attempt to open the .sln
Based on your additional comments it seems you are not moving all of the files the solution needs. If you have files stored in other locations (like My Document) those will need to be reconfigured to work with the solution or you will have to mimic the environment.
I would recommend reconfiguring the project to consolidate any stray files you have.

Files open as completely empty in Dreamweaver

While using dreamweaver I connected to my website and attempted to work on a file on my remote server (the actual site server) and when I opened it there was NO CODE AT ALL. When I logged into the actual site, the file functioned normally and when I went to the file manager on the actual site, the file was perfectly fine. Please help!
Also ,when I try to open a file, it gives me an error "This page may have dynamically-related files that can only be discovered by the server" When I tell Dreamweaver to try and discover them it tells me they "could not be resolved". I have never had this dynamic file thing pop up and I do not have any dynamically-related files that I am aware of, I do not even know what they are and I opened these same files without an issue last week when I updated some.
Found the answer, was a corrupted cache. Followed directions here:
Dreamweaver's cache is kept in a file in its Configuration folder. That file name depends on OS:
For Windows it is WinFileCache-<randomString>.dat
For MAC it is MacFileCache-<randomString>.dat
Deleting of that file clears the cache. After restarting Dreamweaver is creating new one. Location of the cache file differs for each version and operating system. Here is a list of locations depending on DW version and OS:
For Dreamweaver CC:
Vista, 7 & 8: C:\Users\<username>\AppData\Roaming\Adobe\Dreamweaver CC\<language>\Configuration
XP: C:\Documents and Settings\<username>\Application Data\Adobe\Dreamweaver CC\<language>Configuration\
Once I cleared it and rebooted and restarted it worked fine!

Resources