@@ -0,0 +1,1612 @@
+package de.luhmer.owncloud.accountimporter.helper;%0A%0Aimport android.content.Context;%0Aimport android.content.Intent;%0Aimport android.net.Uri;%0A%0A/**%0A *  Nextcloud SingleSignOn%0A *%0A *  @author David Luhmer%0A *%0A * This program is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU General Public License as published by%0A * the Free Software Foundation, either version 3 of the License, or%0A * (at your option) any later version.%0A *%0A * This program is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU General Public License for more details.%0A *%0A * You should have received a copy of the GNU General Public License%0A * along with this program.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A */%0A%0Apublic class FilesAppNotInstalledHelper %7B%0A%0A    public static void RequestInstallNextcloudFilesApp(Context context) %7B%0A        // DAVdroid not installed%0A        Intent installIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(%22market://details?id=com.nextcloud.client%22));%0A%0A        // launch market(s)%0A        if (installIntent.resolveActivity(context.getPackageManager()) != null) %7B%0A            context.startActivity(installIntent);%0A        %7D else %7B%0A            // no f-droid market app or Play store installed --%3E launch browser for f-droid url%0A            Intent downloadIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(%22https://f-droid.org/repository/browse/?fdid=com.nextcloud.client%22));%0A            context.startActivity(downloadIntent);%0A        %7D%0A    %7D%0A%7D%0A

Add helper method to open the play-store (and install nc files app)