Profile cover photo
Profile photo
Kamlesh Yadav
596 followers
596 followers
About
Posts

Network Changed Broadcast Reciver does not executes in One Plus Phones

I have a Broadcast Reciever name "NetworkReciver.java" that executes when Internet is Connected or Disconnected. And it is working well.

But when app is closed from recent apps, then NetworkReciver.java does not executes in One Plus 6 Phone while it works proper in Samsung Phones.

I am not getting why the behaviour is different in One Plus Device

My Code

Manifest

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="com.android.alarm.permission.SET_ALARM" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />


<receiver android:name=".NetworkReciever" >
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>
NetworkReciever.java:

public class NetworkReciever extends BroadcastReceiver
{

@Override
public void onReceive(Context context, Intent intent)
{
Log.i("TAG", "Network REceiver Executed");
}
}
Problem : NetworkReciever does not execute when app is closed from recent apps in One Plus Device.

Post has attachment
propeller 1aa1e2a6e772cac4abf8ac7aa5e30809
<meta name="propeller" content="1aa1e2a6e772cac4abf8ac7aa5e30809">

Post has attachment

Post has attachment
**
<meta name="propeller" content="1aa1e2a6e772cac4abf8ac7aa5e30809">

Post has attachment
Life Hacks Neetu
$*#@%$ ca-app-pub-1137779481600990/5267808203

Post has attachment
Working with Images In Android
Working
with Images Images are used to make the user interface interactive and
more user friendly. Images can be used with almost all the widgets like
TextView, EditText, Buttons, ImageButtons etc. To use the images we need to create a “drawable” folder in
...

Post has attachment
Android Spinner Example
Spinner Spinner is a widget which provides a quick way to
select a value from a set. A spinner presents multiple options/items to the
user from which user can select one option. For ex.   In game application when we want user to
select a particular level he...

Post has attachment
Thoughts New Mo
$*#@%$ ca-app-pub-4111868940087848/2124211796

Post has attachment
Day Wishes Mo
$*#@%$ ca-app-pub-4111868940087848/2124211796 Day Wishes Images and Quotes

Post has attachment
Lovely Girls Admo
$*#@%$ ca-app-pub-4111868940087848/1892089845
Wait while more posts are being loaded