How to make an EXE file using .apk file - android

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.

Related

Update Flutter App on Android with `flutter install`

So I have an App almost finished, which uses a json file located in the documents path of my android device (using the path_provide package). I know that this file will get deleted as soon as I uninstall the app on my phone. For installing the app onto my phone I want to use the command line flutter install (I'm on Windows). So if I add more features to my app and flutter install again on my android, will it update the device leaving the documents directory just as it is or will it delete that and completely reinstall the app?
I don't think that it's going to delete the app and the file.
I found a solution: If you don't already have it installed, then install ADB and on Windows you then must add the folder with ADB to your Path environment variable, so you can easily access it through cmd on Windows (I don't really know about the other platforms). Then you have to create your APK (for example with flutter build apk --split-per-abi) and then run adb install /path/to/your/apk/file.apk.
Source: mannprerak2's comment on this Github issue https://github.com/flutter/flutter/issues/40560

My First Android App Does Not Run In Mobile

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.

Remove Phone application from Android emulator?

How do I (forcibly) remove the stock android Phone application from the emulator instance?
I would especially like answers from people who have actually successfully removed the Phone application.
Removing the Phone application probably also necessitates removing the Contacts application, as they are tightly integrated, that is fine.
Solution
After much research it seems the only solution is to rebuild the Android SDK from source, as Maciej Pigulski answered.
After fetching the android source, remove Phone and Contacts from the Android makefile build/target/product/core.mk. And build the SDK as usual, i.e.:
. build/envsetup.sh
lunch generic-eng
make sdk
And in out/host/linux-x86/sdk you will have a zip file containg a fresh new sdk ready for use in e.g. Eclipse.
I successfully remove Phone apps WITHOUT rebuilding the SDK (very long op...)
You can edit you system.img in your SDK (located for ex : ~/android-sdk-linux_x86/platforms/android-10/images/system.img) corresponding to the system part of your emulator ( Phone apos is located at /system/apps/Phone.apk)
I launched the emulator, connect with adb to the emulator shell. I removed the packaged /system/apps/Phone.pak after remounting the system partition with read/write option ( mount -o rw,remount /system /system )
I push into my emulator the mkfs.yaffs2 tools compiled for arm found here (http://code.google.com/p/android-group-korea/downloads/detail?name=mkfs.yaffs2.arm)
use this tools to recreate my system.img in my emulator shell:
mkfs.yaffs2 /system /sdcard/system.img
pull the /sdcard/system.img into my PC. Replace the system.img of the emulator (~/android-sdk-linux_x86/platforms/android-10/images/system.img) and restart the emulator.
The Phone app is Gone!
I have an idea how this could be done but this is not an easy way.
It requires source code of the Android OS you need an emulator for. Then in the make files you can disable including of the Phone application to the output image and build the OS with 'make sdk' task. This will produce an SDK (like ones available from the Google site) with the binaries that has Phone application excluded. Then when you will create an emulator with this SDK it wont have the Phone.apk.
Painful but if you really need it, give it a try.
If you have root acces you can remove the .apk file that provides this app. You would have to look around in the folders on the device where it is installed.
It may be necessary to re-compile the Android OS that is running on the emulator. During the compile the default apps are rolled up into the build so it would be a matter of getting the egg before the chicken... or killing the chicken before it lays the egg...

Android install apk on phone

I have a game I built in eclipse and now want to install on my phone.
I downloaded ASTRO per an example in YouTube, then copied the .apk file to the SD Card, went to the phone, found it try to install it but it seems like it doesn't recognize it because it does not give me the option to install although I can browse through my assets, drawables etc...
Am I missing something? I just want to download it to the phone ... but all I see is a black list under summary with no description and no button to click on for "Install".
try installing it via adb. Type
'the path to your adb on the pc - it's located in the platform-tools directory of the sdk' install 'the path to your apk on the pc'
in the shell. i.e
adb install myapp.apk in case the path to your adb installation is in the system path and your current directory is the one with the apk.
If you develop i think you got android sdk set up, try to fire up install from the command line by using : adb install
Make sure adb is in your path and your phone has development settings turned on.
you can also open it using the webrowser
using file:///sdcard/bla.apk
If you can browse your assets etc then it sounds like you used long-press in Astro and then told it to 'Extract'. This doesn't install the app, it simply unpacks the apk into its component parts.
Do a 'short-press' (click) on the apk file with Astro and it should give you the option to 'Open App Manager'. This should allow you to install it.
I had this happen to me and this is what I had to do to fix it. Since the option to install is grayed out you need to edit your AndroidManifest.xml and tell Android what sdk version it targets. The version on your phone is probably 2.1 and you have been developing on 2.2. This is what you need to insert into the manifest file.
<uses-sdk
android:minSdkVersion="7" android:targetSdkVersion="8" android:maxSdkVersion="8">
</uses-sdk>
Renaming the .apk to some other extension is not enough to enable beaming. Android will look into the file. You must rename the file then zip it. After that a beam will work and just reverse the process before installing on the device.
This is quite a pain because I beam my apk hundreds of times while testing. On my desire with froyo it was allowed but now on my nexus s with gingerbread it is blocked.
Just figured out you can email the apk to your gmail account as an attatchment and you can install the apk straight from the email. When you open up the email scroll to the very botton and you will see a "Install" button. it's a quick and easy solution.

How to make .EXE for demonstration of a Android Software built in eclipse?

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.

Categories

Resources