Can someone clarify the following:
1. How to perform any network related activity in onCreate method of Activity class or in any other method in
Activity class for that matter? I tried doing it in a Thread, but still it failed, whereas the same thing works well
in a normal Java project (not Android project)? What is the way to do some network activity in Activity class?
2. When the activity runs, does it run in a different environment? I ask this because when I test the code in a
normal Java project, it is able to pick up a text file that a class in a referred JAR uses, if I just place the text
file within "lib" folder. But when I use it within Android, it is unable to find the text file. I do not have the
source code also to find out where the class (which is inside the referred JAR that I refer to in my Activity
class) is searching for that text file?
3. How to start with a layout and then dynamically add additional View objects to the page (something like a
AJAX page refresh)? That is, I have a default View, when I click one choice, it should show a few more View
objects (in addition to existing ones) in same page, and show a different set of objects if I select another
4. How to disable Spinner choice selection after I have selected one item in it and doing some processing in it
and do not want the user to be able to select another choice in between? How to do this in general to any View
Thanks and regards,