Giter Site home page Giter Site logo

boot_completed's People

Contributors

michael-cheung-thebus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

boot_completed's Issues

None of the following functions can be called with the arguments supplied

package com.example.sooh

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

class BootReceiver : BroadcastReceiver() {
override fun onReceive(context: Context, intent: Intent) {
if (intent.action != null) {
if (intent.action !! == Intent.ACTION_BOOT_COMPLETED || intent.action !! == Intent.ACTION_LOCKED_BOOT_COMPLETED) {
val i = Intent(context, MainActivity::class.java);
context.startActivity(i);
}
}
}
}

But when after device reboot then catch "Unfortunately, sooh has stopped"

Error building apk

Hello, I tried to use your package in my app, so then I installed it correctly and a follow the steps which are described in README.md, but I got the following error when I tried to build the apk:

E:\Usuarios\Mauro\Documentos\AndroidStudioProjects\prueba_vibrator\android\app\src\main\kotlin\com\example\pruebavibrator\ExampleApplication.kt: (16, 48): Type mismatch: inferred type is PluginRegistry? but FlutterEngine was expected

I changed the parameter's type to FlutterEngine, but I still am getting errors:

E:\Usuarios\Mauro\Documentos\AndroidStudioProjects\prueba_vibrator\android\app\src\main\kotlin\com\example\pruebavibrator\ExampleApplication.kt: (15, 35): Unresolved reference: FlutterEngine

I hope you can help me. Best regards.

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.