While you're building an App (I'm going to learn while building something out of scratch), it's necessary to keep a check on how it's going. For that I'd need to see it working.
There are two ways to do it.
1. Set up your phone : Connect your phone to PC. Make sure that all latest drivers are installed to facilitate the connection. When you choose to run the code on the connected phone, it installs the app on the phone and you can see live changes right there on your phone.
2. Set up Android Virtual Device Manager (AVD) : This tools sets up a virtual Android device in the computer and you can run your app in this device right on your computer.
I wanted to go with the first option as I'd be able to see the app in real life but sadly couldn't go ahead with this option. I have an old Sony Ericsson X8 which I don't use anymore but it works good. I thought I'd use this phone for learning purpose and would hook it up permanently with the laptop but nope, it didn't work. I downloaded Sony's PC suite in hopes of getting the phone connected with the PC. But somewhere something is missing. I can't find the problem. Phone says it's connected but PC suite says No, it's not and I can't access phone on computer. I tried to figure out longer than I should have but couldn't. So, I am going with the second option i.e. AVD.
Setting up AVD : I have setup AVD. Something to note is that allocating RAM of more than 768 MB makes the computer and Eclipse panic. I previously had the RAM set up as 1968 MB but that didn't go well. Computer hung and I had to wait for 10 minutes and that's when I decided to bring the allocated RAM down to recommended numbers. Now, everything seems to be working good. Ready to go!!
Tuesday, 21 January 2014
Subscribe to:
Post Comments (Atom)
I had it at 512 and 736 MB and it still takes 10 to launch the AVD. So I start it at the beginning of my session and leave it open and Android Studio knows to download the app each time I Run it.
ReplyDelete