Giter VIP home page Giter VIP logo

netwatch's Issues

Crash at Broadcast manager onReceive.

Getting issue on broadcast receiever ,
on line
ir.drax.netwatch.Ping.resume (Ping.java:79)

Caused by java.lang.NullPointerException
Attempt to invoke virtual method 'void java.lang.Thread.interrupt()' on a null object reference

Fatal Exception: java.lang.RuntimeException
Error receiving broadcast Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4000010 (has extras) } in ir.drax.netwatch.NetworkChangeReceiver@278eadf
Screenshot 2022-01-14 at 4 57 33 PM

Unable to build Netwatch outside the Activity

I am unable to build Netwatch outside the activity because the forceful casting of Context into Activity.

public static Builder builder(Context context){
       return Builder.getInstance((Activity) context);
   }

With Following exception:
W/System.err: java.lang.ClassCastException: com.atom.vpn.demo.AtomDemoApplicationController cannot be cast to android.app.Activity

Ignore the first call.

If i open the app with network connected. I get the callback 'onConnected`. I believe it callbacks should be fired only if the status changes.

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.