src/main/java/de/blau/android/voice/Commands.java
/**
     * Create Note at a Location
     * 
     * @param words the text voice recognition understood
     * @param lonE7 WGS84*1E7 longitude
     * @param latE7 WGS84*1E7 latitude
     * @return the created Note or null
     */
Create Note at a Location

@param words the text voice recognition understood
@param lonE7 WGS84*1E7 longitude
@param latE7 WGS84*1E7 latitude
@return the created Note or null
Create Note at a Location @param words the text voice recognition understood @param lonE7 WGS84 * 1E7 longitude @param latE7 WGS84 * 1E7 latitude @return the created Note or null
@NonNull
    private static Note createNote(@NonNull List<String> words, final int lonE7, final int latE7) {
        Note n = new Note(latE7, lonE7);
        StringBuilder input = new StringBuilder();
        for (String word : words) {
            input.append(word);
            input.append(" ");
        }
        n.addComment(input.toString().trim());
        n.open();
        n.setChanged(true);
        App.getTaskStorage().add(n);
        return n;
    }
@ NonNull private static Note createNote ( @ NonNull List < String > words , final int lonE7 , final int latE7 ) { Note n = new Note ( latE7 , lonE7 ) ; StringBuilder input = new StringBuilder ( ) ; for ( String word : words ) { input . append ( word ) ; input . append ( " " ) ; } n . addComment ( input . toString ( ) . trim ( ) ) ; n . open ( ) ; n . setChanged ( true ) ; App . getTaskStorage ( ) . add ( n ) ; return n ; }
Create Note at a Location
Create Note at a Location