Giter VIP home page Giter VIP logo

Comments (12)

judemanutd avatar judemanutd commented on May 21, 2024

Could you post the entire error log please. Which model are you trying this on?

from autostarter.

ItsKlork avatar ItsKlork commented on May 21, 2024

im trying this on the xiaomi redmi note 7

from autostarter.

judemanutd avatar judemanutd commented on May 21, 2024

@ItsKlork Just tried it out on the redmi note 7 and works fine. Could you post the error log along with the android version and miui version on the phone.

Have you run the example app from the repo, does that work?

from autostarter.

ItsKlork avatar ItsKlork commented on May 21, 2024

2019-12-07 11:28:04.696 21706-21706/com.dev.mapup W/System.err: at com.judemanutd.autostarter.AutoStartPermissionHelper.startIntent(AutoStartPermissionHelper.kt:268)
2019-12-07 11:28:04.696 21706-21706/com.dev.mapup W/System.err: at com.judemanutd.autostarter.AutoStartPermissionHelper.autoStartXiaomi(AutoStartPermissionHelper.kt:122)
2019-12-07 11:28:04.697 21706-21706/com.dev.mapup W/System.err: at com.judemanutd.autostarter.AutoStartPermissionHelper.getAutoStartPermission(AutoStartPermissionHelper.kt:85)
2019-12-07 11:28:04.697 21706-21706/com.dev.mapup W/System.err: at com.judemanutd.autostarter.AutoStartPermissionHelper.startIntent(AutoStartPermissionHelper.kt:268)
2019-12-07 11:28:04.697 21706-21706/com.dev.mapup W/System.err: at com.judemanutd.autostarter.AutoStartPermissionHelper.autoStartXiaomi(AutoStartPermissionHelper.kt:122)
2019-12-07 11:28:04.697 21706-21706/com.dev.mapup W/System.err: at com.judemanutd.autostarter.AutoStartPermissionHelper.getAutoStartPermission(AutoStartPermissionHelper.kt:85)

from autostarter.

ItsKlork avatar ItsKlork commented on May 21, 2024

nothing is happening

from autostarter.

judemanutd avatar judemanutd commented on May 21, 2024

@ItsKlork Which miui version are you on?

from autostarter.

ItsKlork avatar ItsKlork commented on May 21, 2024

MIUI Global 11.0.4

from autostarter.

judemanutd avatar judemanutd commented on May 21, 2024

Got the same phone with the same version, works perfectly fine, no clue what's up.

from autostarter.

judemanutd avatar judemanutd commented on May 21, 2024

If you could create a separate repo recreating this exact bug I could give this a try else looks like there's something local to your phone that's causing the issue

from autostarter.

ItsKlork avatar ItsKlork commented on May 21, 2024

How should I use the AutoStarter in code (in onCreate)? Just to be sure

from autostarter.

judemanutd avatar judemanutd commented on May 21, 2024

Yep that should work fine, it doesn't really depend on any activity lifecycle as such but any lifecycle events after onCreate should be more than safe to use the code in, instead of using the application context try using the activity context instead and see if that works

from autostarter.

judemanutd avatar judemanutd commented on May 21, 2024

closing this issue as there is no further action to be taken

from autostarter.

Related Issues (20)

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.