Can I edit and continue Android code while debugging in AVD? If so, how to configure it?
No, you cannot edit it during debugging. You will have to restart and run.
It seems with Android Stuio v2.0 and above, this feature (called hot swap) is now available.
https://sites.google.com/a/android.com/tools/tech-docs/instant-run