In my app I download some files in /data/data/com.myapp.myappandroid/files. The problem is that when I debug with Genymotion and restart the app, /data/data/com.myapp.myappandroid/files is cleaned and I have to download the files again. Is there a way to set Genymotion to not delete the files in /data/data/com.myapp.myappandroid/files?
Thank you
This should not happen.
When you creates a private file it should not be deleted until you delete it yourself or you uninstall the app explicitly.
So I advise you to verify that the deletion is not done by mistake. And if you don't solve your problem, please give a precise list of manipulation to reproduce the problem.
Related
I'm having three not rooted phones here. Two of them have Android 10 and one has Android 8.0. On one with Android 10 I just cant access the app files in /data/data directory with the Device File Explorer in Android Studio.
The error I get is:
`run-as: /data has wrong owner: 0/1000, not 1000ยด
I'm just not finding anything useful to fix this.
Since I had to dive into the comments of the original question to solve it for myself, I'll repeat the answer that helped me.
I uninstalled the app, restarted my phone, installed it again with android studio and it worked like a charm after that.
In case you're still looking for an answer.
This most likely happens when your database is created in the past (probably from some code that was a bit off). I advise you to delete the existing database from the device file explorer, make sure your code is right, and re-run the app.
This should create a new database and work.
I just installed Android Studio and want to start a new project. But it showed the following error message:
The path XYZ is not writable. Please choose a new location
How should I fix this problem?
The most likely explanation is that the directory and all its files are owned by a different user account on the system. Normally the "Clear Read-Only Access" dialog will fix up read permission problems if it's possible to do so; if it's not (because the files are owned by another user), the dialog will refuse to let you click the OK button.
You can confirm this by using the ls command from the MacOS terminal. Here's an example from a random project of mine.
I had the same issue. Running Android Studio as an administrator worked for me. If this is a possibility for you and you did not do it before, give it a whirl.
I got that error on windows because the initial project location was C:\. But the problem was solved when I made a folder and gave that path:
C:\repo\myApplication
Myself also faced the same problem because , I have changed the permission of that drive from x:\ -> properties -> security . Once I have given full control for my user option(one among 4 options in security) and reopening the Android studio , it didn't post that warning again. So, before you try this option , please verify the security details of drive and make sure that it doesn't affect your further operations regarding security.
I was having this same problem, then I plugged in a flash-drive. It allowed for a place to store the files with a location that did not have white space, was empty, and had enough room to store everything I needed. The flash was the only way I found on my computer to store the files where the path was writable. Hope this helps someone.
You can create that folder (or those folders) yourself, then run the installer again.
What do I do to resolve this issue?
I've tried changing the app file to ipa however it still had the same issue
Thanks
If you are using Genymotion Emulator than you have to download genymotion-arm-translation_v1.1.zip file and just drag and drop to that Emulator and restart that Emulator. Now, It will work.
It is basically Architectural problem. You can find above file very easily on internet and make sure to drag and drop that ZIP file do not extract it. Hope this will help.
I am facing this problem so many times,
I used to send the apk files through mail to my clients for reviewing.
Sometimes , they are telling that the new attached one has not get any updates , it remains same.
Even i did updates in that and, i have chacked it by uninstalling the older application and downloaded the attachment , So it was working fine with updates in myside.
I asked them to do same. But for them it wasn't.
So please give some idea,
Is there any better way to share the apk files?
Are they need to clean some other folders in their mobile, like "temp and cache" in PC?.
Or I missed somewhere in the Updated builds?
Please it is very difficult one for me to face always.
Thanks in advance.
hmm.. instead of sending the .apk file to them through email, why not upload your .apk file to a server or website folder and let them install from there using their phone / device.
in android, you can install apk files from the internet right :)
that way, you can just send them the link of the updated version of your app.
Maybe the problem there is your apk sent to their computers, is either not really saved / not overwritten. in case the .apk file has same filename.
you can try to change file name also
:)
When I was programing I steped on my power code and my computer shut off. Know when I went back onto eclips the gen file is empty and one of my layouts have no code in it? is there anyway to fix this? Or, is there anyway to get everything i need from the .apk that it exported to?
Please help me thanks!
You should be able to open your .apk with winZip.
You'll have to restore your source from backup (or type it back in).