BinaryBlue / imsdroid

Automatically exported from code.google.com/p/imsdroid
0 stars 0 forks source link

Events conflict when running different apps using android-ngn-stack #563

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install and run two different apps running android-ngn-stack
2.
3.

What is the expected output? What do you see instead?
SIP events of one application should affect only such application. Events are 
also received and handled by the second application instead.

What version of the product are you using? On what operating system?

Please provide any additional information below.
Android-ngn-stack uses Context.sendBroadcast to send events. This method will 
also propagate such events cross-applications. Android guidelines suggest to 
use LocalBroadcastManager when you know that the data you are broadcasting 
won't leave your app. This also will address some security issues.

Please refer to: 
http://developer.android.com/reference/android/support/v4/content/LocalBroadcast
Manager.html

Note: Using LocalBroadcastManager requires Android Support Library v4.

Original issue reported on code.google.com by massimo....@gmail.com on 21 Jul 2015 at 3:38