This is my first Android app. I need to email what I have so far to someone for testing.
How should I do I export the app and 开发者_运维问答attach it, so it is not being treated as Junk?
Much simpler method:
- Put the apk on your web server
- Create a QR Barcode image using: http://chart.apis.google.com/chart?cht=qr&chs=150x150&chld=H|1&chl=http://myserver/myapp.apk
- Then send him that barcode in an email and tell him to scan it using the barcode reader app.
The barcode reader app will see the barcode and provide a hyperlink for the user to click. They click the link and the app downloads and installs.
compile/build your app, it should produce a file like myAppName.apk
, just send it via email to your friend
try to look in yourProjectPath/bin
folder
If you are using Eclipse run the app on the emulator to test it. Now Eclipse should have created a bin folder in your project folder. In this folder you will find an apk file that contains your app.
Just send this file to your friend via email. He know can install the file on the emulator if he has one running. If not he can just plugin his phone via usb move the file to the SD-Card remove the USB connection and then navigate to the file on his SD-Card with a file browser like ASTRO and select the, item now the application manager should show up and he can install the app. If this does not work he has to go to settings -> applications -> and enable unknown sources.
I assume you are using Android Studio for application development.
Follow these steps:
Go to "build" from the navigation bar in Android Studio.
Go to "build bundle(s)/APK(s)" from the drop down that appears.
Click on "build APK(s)". You will get a notification box at the bottom right of your screen.
Click on "locate". Two files will appear. One is a ".json" file and one is an ".apk" file.
Send these files to your friends on WhatsApp and tell them to download the JSON file and install the APK file. Now your application is running.
You are done.
You can also right-click on your project (in eclipse) and click on export then select "Export Android Application" and give all the details... after you finish you will have a myAppName.apk, which you can email
Export Android Application would be the correct way to generate the apk. Using the one that eclipse uses has debugging info, plus it is signed with debug key, not an actual key. If you install an application signed with one key, and then later try to install an application (same package name) with a different key, you will first have to uninstall the original application first.
The simple answer is it is very simple, Droid devices understand what an APK is. So, tell your friend to Check "Enable Unknown Sources" currently in Settings->Security (not Settings-> Applications as of now.) Then email them the APK. Upon receiving it, Droid will either get it installed, or they can download it to downloads, where they can also install it from. Accept the Permissions, and off you go.
You can use the Microsoft App Center to build and distribute your Signed/Unsigned APK with your beta testers.
Or you can also use Google Drive, DropBox, Amazon S3 to distribute your APK
In Android Studio build with "build"->"Build Bundle"->"Build APKs" which you'll find in the folder app/build/outputs/apk/debug
then.
You cannot attach the file in your email directly, since APKs are treated as junk by most email providers. So upload the apk somewhere and send the link to your co-worker.
If a link is not enough, with a simple trick, you can send the file anyway:
- Rename the file: attach
.bin
at the end of the filename (i.e. myApp.apk.bin) - send the fake
.bin
file - Tell the receiver, that they have to rename it to plain
.apk
before installing. (On android renaming is possible with a file-manager, i.e. like Totalcommander)
精彩评论