简体   繁体   中英

test android application in mobile

I am new in android enviroment and my question may be silly.

I developed a small app and I want to transfer it in my mobile.

I follow the steps from manifest file 'Use the Export Wizard to export and sign an APK'.

I transfer it in my mobile but I can't install it. I use the 'easy installer' application to install the apks.

Am I doing something wrong?

EDIT

I have some 3rd party apps on my mobile and I can install them. So the settings from my mobile I assume that are correct.

Thanks

You need to enable USB debugging on the phone itself (by starting the Settings application and selecting Applications > Development > USB Debugging), install the Android USB device driver if you haven't already (Windows only), and then plug the phone into your computer using the USB cable that came with the phone. Close the emulator window if it's already open. As long as the phone is plugged in, Eclipse will load and run applications on the phone instead. You need to right-click the project and select Run As > Android Application.

As you have mentioned that you have developed small application, so you can directly run your application into your mobile through USB cable attached with it, before that check the below points in your real device(ie mobile or tablet):

  1. settings->applications->Unknown Sources, check it true
  2. settings->applications->Development->USB Debugging, check it true
  3. After checking this, just type adb devices command at command prompt(cmd prompt path should be upto platform-tools directory , which you can find inside your android folder), once you run this adb devices command, it will list List of devices attached

if your device is listed successfully (otherwise it displays ???????) then you are able to run application in that particular devices directly.

If you are still facing trouble then go through this link: http://developer.android.com/guide/developing/device.html

要安装签名的APK,请确保首先卸载在开发过程中可能已安装的未签名的应用程序。

您是否在“应用程序设置”中允许“未知来源”?

Not sure what you mean by "can't install it" ? Error message or anything ?

Check if you allowed unknown applications from the menu/settings/applications as advised by Patrick

Then here's my workflow :

  • Connect the phone via usb
  • Activate usb disk
  • Copy the apk somewhere
  • Deactivate the usb disk
  • Launch a file manager (I personally use Astro)
  • Browse to the file click it
  • Choose open with "application manager"
  • Click install

There are a lot of ways you can install:

Firstcheck -> Unknown Sources in Application Settings is Enabled or not ifnot enable.

Using command prompt .

Goto--> android-sdk-folder --> tools ( platform-tools ) -->

Use command adb install yourappname.apk

and enter.

Note: Connect only device at a time if you use this method.

Or

First move the application apk to sdcard then,install from market

'appInstaller' application.

Run app, it fetches apk and select your apk and install it.

Hope it helps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM