title: dual sim android phone which sim receive a call
body: <p>I have an android application that detect the incoming calls, i need to improve this app to work on a duos mobile device.
  so i create a broadcast receiver registered in manifest for actions: phone state changed and on my onReceive method i need to check which sim receive the call. This is my code</p>
  
  <pre><code>   Protected void onReceive(Context c, Intent i)
     {
       Int whichSim = intent
        getIntExtra("simSlot",-1);
        // so this methof return 0            for sim 1 and 1 for sim2
       If(whichSim==-1)
      WhichSim=intent.getIntExtra("com.androie.phone.extra.slot",-1);
       }
  </code></pre>
  
  <p>I run this app on a device 4.2
  2 and its working normally but when i run it on a device 4
  4.4 so this method does not work, i mean that which sim return -1 in all cases. Can anyone help me?</p>