Android 5.0SIM card URI
Last Update:2015-08-07
Source: Internet
Author: User
<span id="Label3"></p> <!--WizRtf2Html Charset=0 --><span style="font-weight:bold;font-size:14pt;color:#7f0055;font-family:‘Consolas‘;"><span style="font-weight:bold;font-size:14pt;color:#7f0055;font-family:‘Consolas‘;">private<span style="font-weight:normal;color:WindowText;"> </span>static<span style="font-weight:normal;color:WindowText;"> </span>final<span style="font-weight:normal;color:WindowText;"> <span style="text-decoration:underline;">String</span> <span style="font-weight:bold;font-style:italic;color:#0000c0;">icc_sdn_uri_for_single_slot</span> = <span style="color:#2a00ff;">"content:/ /icc/sdn/subid "</span>;</span> </span></span><span style="font-size:14pt;color:WindowText;font-family:‘Consolas‘;"><span style="font-size:14pt;color:windowtext;font-family: ' Consolas ';"><span style="font-weight:bold;color: #7f0055;">priva Te </span> <span style="font-weight:bold;color: #7f0055;">static </span> <span style="font-weight:bold; Color: #7f0055; ">final </span> <span style="text-decoration:underline; >string </span> <span style=" font-weight:bold; font-style:italic;color: #0000c0; ">icc_adn_uri_for_single_slot </span> = <span style="color: #2a00ff;"> "content://icc/adn/subid" </span>; </span></span><span style="font-size:14pt;color:WindowText;font-family:‘Consolas‘;"><span style="font-size:14pt;color:WindowText;font-family:‘Consolas‘;"> <span style="font-weight:bold;color:#7f0055;">private</span> <span style="font-weight:bold;color:#7f0055;">static</span> <span style="font-weight:bold;color:#7f0055;">final</span> <span style="text-decoration:underline;">String</span> <span style="font-weight:bold;font-style:italic;color:#0000c0;">icc_pbr_uri_for_single_slot</span> = <span style="color:#2a00ff;">" Content://icc/pbr/subid "</span>;</span></span><span style="font-size:14pt;color:WindowText;font-family:‘Consolas‘;"><span style="font-size:14pt;color:WindowText;font-family:‘Consolas‘;"><br></span></span><pre class="prettyprint linenums prettyprinted"> <ol class="linenums" style="padding-left: 0px;"> <li style="list-style-type: none; padding-left: 0px;" class="L0"><li style="list-style-type: none; padding-left: 0px;" class="L0"><code class="language-java"><span class="kwd">private</span><span class="pln"> </span><span class="kwd">void</span><span class="pln"> generateSdnUri</span><span class="pun">()</span><span class="pln"> </span><span class="pun">{</span></code></li></li> <li style="list-style-type: none; padding-left: 0px;" class="L1"><li style="list-style-type: none; padding-left: 0px;" class="L1"><code class="language-java"><span class="pln"> </span><span class="typ">String</span><span class="pln"> str </span><span class="pun">=</span><span class="pln"> ICC_SDN_URI_FOR_SINGLE_SLOT</span><span class="pun">;</span></code></li></li> <li style="list-style-type: none; padding-left: 0px;" class="L2"><li style="list-style-type: none; padding-left: 0px;" class="L2"><code class="language-java"><span class="pln"> </span><span class="kwd">if</span><span class="pln"> </span><span class="pun">(</span><span class="pln">isGeminiEnabled</span><span class="pun">())</span><span class="pln"> </span><span class="pun">{</span></code></li></li> <li style="list-style-type: none; padding-left: 0px;" class="L3"><li style="list-style-type: none; padding-left: 0px;" class="L3"><code class="language-java"><span class="pln"> </span><span class="com">// like:"content://icc/sdn2"</span></code></li></li> <li style="list-style-type: none; padding-left: 0px;" class="L4"><li style="list-style-type: none; padding-left: 0px;" class="L4"><code class="language-java"><span class="pln"> str </span><span class="pun">+=</span><span class="pln"> </span><span class="pun">(</span><span class="pln">mSlotId </span><span class="com">/*+ 1*/</span><span class="pun">);</span></code></li></li> <li style="list-style-type: none; padding-left: 0px;" class="L5"><li style="list-style-type: none; padding-left: 0px;" class="L5"><code class="language-java"><span class="pln"> </span><span class="pun">}</span></code></li></li> <li style="list-style-type: none; padding-left: 0px;" class="L6"><li style="list-style-type: none; padding-left: 0px;" class="L6"><code class="language-java"><span class="pln"> mSdnUri </span><span class="pun">=</span><span class="pln"> </span><span class="typ">Uri</span><span class="pun">.</span><span class="pln">parse</span><span class="pun">(</span><span class="pln">str</span><span class="pun">);</span></code></li></li> <li style="list-style-type: none; padding-left: 0px;" class="L7"><li style="list-style-type: none; padding-left: 0px;" class="L7"><code class="language-java"><span class="pln"> </span><span class="pun">}</span></code></li></li> </ol></pre><br><br><br>From for Notes (Wiz)<br><br><p><p>Android 5.0SIM card URI</p></p></span>