Recently I started to learn Android Development. Since the emulator is slow and buggy on my PC, I'm trying to install app directly to my device HTC Desire S.
My questions:
1: How can I stop the application properly? ( I know that I can do it via Devices View in Eclipse, but very often the app just start again. )
2: How can I log only one application in LogCat? ( The process com.fd.httpd->HTCSense is generating a TONS of output. Yes I can make a new filter, but the number of logs from HTCSense is always growing and after approximately 10 000 logs, which is matter of 20 seconds, my logs are deleted because of full buffer. )
3: How should I properly stop the connection between my device and Eclipse? Pulling cable out of device "on the fly" is not the best solution I think. ( For example when I run J2ME project with Ant, in Console view there is "Terminate" button. )
Thank you for your answers/recommendations!
Normally I dont stop the app. I just hit either the home button or the back button until I reach the home screen. The app's activity will be onPause state. In android app's aren't really closed. They are only closed when the phone is low on memory. Like you said, you can kill the process.
AFAIK filter is the way to restrict the view of logs. In ADT 14, now application name is also shown along with the log. I always keep a filter on so it will only show my logs.
I use windows, So in that I click the safely remove USB device and thats it. Sometimes this does screw up eclipse and I stop receiving logs. So I just kill the adb server and start it again.
This is how I normally do things.