How can I fix my corrupt app? - android

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).

Related

Can't access local files in data/data of some phones

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.

How to transfer android app to pc for storage

I have seen this question before on this site, but the solutions have eluded me.
I have an app that I like, an app no longer supported by the developer. It's called DragonMobileApp. I'd like to copy it to my PC so that I can add it to another phone that I own.
Unfortunately, I can't figure out where it is in the file system on my phone. I've tried ADB and MyAppSharer and nothing seems to work for me. (Not the least of which I think I'm not actually able to see all of the files on my phone.)
And, of course, if you help me solve this problem, then I'll need to figure out how to load it from my PC onto a phone.
Thanks in advance for your assistance. I really did try all the solutions I found here before posting this question.
Install Xplore app from Store
Open it and click on App Manager
Click and hold the App and select Copy
Select a folder from your memory card or a folder you'd want to copy the apk file to
Click Ok to complete.
I'm guessing you don't need help to copy a file from your device to your PC.
Cheers!!!

Android Studio ---- The path is not writable. Please choose a new location

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.

How to keep app files in Genymotion between debug sessions

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.

How to lock and unlock a folder in android

I am just starting with Android. And my boss told me to find some good way to lock/unlock a folder with password in Android. Does anybody know how to implement this.
Any help will be greatly appreciated.
Thank you
In Android you only have "one user", (you have root too, but here doesnt count), so you cant lock a folder, because its your self. But if you are use one file with permisson to write, other app cant write. And if you want make something that you only open with a pass, like a FoldeGuard, you can make a file, that have your information with some Formatter, and You are the only person that can open that file, you can too asociate the file with you app and open automatically your app. So the simple way for me is, make a BD, that there you have all information you need and put password in the bd, or make a file that you asociate your app, and later when you open a file and put the pass you extract all information for a folder... I hope that ideas help you :)

Categories

Resources