如何通过电子邮件将我正在开发的 Android 应用程序发送给某人?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3068848/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I send an Android app that I'm developing to someone over e-mail?
提问by Emanuil Rusev
This is my first Android app. I need to email what I have so far to someone for testing.
这是我的第一个 Android 应用程序。我需要通过电子邮件将我目前拥有的内容发送给某人进行测试。
How should I do I export the app and attach it, so it is not being treated as Junk?
我应该如何导出应用程序并附加它,这样它才不会被视为垃圾?
采纳答案by Janusz
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.
如果您使用 Eclipse,请在模拟器上运行该应用程序以对其进行测试。现在 Eclipse 应该在您的项目文件夹中创建了一个 bin 文件夹。在此文件夹中,您将找到一个包含您的应用程序的 apk 文件。
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 ASTROand 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.
只需通过电子邮件将此文件发送给您的朋友即可。他知道可以在模拟器上安装文件,如果他有一个运行。如果没有,他可以通过 USB 插入手机,将文件移至 SD 卡,移除 USB 连接,然后使用ASTRO等文件浏览器导航到 SD 卡上的文件,然后选择应用程序管理器现在应显示的项目起来,他可以安装该应用程序。如果这不起作用,他必须转到设置-> 应用程序-> 并启用未知来源。
回答by Brad Hein
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.
- 将 apk 放在您的 Web 服务器上
- 使用以下方法创建 QR 条码图像:http: //chart.apis.google.com/chart?cht=qr&chs=150x150&chld=H|1&chl= http: //myserver/myapp.apk
- 然后通过电子邮件将条形码发送给他,并告诉他使用条形码阅读器应用程序扫描它。
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.
条码阅读器应用程序将看到条码并提供一个超链接供用户点击。他们点击链接,应用程序就会下载并安装。
回答by zed_0xff
compile/build your app, it should produce a file like myAppName.apk
, just send it via email to your friend
编译/构建您的应用程序,它应该会生成一个类似 的文件myAppName.apk
,只需通过电子邮件将其发送给您的朋友
try to look in yourProjectPath/bin
folder
尝试查看yourProjectPath/bin
文件夹
回答by amithgc
You can also right-click on your project(in eclipse) and click on exportthen select "Export Android Application" and give all the details... after you finish you will have a myAppName.apk, which you can email
您也可以右键单击您的项目(在 Eclipse 中)并单击导出,然后选择“导出 Android 应用程序”并提供所有详细信息...完成后您将拥有一个 myAppName.apk,您可以通过电子邮件发送
回答by Ryan Conrad
Export Android Applicationwould 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.
导出 Android 应用程序将是生成 apk 的正确方法。使用 eclipse 使用的那个有调试信息,而且它是用调试密钥签名的,而不是实际的密钥。如果您安装了一个用一个密钥签名的应用程序,然后尝试安装一个使用不同密钥的应用程序(相同的包名),您将首先必须先卸载原始应用程序。
回答by RUGVED
I assume you are using Android Studio for application development.
我假设您正在使用 Android Studio 进行应用程序开发。
Follow these steps:
按着这些次序:
Go to "build" from the navigation bar in Android Studio.
从 Android Studio 的导航栏中转到“构建”。
Go to "build bundle(s)/APK(s)" from the drop down that appears.
从出现的下拉菜单中转到“构建包/APK”。
Click on "build APK(s)". You will get a notification box at the bottom right of your screen.
单击“构建 APK”。您将在屏幕右下角看到一个通知框。
Click on "locate". Two files will appear. One is a ".json" file and one is an ".apk" file.
点击“定位”。将出现两个文件。一个是“.json”文件,一个是“.apk”文件。
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.
在 WhatsApp 上将这些文件发送给您的朋友,并告诉他们下载 JSON 文件并安装 APK 文件。现在您的应用程序正在运行。
You are done.
你完成了。
回答by user1970907
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.
简单的答案是它非常简单,Droid 设备了解 APK 是什么。因此,告诉您的朋友在设置-> 安全性(目前不是设置-> 应用程序)中检查“启用未知来源”。然后通过电子邮件将 APK 发送给他们。收到它后,Droid 将安装它,或者他们可以将它下载到下载,他们也可以从那里安装它。接受权限,然后离开。
回答by rubo77
In Android Studio build with "build"->"Build Bundle"->"Build APKs" which you'll find in the folder app/build/outputs/apk/debug
then.
在 Android Studio 中,使用“build”->“Build Bundle”->“Build APKs”,您将在文件夹中找到它app/build/outputs/apk/debug
。
You cannot attach the file in your email directly, since APKs are treated as junkby most email providers. So upload the apk somewhere and send the link to your co-worker.
您不能直接在电子邮件中附加文件,因为大多数电子邮件提供商将APK 视为垃圾。因此,将 apk 上传到某个地方并将链接发送给您的同事。
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)
- 重命名文件:
.bin
在文件名末尾附加(即 myApp.apk.bin) - 发送假
.bin
文件 - 告诉接收器,他们必须
.apk
在安装前将其重命名为普通。(在 android 上可以使用文件管理器进行重命名,例如 Totalcommander)
回答by amithgc
You can use the Microsoft App Centerto build and distribute your Signed/Unsigned APK with your beta testers.
您可以使用 Microsoft应用中心与您的 Beta 测试人员一起构建和分发您的签名/未签名 APK。
Oryou can also use Google Drive, DropBox, Amazon S3 to distribute your APK
或者您也可以使用 Google Drive、DropBox、Amazon S3 来分发您的 APK