How to extract APK/App files off of emulator? - android

I was trying to install a plugin for my android app, and somehow completely ruined my apps source code. I have no idea how to fix it, but I have an emulator of my app still running when it wasn't broken. My question is how do I get the files from my emulator back into a normal project file?

Related

Files appear in the Android/Data/{appName/} folder after installation, without starting the app

So I am working on a Android app with Unity, and I use git (gitHub) for source control. The problem is that on my PC when I build the apk and install on a phone there are files in the Android/Data/{appName}/Files folder. That's a unexpected behaviour because I want to copy files there but only after starting the app. The interesting thing is that if I clone the repo and build the apk on my laptop it works fine, the files are only created on my phone when I start the apps and my own scripts copied them.
So my question is there a gradle or any build system configuration for this kind of behaviour? (I am not so familiar with gradle)
So basicly I tried going trough my git ignore list to find what can be the difference (the unity provided default on), but no luck.
Edit: The apks totally similiar, same size, etc
Changing the product name in the player settings solved worked, but I am not convinced the issue is solved.

How do I get rid of (1) after android studio project files?

So I have been working on an app for a project in the android studio for school. Since I am working on it both at home and at school, I uploaded my project to google drive to access it at school. However, when I downloaded the project, unzipped it, and opened it in Android Studio, nothing is showing up and I can't build, clean, or run anything for it. I attached pictures. I suspect this may be due to the fact that since I already uploaded a version of my project to drive before, it added (1) to the end of almost every file in the project. I'm not sure whether this is causing the problems in the android studio. How do I remove them, any suggestions?
ok looks like there is actually no way to do this, oof

Android studio - no launch to last version of app and no project structure

In android studio, I had a project that was working in first place but then I created multiple copy of it in other paths to add changes to these copies instead of the original.
Afterwards, I noticed that the emulator shows up but doesn't launch the app I am trying to run. I followed a tutorial on YouTube that opens the setting app on the emulator and clears launcher data. then nothing changed.. I noticed that no matter how many changes I am adding to the file, nothing changes in the old app icon existing on the emulator.
Things got much worse later when I noticed that there is no modules or any other folders in the project structure except the SDK and when the older project versions were found to have same problem suddenly.
Even when I create a new project that is empty, same thing happens and the app crashes once it's installed.
Android app icon button before run appears in the project with a red cross over it.
Both the emulator and the mobile device don't get the latest version of the app I am trying to install.
I tried to make project, build, run, clean project, sync with gradle file, invalidate cache & restart. However, none of these solutions seem to work.
No idea what is going on.. things seem to be messed up and all online sources seem to be less useless to me.
Note: I am using Android studio V 1.1.0
so, I found that the best solution to this problem is to uninstall the current version of Android studio and SDK folder and reinstall it from scratch.. hope that helps

Cordova build erases all app files

I have some problem with building an app with cordova. This is my first experience with that software.
I have an existing Android HTML/JS app. I want to do some changes to it, re-build and test it in emulator.
App's files are located in platforms/android/asset/www, I can see them, edit them etc.
Now, after doing the changes, I do a "cordova emulate". I see it builds my app, the emulator starts and… it shows me a Hello World app.
All app's files from asset/www disappeared, and are replaced with "blank", hello world files , like I would just create a new app.
Why is this happening? How to prevent it?
My current cordova version is 4.3.0. The application was probably made and last edited on some older version (few months ago).
Found a similar problem here link but there's no solution there.
Instead of working on the platforms/android/asset/www you have to work on the root www folder, when you run the app the files will be copied to platforms/android/asset/www

Do I need to prevent caching on Android emulator?

I am using PhoneGap to develop cross-device (simple) applications, and I am currently using eclipse with the Android Emulator. The problem I am encountering is that it does not appear like my code changes recently are reflected by the application installed on the emulator. I have tried uninstalling the application from the emulator, cleaning and re-building from within eclipse, but neither of those has worked.
Is there some manual script I need to run to re-install the .apk? I am a newbie at mobile development, so please bear with me. :)
Eclipse should automatically rebuild your application if the option is activated. Take a look for it at Project -> Build automatically
The ADT should reinstall an application if you run the project. Take a look at the console (not LogCat) of eclipse, you should see some information about reinstalling the application (at least thats when you deploy on a device).
If you want to try if a change was successfully made, try to use a log statement that you change as soon as you have the feeling that its not the current version. So you can find out if at least the deploy worked.
If nothing of that helped, we should dig deeper...
I had the same problem (my app did not get updated whatever acrobatics I was doing) until I simply refreshed the Project in Eclipse. The javascript files I am using in the project were edited in an external text editor, the HTML in Dreamweaver, so Eclipse apparently never pulled the renewed files from the file system, even after restart. Doing a refresh took care of that.

Categories

Resources