What happens in android when i have an intentService that gets called multiple times before onHandleIntent completes. Let me show you an example:

say i have a intent service that looks like this:

public class AService extends IntentService {
    public AService() {
        super("AService");
    }

    @Override
    protected void onHandleIntent(Intent intent) {
            // magic happens here but lets pretend it takes 3 mins.
        }

}


Now lets say i call this service multiple times, do the requests get queued ? How is concurrency handled or am i expected to handle it by putting a synch block in onHandleIntent like this:

synchronized (AService.class) {
            //do stuff here 
        }



Question: Hide microphone button Android virtual keyboard
Answer: You can't force the user input through anything other than pre-defined keyboards that already exist in the user's device.

The only way you could get around this is by programming your own custom, on-the-fly keyboard, and that is a very bad idea.

Just disable voice input programmatically by using XML declarations in the EditText you're looking at.  You can do this with the attribute:

android:privateImeOptions="nm"