@@ -0,0 +1,2526 @@
+/**%0A * The MIT License%0A *%0A *%09Copyright (c) 2011-2013%0A *%09Colin Turner (github.com/koolspin)  %0A *%09Guillaume Charhon (github.com/poiuytrez)  %0A *%09%0A *%09Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the %22Software%22), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:%0A *%09%0A *%09The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.%0A *%09%0A *%09THE SOFTWARE IS PROVIDED %22AS IS%22, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.%0A *%0A *%0A */%0A%0Apackage com.phonegap.plugins.VoiceRecognizer;%0A%0Aimport java.util.List;%0A%0Aimport org.apache.cordova.CallbackContext;%0Aimport org.json.JSONArray;%0A%0Aimport android.content.BroadcastReceiver;%0Aimport android.content.Context;%0Aimport android.content.Intent;%0Aimport android.os.Bundle;%0Aimport android.speech.RecognizerIntent;%0A%0Apublic class LanguageDetailsChecker extends BroadcastReceiver%0A%7B%0A    private List%3CString%3E supportedLanguages;%0A    private CallbackContext callbackContext;%0A%0A    public LanguageDetailsChecker(CallbackContext callbackContext) %7B%0A    %09super();%0A    %09this.callbackContext = callbackContext;%0A    %7D%0A    %0A%09@Override%0A%09public void onReceive(Context context, Intent intent) %7B%0A%09%09Bundle results = getResultExtras(true);%0A        %0A%09%09// get the list of supported languages%0A        if (results.containsKey(RecognizerIntent.EXTRA_SUPPORTED_LANGUAGES))%0A        %7B            %0A            // Convert the map to json%0A            supportedLanguages = results.getStringArrayList(RecognizerIntent.EXTRA_SUPPORTED_LANGUAGES);%0A            JSONArray jsonLanguages = new JSONArray(supportedLanguages);%0A            callbackContext.success(jsonLanguages);%0A        %7D else %7B%0A        %09callbackContext.error(%22Could not retrieve the list of supported languages%22);%0A        %7D%0A%09%7D%0A%09%0A%09public List%3CString%3E getSupportedLanguages()%7B%0A%09%09return supportedLanguages;%0A%09%7D%0A%7D%0A

Create LanguageDetailsChecker.java