Giter VIP home page Giter VIP logo

apkcenterandroid's Introduction

Name: Niek Tuytel (Okido)
Discord: Okido#3690
Tel: +31618395(six)(six)8

life journey (birth day: 29/07/1999)

2003 >> 2016 = School
2016 >> (29/11/)2018 = Mechanic by https://www.peinemann.nl/en/
2018 >> 2020 (Coding: .java,.kt,.py, .c, .cs, .cpp [Mobile + Web])
2020 >> 2021 Machine Learning (Coding: .py, .cs)
2021 >> Now Working for Lucrasoft, As developer in C# and Azure

apkcenterandroid's People

Contributors

niektuytel avatar

Watchers

 avatar

apkcenterandroid's Issues

update apks

update apks on a specific time (schedule service)

downloading apps that are pre-installed `Failed`

when download a app, sometime he will failed on installing apk on the device.
This can be something like this app is already installed in the system apps or somewhere on the device and than the installation failed.

code of issue coming from:

        if(responseCode == 200) {
            // download apk on device
            File path = Environment.getExternalStorageDirectory();
            File file = new File(path, filename);
            Uri apkProvider = FileProvider.getUriForFile(this, BuildConfig.APPLICATION_ID + ".fileprovider", file);

            if (!file.exists()) {
                return;
            }

            mDbInstalled.installSucceeded(mTitle);

            Intent installIntent = new Intent();
            installIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            installIntent.setAction(Intent.ACTION_INSTALL_PACKAGE);
            installIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION | Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION);
            installIntent.setDataAndType( apkProvider, "application/vnd.android.package-archive");
            this.startActivity(installIntent);

            if(mCallback != null) {
                mCallback.onServiceFinished(mTitle);
            }
        }

add permission popup user only have to agree

 private void GetPermission() {
        // Here, thisActivity is the current activity
        if (Build.VERSION.SDK_INT >= 27 && ContextCompat.checkSelfPermission(this, android.Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {

            // Should we show an explanation?
            if (ActivityCompat.shouldShowRequestPermissionRationale(this, android.Manifest.permission.READ_EXTERNAL_STORAGE)) {
                ActivityCompat.requestPermissions(this, new String[]{android.Manifest.permission.READ_EXTERNAL_STORAGE
                }, MY_PERMISSIONS_READ_STORAGE);
                // Show an explanation to the user *asynchronously* -- don't block
                // this thread waiting for the user's response! After the user
                // sees the explanation, try again to request the permission.

            } else {

                // No explanation needed, we can request the permission.

                ActivityCompat.requestPermissions(this,
                        new String[]{
                                android.Manifest.permission.READ_EXTERNAL_STORAGE
                        },
                        MY_PERMISSIONS_READ_STORAGE);

                // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an
                // app-defined int constant. The callback method gets the
                // result of the request.
            }
        } else doWorkAfterPermissionGranted();
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.