简体   繁体   English

如何在手机上运行简单的Android应用程序?

[英]How to run simple android app on my phone?

I wrote a simple application for android, it works fine on my phone, but i want to run it on my phone without connecting my phone to the computer, i mean i want to install the application on my computer. 我为Android编写了一个简单的应用程序,它可以在手机上正常工作,但是我想在手机上运行它而无需将手机连接到计算机,我的意思是我想在计算机上安装该应用程序。 How can i do this? 我怎样才能做到这一点? Also what if i want to send this app to a frind? 另外,如果我想将此应用发送给朋友该怎么办? Do i have to install it to market? 我必须将其安装到市场上吗?

Thanks 谢谢

After you will run for the first time the application on the phone (launched from the computer), it will remain installed after you disconnect the phone from the computer. 首次在手机上运行该应用程序(从计算机启动)后,在断开手机与计算机的连接后,该应用程序将保持安装状态。

Then you can launch it from the Applications menu. 然后,您可以从“应用程序”菜单启动它。

The first thing you need to do is create an .apk file. 您需要做的第一件事是创建一个.apk文件。 Here is a question about creating it. 这是有关创建它的问题

You can then put it on the play store, or upload the .apk to a server and use the URL to download it. 然后,您可以将其放在Play商店中,或将.apk上传到服务器,然后使用URL下载它。

Or you could just copy the .apk from your computer onto your phone then just click the file and it will install. 或者,您也可以将.apk从计算机复制到手机上,然后单击该文件即可安装。

Using anything other than the market will require the user to 'allow applications from unknown sources'. 使用市场以外的任何其他东西都将要求用户“允许来自未知来源的应用程序”。

Preinstalled applications are in /system/app folder. 预安装的应用程序位于/system/app文件夹中。 User installed applications are in /data/app . 用户安装的应用程序位于/data/app I guess you can't access unless you have a rooted phone. 我想除非您拥有一部扎根的手机,否则您将无法访问。 Try to carry with your external memory card. 尝试随身携带外部存储卡。

If you want to reach your .apk file simply try below... 如果您想访问.apk文件,请尝试以下操作...

I assumed you are using Eclipse.. 我以为您正在使用Eclipse。

in /bin folder of your project you can see appName.apk then copy and send it to your friend. 在项目的/bin文件夹中,您可以看到appName.apk然后将其复制并发送给您的朋友。

If you use eclipse you need to do a right click on the project folder. 如果使用eclipse,则需要在项目文件夹上单击鼠标右键。
There you have the menu for android tools. 那里有android工具菜单。
There you must click the export (un)signed application package button and then a wizard opens where you have to do some settings. 在那里,您必须单击导出(未签名)的应用程序包按钮,然后将打开一个向导,您必须在其中进行一些设置。 (I prefer sigend one). (我更喜欢第一个)。
There you need to create a new keystore and a new certificate. 在这里您需要创建一个新的密钥库和一个新的证书。 It does not really matter what you insert there. 您在此处插入的内容并不重要。
After you created these files you can save an "apk" and copy it to your device. 创建这些文件后,您可以保存一个“ apk”并将其复制到您的设备中。
There you simply have to open the apk and the app will be installed. 在那里,您只需要打开apk即可安装该应用程序。
But I don't know how to install the app on your pc. 但是我不知道如何在您的PC上安装该应用程序。 I just know that you can run an emulator and install it there (bluestack is the emulators' name). 我只知道您可以运行一个模拟器并将其安装在此处(bluestack是模拟器的名称)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在我的Galaxy手机上部署简单的Android应用 - Cannot deploy simple Android app on my Galaxy phone 如何仅在手机上而不是选项卡上运行android应用 - how to run android app only on phone ,not on tab 无法在Android手机上运行我的应用 - Can't Run My App on My Android Phone 当我在手机上运行应用时。版本为android 4.0.3 - when I run app on my phone.The version is android 4.0.3 让我的应用程序运行几个小时会导致Android手机冻结 - Having my app run for several hours causes android phone to freeze 只有一种方法可以在真实的 Android 手机上运行我的 Flutter 应用程序吗? - Is there only one way to run my Flutter app on a real Android phone? 如何在手机中安装我的应用程序以在Android手机中安装印地文键盘? - How to install hindi keyboard in android phone with the installation of my app in phone? 如何让我的应用程序始终在用户手机的后台运行 - How to allow my app to run always in background in user's phone 如何在笔记本电脑上显示我的Android手机应用程序 - How to display my android phone app on my laptop 我的第一个Android应用无法在我的Android设备(手机)中正常运行 - My First Android app won't run correctly in my Android Device (Mobile Phone)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM