Code example for KeyManagementException

Methods: getMessage, printStackTrace

0
            e.printStackTrace();
        } catch (IOException e) {
            Log.e(LOGTAG, "GCMIntentService : init : " + e.getMessage());
            e.printStackTrace();
        } catch (KeyManagementException e) {
            Log.e(LOGTAG, "GCMIntentService : init : " + e.getMessage());
            e.printStackTrace();
        } catch (KeyStoreException e) {
            Log.e(LOGTAG, "GCMIntentService : init : " + e.getMessage());
            e.printStackTrace();
        } 
 
    } 
 
    @Override 
    protected void onRegistered(Context context, String registrationId) {
        init(context);
        // Log.d(LOGTAG, "GCMIntentService : onRegistered : We're now registered with ID " + registrationId); 
        sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
        sharedPreferenceEditor = sharedPrefs.edit();