pdog
buzztouch Evangelist
Profile
Posts: 106
Reg: Nov 20, 2013
Kelowna, BC, Ca...
6,310
12/09/13 11:07 PM (11 years ago)

How to take my APK from eclipse and stick it on my Android phone? keys needed?

If I want to see my test app run on my HTC One (android device) what are the steps? Is it simply a matter of taking my apk file from eclipse, uploading it e.g. to dropbox and double-clicking it from my android device browser? ...or do I need to go through the whole key generation procedure and upload it to google play as debug etc.? I can't seem to find this info easily on BT.
 
Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
like
12/09/13 11:20 PM (11 years ago)
for just testing purposes you can transfer the apk to your phone by wifi bluetooth or usb cable or dropbox and run the apllication . but for publishing it to playstore you need to need to go through key generation which is a 2 minute process
 
pdog
buzztouch Evangelist
Profile
Posts: 106
Reg: Nov 20, 2013
Kelowna, BC, Ca...
6,310
like
12/09/13 11:23 PM (11 years ago)
ok cool. so if I want to use the cable or dropbox what are the steps?
 
Akshay
I hate code!
Profile
Posts: 193
Reg: Mar 07, 2013
Pune ,India
1,930
like
12/09/13 11:29 PM (11 years ago)
cable: connect the phone to pc.put the apk somewhere on memory card/phone storage unplug it .then run the apk dropbox: as u said it the most easier way: connect phone to pc by usb cable. in eclise run application(right click on project>>run as>>android application then it will show your android device listed .double click om it if this dosent work then try any of the first two
 
bigPaul
Lost but trying
Profile
Posts: 103
Reg: Mar 08, 2013
Darwin
4,530
like
12/09/13 11:33 PM (11 years ago)
The good thing about Android is that you can load up an app to your phone without going through the google Play store. This is particularly so if your developing a dedicated business app that only requires limited distribution. You simply need to create the apk file in eclipse using the android debug key. Edit: File > Export > Export Android Application use existing keystore > location:(usually) C:\Users\Owner\.android\debug.keystore > password: android > key alias : androiddebugkey > password: android Once you have done that, there is several ways of getting it on your phone. I had previously been using a wifi transfer app, but since you mentioned dropbox, I just loaded dropbox app to phone, moved apk file on pc to dropbox, hit refresh on the phone app to 'get' the file and yes it works!
 
pdog
buzztouch Evangelist
Profile
Posts: 106
Reg: Nov 20, 2013
Kelowna, BC, Ca...
6,310
like
12/09/13 11:40 PM (11 years ago)
Thanks so much guys: I tried the dropbox option (btw everyone this makes it so easy to move files and photos back and forth to your android device): - [pc] from eclipse, I exported my app (had to make some keys etc. but that was easy) - [pc] ...it put the file on my pc as an .apk - [pc] copied the .apk file to my dropbox folder - [android] accessed the dropbox app, went to the folder, clicked on the .apk file - [android] chose the "installer" app to open it - [android] had some issue with my settings not allowing "unknown" sources to install so had to disable that for now, can turn it back on after install - [android] tried again to install and it then asked for some permissions etc. and I continued ok and opened the app :) My first little app is running on my phone. So excited.. Now I can't sleep! :) Thanks again!
 
Caslor
Android Fan
Profile
Posts: 191
Reg: Jul 26, 2013
athens
1,910
like
12/10/13 02:11 PM (11 years ago)
if you manage to get an compiled .apk file then you can just download it to your phone and by email.. some times that didnt have the cable i was uploading my test .apk file to the mailbox (gmail for me) save it to the drafts... and later from my phone i was login to my email acount and i was downloading the attached file.. if the file was not proposed to be install automatic (most of the times) then with a file explorer application for android.. i was going to the download folder of my sd card/system and i install it.. of course the most effective way to test your application in your device is through the eclipse.. just select run, run as , 1 android application from upper tab menu of eclipse then hit again run and will show a selection with your device if it is connected to the usb choose it and continue... the application will be install to your device as it would be from the .apk file so you can test it.. and if everything work fine then you can extract the .apk file for google play market
 
Moestress
Android Fan
Profile
Posts: 91
Reg: Feb 12, 2012
Lynwood
4,110
like
01/03/14 10:33 AM (11 years ago)
Yea! Congrats! Yes, since I installed my app on my phone " design mode" its been so much easier. Can view and work on my new app baby! Yeah! Happy New Year! lol
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.