Posted on Leave a comment

Architectures of Android applications

update 14/05/2018

About MVVM and Kotlin in architecting-android-reloaded (github)

Forms & Controls
Model View Controller
Model View Presenter
Model View ViewModel
Model View Intent
Comparative Analysis

Continue reading Architectures of Android applications

Posted on Leave a comment

LinkifyCompat, get Urls


    public void find(@NonNull String text) {
        List<String> urls = getLinkifiedUrls(text);
        for (String url : urls) {

    private List<String> getLinkifiedUrls(String text) {
        SpannableString ss = new SpannableString(text);
        LinkifyCompat.addLinks(ss, Linkify.WEB_URLS);
        URLSpan[] urls = ss.getSpans(0, ss.length(), URLSpan.class);
        ArrayList<String> result = new ArrayList<>();
        for (URLSpan url : urls) {
        return result;