I have 2 questions:
First, I need to to install apk application from my pc to my mobile android?开发者_JAVA技巧
Second, how I run my code in the mobile directly? I install usb driver but my pc can't detect the usb of my mobile
To install an APK on your mobile, you can either:
- Use ADB from the Android SDK, and do the following command:
adb install filename.apk
. Note, you'll need to enable USB debugging for this to work. - Transfer the file to your device, then open it with a file manager, such as Linda File Manager.
Note, that you'll have to enable installing packages from Unknown Sources in your Applications settings.
As for getting USB to work, I suggest consulting the Android StackExchange for advice.
1) Put the apk on your SDKCard and install file browsers like "Estrongs File Explorer", "Easy Installer", etc...
https://market.android.com/details?id=com.estrongs.android.pop&feature=search_result https://market.android.com/details?id=mobi.infolife.installer&feature=search_result
2) Go to your mobile settings - applications- debuging - and thick "USB debugging"
C:\Program Files (x86)\LG Electronics\LG PC Suite\adb>adb install com.lge.filemanager-15052-v3.1.15052.apk
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
2683 KB/s (3159508 bytes in 1.150s)
pkg: /data/local/tmp/com.lge.filemanager-15052-v3.1.15052.apk
Success
C:\Program Files (x86)\LG Electronics\LG PC Suite\adb>
We can use the adb.exe which is there in PC suit, it worked for me. Thanks Chethan
1.question answer-In your mobile having Developer Option in settings and enable that one. after In android studio project source file in bin--> apk file .just copy the apk file and paste in mobile memory in ur pc.. after all finished .you click that apk file in your mobile is automatically installed.
2.question answer-Your mobile is Samsung are just add Samsung Kies software in your pc..its helps to android code run in your mobile ...
精彩评论