Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Tovuti.from(Activity).stop(); Might throw IllegalArgumentException: Receiver not registered #12

@Idomo

Description

@Idomo

I'm not sure why, but sometimes it's cause to this exception, I think you should add try{}catch(Exception e){} to ignore those exceptions (if you don't know too what it the reason for this problem).
For now I added manually this to my onStop():

try{
    Tovuti.from(this).stop();
}catch(Exception ignored){}

It will be nicer if it will be in the library class and not in my activity onStop().

I would change it be myself, but I can't find the Tovuti.java from some reason, it's show me only the class from java/com/androidstudy/networkmanager (the androidstudy project) while in this morning I saw another file (where the monitor methods return void).

Did you merged both projects or I'm toם tired so I can't find this simple file? 🤷‍♂️

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions