i have prepared my first android app in android studio, but it run only in Android Studio Emulator not in mobile. Please help me by telling the simple solution so that i can distribute the app to others.
Thank You.
Click on the "build" tab in the android studio and then click on "build apk". After your android studio is finished building the apk, you will have an option to go to the folder where the apk is located. Go to that folder, select the .apk file and transfer it to your phone. After, make sure that your android phone has a permission to install apps outside of PlayStore. Install your app!
First you will need to create an .apk of your app through studio. If it successfully runs in Emulator, that is a good sign. Once the .apk is created. Save it to Desktop or wherever else you would like. Plug in your android device and open the device in File Explorer (or equiv. depends on OS). Copy the .apk to your device's Downloads folder. Once the copy is successful, eject your device from your computer. Open the file manager (whatever it is called, I don't personally own an Android, but I had to fix my cousin's :p) on your device. Go to Downloads and click the .apk you just transferred to the device. A dialog should come up asking if you would like to install the app. Click yes, or install, or the equivalent. Go to your Apps view and it should be there.
Related
I am trying to free up some space on my hard drive. I've noticed that i have .android folder in my home folder on my mac. Does anyone know is it safe to delete this folder? And what exactly is it? It's 10Gb in size. I did use Android Studio on a school project but I don't use it anymore and I've uninstalled Android Studio since then. I don't have any android devices eighter.
Please don`t delete .android because this folder contain some setting that enable app to be installed and run on android emulator or device.
If you delete this folder, apk installation will be rejected during installation in the android device or emulator.
That is what I experienced after delete this folder.
Normally, it is created when you plug an Android device to your computer, and also it is the default location for the AVD as pointed by Gabriele in the comments. Find some insights in the next links:
https://developer.android.com/studio/run/emulator-commandline#data-filedir
https://askubuntu.com/questions/617912/what-are-the-android-folders-and-adbkey-files-on-my-computer
Cheers!
You can safely delete this folder at any time (except maybe while Android Studio is still running!)
All that will happen is that next time you use Android Studio:
it will need to re-download some stuff.
you might have to uninstall dev builds of apps on your phone and reinstall them again due to a change in keys.
you will lose any data and save states of emulators you were using.
I'm new in android developing. I use Android Studio 1.2. It's making some large size folders in C:. C:\Users\User\AppData\Local\Temp\AndroidEmulator is about 5 GB. Can I delete or move the file. Or how can I change this path to another drive?
I am answering it based on Android Studio.(v1.5.1), Windows 10.
Most of those temporary files are copies of your app that is installed to your emulator. And some are because of the packages you add to your app using gradle.
Even when your emulator starts it creates a file of more than 1.3GB which disappear when you close the emulator.
About deleting the files. Yes you can delete those files and still able to do every thing you are doing, you can see all installed apps in your emulator and run them for test.
I suppose these are system image downloading.
If you do not need emulator, these files are useless to you. You can remove them through SDK Manager.
If these files remain in Temp, just delete them
By the way,to move your temp folder : http://www.wikihow.com/Change-Location-of-the-Temp-Folder-in-Windows-7
In Custom Installation option, you will have option to place Studio and AVD manger on other Locations whichever you prefer.
I just started with windroy
How to install apps in Windroy?
I can copy .apk files into windroy_root\system\app, but then I need to restart Windroy.
I checked web site and files in windroy_root, there is no real docs.
Also there is no any app store.
This is for anyone using the newer version of windroy.
The new version v4.0.3 attempts to emulate android 4.0.3 but the trouble that i have
ran into is that not many apks will run properly. This being said you may have to make several attempts before you find an apk that will work, but the simple way of installing apks is to use a file manager because it gives you access to the file system for other tasks as well.
The file manager that i have choosen is Arc File Manager, Go File Master works as well but most pcs dont have an auto rotate feature which makes Go File Master annoying, Arc loads great plus it loads in landscape mode for easier use. I hope this helps
you if your running 4.0.3 or decide to use it in the future.
Here are the steps I used to install apps on Windroy
Download the Apk Installer and put it in windroy_root\system\app. I used this link http://www.appsapk.com/apk-installer/
Start Windroy
Go to Apps screen and you will see "Apk Installer" icon
Call it and navigate to where you put the .apk that you want to install
Double Click on .apf file
What you have to do is download any launcher from a trusted site and place it in "windroy_root\system\app". Then place the apps you want to install in "windroy_root\mnt\sdcard\" and execute Windroy.
After booting you can select the launcher you just placed in "windroy_root\system\app".
Download apk files and paste to windroy_root\data\app
Then restart windroy .
I spent lot of time trying to figure how to run an app in Windroy. So here are the detailed steps to install apps on Windroy and run them. You can download Windroy from http://www.windroye.com/index_eng.html and install it.
1. After installing Windroy verify that it runs without error.
2. In Windroy open a browser and download the Apk Installer from http://www.appsapk.com/apk-installer/ and install it once it gets downloaded
3. Lets assume you have installed Windroy in 'C:\BaseInstall' folder.
4. Now open Windows Explorer, copy the apk of the app you want to install and paste it to 'C:\BaseInstall\Windroy\windroy_root\data\app' folder
5. Now start Windroy and go to installed apps and you will see the 'app' you have copied installed in Windroy.
am almost done with my project in android, now I want to make the executable version of the application.
I need to demonstrate it in .exe form as soft app as on emulator, not by built and debug process from eclipse.
what the op is asking for is simple - he wants to create a MS Windows program file that runs just like the APK he's made.
Unfortunately this cannot be done. The only way to 'show off' your program is as people have stated:
Through the emulator on Windows
On an acual device (Once installed, you can disconnect the device from the computer and use it like a normal app)
You can't convert an APK file into a .exe file. APK files hold Android apps as self-installable files already - opening an APK file on a phone or the emulator will start the installation process. It sounds like you just want to sign the app with a 'proper' key rather than using a debug key. To do that, read the official page on signing apps.
You don't need to create a .EXE file for doing what you want. You can just create a bat file that executes adb commands that will: install and start your application in the emulator. I guess, the problem here is that you don't understand how the APK files work... I'm just saying.
OK... in order to install an Android application using adb (which is basically what Eclipse does in the background) you need to do this:
adb install path/name_app.apk
Then, you can start the application by using adb shell am command. You can find info here: http://pdk.android.com/online-pdk/guide/instrumentation_testing.html
Another thing you have to take in account is that you will have to run the AVD before installing and executing your application: http://developer.android.com/guide/developing/tools/avd.html
All those commands you have to execute (may be using a .bat file as I mentioned before) are executables that you can find in the android-sdk\tools directory.
When I have a client that want's to show an app, at conference for example, I always use Bluestacks it's not perfect but it allows you to run android apps on your computer without doing all the technical stuff (like installing an emulator etc).
To install an app on your you computer using the Bluestacks device/emulator you simply click on the apk.
http://bluestacks.com/
Once you create a project/application in Eclipse then along with this you also have created the .apk file. Android can run .apk files, so go to the place where your project have been saved and open it, like this Open Project -->bin-->.apk.
Now send the .apk file to your android phone through Bluetooth or copy it.
I am almost done with my project in android, now I want to make the executable version of the application.
I need to demonstrate it in .exe form as soft app as on emulator, not by built and debug process from eclipse.
need immediate idea
You'll need to do some legwork:
Create the .apk bundle
Create an Android virtual device
Boot your emulator
Install your .apk into the emulator.
Create a batch file to launch the emulator with the correct AVD, place the zip file somewhere prominent
Zip up the whole works, and distribute that.