app/src/main/java/fr/neamar/kiss/DataHandler.java
/**
     * Generate an intent that can be used to start or stop the given provider
     *
     * @param name The name of the provider
     * @return Android intent for this provider
     */
Generate an intent that can be used to start or stop the given provider
@param name The name of the provider
@return Android intent for this provider
Generate an intent that can be used to start or stop the given provider @param name The name of the provider @return Android intent for this provider
private Intent providerName2Intent(String name) {
        StringBuilder className = new StringBuilder(50);
        className.append(PROVIDER_PREFIX);
        className.append(Character.toUpperCase(name.charAt(0)));
        className.append(name.substring(1).toLowerCase(Locale.ROOT));
        className.append("Provider");
        try {
            return new Intent(this.context, Class.forName(className.toString()));
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
            return null;
        }
    }
private Intent providerName2Intent ( String name ) { StringBuilder className = new StringBuilder ( 50 ) ; className . append ( PROVIDER_PREFIX ) ; className . append ( Character . toUpperCase ( name . charAt ( 0 ) ) ) ; className . append ( name . substring ( 1 ) . toLowerCase ( Locale . ROOT ) ) ; className . append ( "Provider" ) ; try { return new Intent ( this . context , Class . forName ( className . toString ( ) ) ) ; } catch ( ClassNotFoundException e ) { e . printStackTrace ( ) ; return null ; } }
Generate an intent that can be used to start or stop the given provider
 @param name The name of the provider
 @return Android intent for this provider
Generate an intent that can be used to start or stop the given provider @param name The name of the provider @return Android intent for this provider
// Build expected fully-qualified provider class name // Try to create reflection class instance for class name