Deleted the app code which is used by android studio - android

Recently I had a small break of my app project, during this "free time" I accentily deleted the app code. I had it stored in my downloads folder which from time and time I clean up, in a rough fashion.
Now I still have the app on my mobile and managed to get the app file named: "com.example.username.projectname" from my mobile to my laptop. I only used my phone as a emulator and can run the code fine on my mobile. Now is there any way of recovery for my project so I can start to work on my project again. Or is the only option to start all over again?

You said that you had the app in the mobile. Take a backup of the apk and try decompiling the apk using available apk decompiling tools

In the end I decided to rebuilt my app from scratch. The difficulties to reverse engineer the APK file were to many. Trying to restore the file via deleted file restores software didn't resolve the problem either. Because of this experience I backup my app every time when I make a change to it.

Related

Releasing React Native .apk for demo usage

I followed steps from this tutorial:
Exported .apk can install on all my devices, but when I uninstalled and then installed my phone said 'App not installed'. My clients had the same problem even from the first installation.
There are no multiple users on my phone or any other so I can't do 'uninstall for all users'.
After that I tried to export from Android Studio with same keystore and passwords and it just created more problems with the same initial problem and that's 'App not installed'.
After that I resolved many problems that Android Studio made with updates and I still can't export it properly from Visual Studio Code.
My head hurts.
Edit: Now I've tried jarsigner and zipalign and it still doesn't want to install.
EDIT2: Issue goes away when I move .apk to internal storage. Is this a legit solution?
This is a very open ended question and it's quite hard to give a clear answer without further information. But usually 'App not installed' error happens because of following reasons (among others)
Insufficient storage
Corrupted/Contaminated App file
SD Card not mounted in the device
Storage location
Corrupt storage
Application Permission
Incorrect file
things you can try
Do the tried and tested "Have you turned it off and on again"?
Delete unnecessary files/Apps
Reset All the App Preference
Go to Settings on your Android device.
Open Apps or Apps manager.
check for All Apps.
Tap on the menu icon.
Click on ‘Reset App Preferences’.
Clear Data and Cache of Package Installer
Open setting on your Android device.
Look for the option called Apps or Manage apps and tap on it.
Check for the Package Installer App under system Apps
You will find two option of Clear data and Clear cache. (For Android Marshmallow 6.0 users check for option Storage to clear data and cache)
Clear the data and cache to solve the problem.
You could also try changing the bundle id and see if that would do the trick
Hope this helped

Why does my storage keep filling up?

I've noticed while developing an app, that my storage space keeps filling up. Repeated deployments from Android Studio seem to be slowly filling up the internal storage, as if the older iterations of the app are not getting uninstalled. I have specified a grade-aware Make (:app:uninstallAll) to attempt to alleviate this but I've had no success.
Any ideas?
EDIT
Apologies, I know this question had lot of potential scope. Accepted answer to manually manage the app installation. Using ADB-IDEA plugin to help with this. Will do for the moment. Thanks all.
When you're debuggin with instant run, Android Studio makes the changes in cache, that's why the internal storage is filling up.
Try this:
Delete the data of the app.
Unninstall the app.
In Android Studio, Menu Build -> Build APK and install it manually.
If you are affraid that your apk is taking too much space, you can use the APK Analyzer

How to use basic4android exported apk

I am a .net developer but new to android programming. I have used basic for android and set to compile & run project into my LG device. Everything is good but my question is when I compile and run, everything is done?
Can I use the exported application file in the project folder in any device? I wrote a app and send it to my other galaxy phone, it worked! But when starting app, it works but first showing message: "Waiting for IDEdebugger to connect", what is this?
thanks for your help.
Before you package your application in b4a for other users or uploading to store, you have to change the compilation mode from debug to release or release(obfuscated).
If you compile in debug mode, that is when if you share the application to different users, it will always launch with the information waiting for ide debugger.
The app will work upon the platform which you choosed when you started your project. See what platform you choosed I remember there are Android , android icecream sandwich ..etc
So upon your choice you can know what devices you app will work but take care about the screen dimensions variations because this may cause problems in the way of the design is displayed so you should create scale just to be safe.
To get rid of that error you should uncheck Project->Attach Debugger. Also the file you will upload to Google Play Store or other places will be a .apk file in your objects subfolder. Basically you will need to either setup the Galaxy phone like your LG device or change the project to release and copy the .apk file onto your SD card and manually install it. For more information on your error a quick Google search led to a forum post on Basic 4 Android's forum. The link to that post is http://www.basic4ppc.com/android/forum/threads/waiting-for-ide-debugger-to-connect.13813/

How can I see changes in Genymotion made in Eclipse?

I'm trying to use Genymotion virtual machine in Eclipse. I installed several virtual machines, but I'm having problems when I want to see changes made on my app. Every time I add something new to my app, is not showing it up on the emulator. Does anybody know how "refresh" the Genymotion emulator so I can show the changes made in the app?
Thanks
If your problem is coming from the XML resources it could be caused by a refresh that is not done on the Eclipse side. I had this problem a very long time ago. I had to uninstall the app before installing it again.
You can try different manipulations, one of them should solve your problem:
First, check that your new APK is correctly transfered and installed on the device. Look at the console output for that.
Or, change a character on a JAVA file and save, before building your app
You can also clean your project before running your app
And finally, uninstall your app before installing it

Can't install third-party APK file

I am a new programmer for Android, but I have been using eclipse for a year and a half now. I am developing an Android Application for my school's health department to allow students to track certain health behaviors overtime.
I have completed the coding of the app and have successfully tested it on a virtual device. The applications runs fine on the AVD.
However, the problem arises when I export the project as an Android application through eclipse. I create the apk file using the debug.keystore and the androiddebugkey. I create the apk file (which is about 115 kilobytes). Next, I connect by phone (an LG Thrill) and open it via My Computer. I drag and drop the apk file into the "downloads" folder in the phone.
I use a Market App called ASTRO to access the apk file in the downloads folder. However, when I try to install it, I get the dreaded "There is a problem parsing the package" error. I have had this problem for weeks now.
I have tried all sorts of solutions. I have developed the app for the same Android level as the phone. I have tried making my own keystore and exporting. I have also tried making smaller apps (ie: HelloWorld) and installing them. I keep getting the same error.
One thing that I noticed was that whenever I go to the apk file in the ASTRO Market app and click on the apk file and then "Open App Manager", I see that none of the apk file's settings (ie: Name, Size, details) are shown. All the Marketplace apps I have in the folder have visible settings by my apps don't.
What might I be doing wrong? Is it something with building the apk file? Or am I uploading it onto my phone incorrectly? Whatever it is, please let me know.
Go to: Settings->Security->Device Administration and make sure you have Unknown Sources enabled.
Have you checked your manifest file? What is the required minimum version of Android that you need, and what is the version on the device you are installing it on? Everytime I have run into this problem, it is because the device has less than the minimum required version of the operating system on it.
Home-->Settings-->Application Settings-->Unknown Sources Click Checkbox on
I know it's kinda old topic but it has just happened to me (Android 4.1.1).
Solution: If you have wifi turned on, make sure you have internet access. I dealt with this problem and multiply requests to install application appeared.

Categories

Resources