Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
baqari committed Jun 30, 2017
1 parent 7ab01a1 commit 4ab136d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ public class AnotherActivity extends AppCompatActivity
setContentView(R.layout.activity_another);
Binder.instance().bind(this);
}

# 3 inject receiver method
for example
> public class AnotherActivity extends AppCompatActivity {
@Receiver(actions = {"android.net.wifi.WIFI_STATE_CHANGED","android.net.wifi.STATE_CHANGE"})
public void received(Intent data){
Toast.makeText(this, "test", Toast.LENGTH_SHORT).show();
}

# try to avoid leaks
for example:
> public class AnotherActivity extends AppCompatActivity {
Expand Down

0 comments on commit 4ab136d

Please sign in to comment.