Can't install third-party APK file - android

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.

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

Deleted the app code which is used by android studio

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.

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/

other ways to install android apps than google market?

i have an old backup Android phone (i can't say it's name cause it's marked as bad grammar for some stupid reason) that only has android platform 2.1 (Eclair) and only got market than play (google), but i can't log in to the market since it always says that my password is wrong. So i have find other ways to install them.
So how can i install the apps without market?
I have already tried to factory reset the phone, but it still says that the google mail password is wrong. so i have to find other ways to install the apps.
I had done this earlier on my phone. Not sure if will work on Android 2.1. The easiest way I found was download the apk file. Store it on your SD card. Check the box that says unknown sources in your Application settings. This will allow you to install non Market Applications . Go to your SD card and click on the apk file in your SD card. Make sure the apk you download is compatible with your device.
Well you can install applications from the Amazon App Store. You might also search the application you want online, and tons of sites will come up. You just download the apk file from there and add to your SD card. Then install the application. Ensure that it is compatible with your device.
You can download the apk's directly from other websites.
One is AppLounge

How do I distribute Android app to beta tester without using Market

I have an early version of my app that I want some testers to take a look at. But I am not ready to put it on Market. How do I distribute it to my testers and how do they install it on their phones. One of the beta testers has a Asus eeePC with Android 2.0 installed and I would like him to try it too. How does this work?
They can just download it from any URL (go to the URL using the device browser) and install it.
They'll need to go to Settings->Applications and check the "Unknown Sources" checkbox.
You can just package the app up as a .apk from eclipse and host it anywhere. Then just have anyone you want visit the URL from their android an it will be installed. But as mentioned they will need to have the Settings->Applications and check the "Unknown Sources" checkbox checked first.
URL, ftp or any another manual distribution is good until you have a couple testers and less than 10 devices. Actually, there are many services for that. The biggest one was Testflightapps.com. But now it's Apple's service and they stoped support android. There are another though. Testfairy.com, Crashlitics(to collect and analize crashes from devices), etc. Just google it ;)
as mentioned in first answer you can download from unknown source by rendering to that URL
Apart from that, just make sure that your app hosting server supports MIME type downloading.(very basic but important)
On a device:
In Settings-> applications, check "unknown sources. Now by putting the apk on the devices sd card you can navigate to its directory with a file manager such as Astro and install it.
On a simulator:
While running an emulator, navigate to the /tools directory of the android SDK if you haven't added it to your PATH. Now execute "adb install path/to/your_application.apk".

Categories

Resources