锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产视频视频一区,日韩免费一区二区三区,中文欧美日韩http://www.aygfsteel.com/crazycoding/category/49698.htmlGod helps those who help themselves. zh-cnSun, 20 May 2018 23:30:07 GMTSun, 20 May 2018 23:30:07 GMT60GISmemo 浜ょ偣鍒ゆ柇 綰垮歡闀?/title><link>http://www.aygfsteel.com/crazycoding/archive/2017/01/10/432259.html</link><dc:creator>Ying-er</dc:creator><author>Ying-er</author><pubDate>Tue, 10 Jan 2017 06:57:00 GMT</pubDate><guid>http://www.aygfsteel.com/crazycoding/archive/2017/01/10/432259.html</guid><wfw:comment>http://www.aygfsteel.com/crazycoding/comments/432259.html</wfw:comment><comments>http://www.aygfsteel.com/crazycoding/archive/2017/01/10/432259.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/crazycoding/comments/commentRss/432259.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/crazycoding/services/trackbacks/432259.html</trackback:ping><description><![CDATA[浜ょ偣鍒ゆ柇<br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #0000FF; ">private</span> <span style="color: #0000FF; ">bool</span> isAllLineCrossed()<br />        {<br />            <span style="color: #0000FF; ">bool</span> isCrossed = <span style="color: #0000FF; ">true</span>;<br /><br />            <span style="color: #008000; ">//</span><span style="color: #008000; ">map.DeselectAll();<br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">map.SelectList(TerraceConst.LIST_DIVIDE_AREA);<br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">map.OpenList(TerraceConst.LIST_DIVIDE_AREA, 0);<br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">int numLineCross   = map.ScanGeometry("TMP_List", Constants.SIS_GT_CROSS  , Constants.SIS_GM_GEOMETRY, "", "");<br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">int numLineCrossby = map.ScanGeometry("TMP_List", Constants.SIS_GT_CROSSBY, Constants.SIS_GM_GEOMETRY, "", "");<br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">int numLine        = numLineCross + numLineCrossby;<br /><br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">if (numLine != map.GetListSize(TerraceConst.LIST_DIVIDE_LINE))<br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">    isCrossed = false;<br /><br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">map.CloseItem();<br />            </span><span style="color: #008000; ">//</span><span style="color: #008000; ">map.DeselectAll();</span><span style="color: #008000; "><br /></span><br />            map.EmptyList("TMP_LIST_LINE");<br />            map.EmptyList("TMP_LIST_AREA");<br />            map.EmptyList("TMP_LIST_CROSS");<br /><br />            <span style="color: #008000; ">//</span><span style="color: #008000; ">鍒嗙瓎鐢ㄣ儵銈ゃ兂銇褰㈢窔銈掍綔鎴愩仐銇︺乀MP_LIST_LINE銇櫥閷?/span><span style="color: #008000; "><br /></span>            map.DeselectAll();<br />            map.SelectList(TerraceConst.LIST_DIVIDE_LINE);<br />            map.CreateListFromSelection("TMP_LIST_LINE");<br />            map.CopyListItems("TMP_LIST_LINE");<br />            map.DeselectAll();<br />            map.SelectList("TMP_LIST_LINE");<br />            map.DoCommand("AComBoundary");<br />            map.CreateListFromSelection("TMP_LIST_LINE");<br /><br />            <span style="color: #008000; ">//</span><span style="color: #008000; ">鍒嗙瓎鐢ㄣ偍銉偄銇褰㈢窔銈掍綔鎴愩仐銇︺乀MP_LIST_AREA銇櫥閷?/span><span style="color: #008000; "><br /></span>            map.DeselectAll();<br />            map.SelectList(TerraceConst.LIST_DIVIDE_AREA);<br />            map.CreateListFromSelection("TMP_LIST_AREA");<br />            map.CopyListItems("TMP_LIST_AREA");<br />            map.DeselectAll();<br />            map.SelectList("TMP_LIST_AREA");<br />            map.DoCommand("AComBoundary");<br />            map.CreateListFromSelection("TMP_LIST_AREA");<br /><br />            <span style="color: #008000; ">//</span><span style="color: #008000; ">鍏ュ姏Line銇岀瓎鐣岀窔涓娿伀銇嬨仼銇嗐亱鍒ゆ柇銇椼伨銇?/span><span style="color: #008000; "><br /></span>            <span style="color: #0000FF; ">for</span> (<span style="color: #0000FF; ">int</span> i = 0; i < map.GetListSize("TMP_LIST_LINE"); i++)<br />            {<br />                map.DeselectAll();<br /><br />                map.CombineLists("TMP_LIST_CROSS", "TMP_LIST_LINE", "TMP_LIST_AREA", Constants.SIS_BOOLEAN_OR);<br />                map.CreateBoolean("TMP_LIST_CROSS", Constants.SIS_BOOLEAN_AND);<br />                map.DeselectAll();<br />                map.SelectItem();<br />                map.DoCommand("AComDecompose");<br />                map.CreateListFromSelection("TMP_LIST_CROSS");<br /><br />                <span style="color: #0000FF; ">if</span> (map.GetListSize("TMP_LIST_CROSS") < 2)<br />                {<br />                    isCrossed = <span style="color: #0000FF; ">false</span>;<br />                    <span style="color: #0000FF; ">break</span>;<br />                }<br />            }<br />            <br />            map.EmptyList("TMP_LIST_LINE");<br />            map.EmptyList("TMP_LIST_AREA");<br />            map.EmptyList("TMP_LIST_CROSS");<br /><br />            <span style="color: #0000FF; ">return</span> isCrossed;<br />        }</div><br /> <div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #0000ff;">int</span> lineCnt = map.GetListSize(TerraceConst.LIST_DIVIDE_LINE);<br />             <span style="color: #0000FF; ">double</span> extendR = 50;<br />             Dictionary<<span style="color: #0000FF; ">string</span>, <span style="color: #0000FF; ">double</span>> ptInfos = <span style="color: #0000FF; ">new</span> Dictionary<<span style="color: #0000FF; ">string</span>, <span style="color: #0000FF; ">double</span>>();<br /> <br />             map.EmptyList("TMP_LIST_LINE");<br />             map.EmptyList("TMP_LIST_AREA");<br />             map.EmptyList("TMP_LIST_CROSS");<br /> <br />             <span style="color: #008000; ">//</span><span style="color: #008000; ">鍒嗙瓎鐢ㄣ儵銈ゃ兂銇褰㈢窔銈掍綔鎴愩仐銇︺乀MP_LIST_LINE銇櫥閷層仐銇俱仚</span><span style="color: #008000; "><br /> </span>            map.DeselectAll();<br />             map.SelectList(TerraceConst.LIST_DIVIDE_LINE);<br />             map.CreateListFromSelection("TMP_LIST_LINE");<br />             map.CopyListItems("TMP_LIST_LINE");<br />             map.DeselectAll();<br />             map.SelectList("TMP_LIST_LINE");<br />             map.DoCommand("AComBoundary");<br />             map.CreateListFromSelection("TMP_LIST_LINE");<br /> <br />             <span style="color: #008000; ">//</span><span style="color: #008000; ">鍒嗙瓎鐢ㄣ偍銉偄銇褰㈢窔銈掍綔鎴愩仐銇︺乀MP_LIST_AREA銇櫥閷層仐銇俱仚</span><span style="color: #008000; "><br /> </span>            map.DeselectAll();<br />             map.SelectList(TerraceConst.LIST_DIVIDE_AREA);<br />             map.CreateListFromSelection("TMP_LIST_AREA");<br />             map.CopyListItems("TMP_LIST_AREA");<br />             map.DeselectAll();<br />             map.SelectList("TMP_LIST_AREA");<br />             map.DoCommand("AComBoundary");<br />             map.CreateListFromSelection("TMP_LIST_AREA");<br /> <br />             <span style="color: #008000; ">//</span><span style="color: #008000; ">鍏ュ姏Line銇岀瓎鐣岀窔涓娿伀銇嬨仼銇嗐亱鍒ゆ柇銇椼伨銇?/span><span style="color: #008000; "><br /> </span>            <span style="color: #0000FF; ">for</span> (<span style="color: #0000FF; ">int</span> i = 0; i < map.GetListSize("TMP_LIST_LINE"); i++)<br />             {<br />                 map.DeselectAll();<br />                 map.CombineLists("TMP_LIST_CROSS", "TMP_LIST_LINE", "TMP_LIST_AREA", Constants.SIS_BOOLEAN_OR);<br />                 map.CreateBoolean("TMP_LIST_CROSS", Constants.SIS_BOOLEAN_AND);<br />                 map.DeselectAll();<br />                 map.SelectItem();<br />                 map.DoCommand("AComDecompose");<br />                 map.CreateListFromSelection("TMP_LIST_CROSS");<br /> <br />                 <span style="color: #008000; ">//</span><span style="color: #008000; ">鍏ュ姏搴ф銇岀瓎鐣岀窔涓娿伀榪戙亜銇屾帴銇椼仸銇勩仾銇勩仺銇嶃伄鍑︾悊銇с仚銆?/span><span style="color: #008000; "><br /> </span>                <span style="color: #0000FF; ">if</span> (map.GetListSize("TMP_LIST_CROSS") < 2)<br />                 {<br />                     map.DeselectAll();<br />                     map.OpenList(TerraceConst.LIST_DIVIDE_LINE, i);<br />                     map.SelectItem();<br />                     ptInfos = SisCommon.GetCurItemPointInfos(map);<br />                     <span style="color: #0000FF; ">double</span> sx = ptInfos["濮嬬偣X"];<br />                     <span style="color: #0000FF; ">double</span> sy = ptInfos["濮嬬偣Y"];<br />                     <span style="color: #0000FF; ">double</span> sAngle = ptInfos["濮嬬偣瑙掑害"];<br />                     <span style="color: #0000FF; ">double</span> ex = ptInfos["緄傜偣X"];<br />                     <span style="color: #0000FF; ">double</span> ey = ptInfos["緄傜偣Y"];<br />                     <span style="color: #0000FF; ">double</span> eAngle = ptInfos["緄傜偣瑙掑害"];<br /> <br />                     <span style="color: #0000FF; ">if</span> (mode == TerraceConst.MODE_LINE_EXTEND_VERTICALINTERSECT)<span style="color: #008000; ">//</span><span style="color: #008000; ">鍨傜洿銇氦鐐?/span><span style="color: #008000; "><br /> </span>                    {<br /> <br />                     }<br />                     <span style="color: #0000FF; ">else</span> <span style="color: #0000FF; ">if</span> (mode == TerraceConst.MODE_LINE_EXTEND_EXTENSION)<span style="color: #008000; ">//</span><span style="color: #008000; ">寤墮暦綬?/span><span style="color: #008000; "><br /> </span>                    {<br />                         <span style="color: #008000; ">//</span><span style="color: #008000; ">緄傜偣寤墮暦綬?/span><span style="color: #008000; "><br /> </span>                        <span style="color: #0000FF; ">double</span> tx = ex + extendR * Math.Cos(Math.Abs(eAngle + 180) * Math.PI / 180);<br />                         <span style="color: #0000FF; ">double</span> ty = ey + extendR * Math.Sin(Math.Abs(eAngle + 180) * Math.PI / 180);<br />                         map.DeselectAll();<br />                         map.MoveTo(ex, ey, 0);<br />                         map.LineTo(tx, ty, 0);<br />                         map.StoreAsLine();<br />                         map.GetExtent();<br />                         map.AddToList(TerraceConst.LIST_DIVIDE_LINE); <span style="color: #008000; ">//</span><span style="color: #008000; ">銉┿偆銉熾倰銉偣銉堛伀榪藉姞<br /> <br />                         </span><span style="color: #008000; ">//</span><span style="color: #008000; ">濮嬬偣寤墮暦綬?/span><span style="color: #008000; "><br /> </span>                        tx = sx + extendR * Math.Cos(Math.Abs(sAngle + 180) * Math.PI / 180);<br />                         ty = sy + extendR * Math.Sin(Math.Abs(sAngle + 180) * Math.PI / 180);<br />                         map.DeselectAll();<br />                         map.MoveTo(sx, sy, 0);<br />                         map.LineTo(tx, ty, 0);<br />                         map.StoreAsLine();<br />                         map.GetExtent();<br />                         map.AddToList(TerraceConst.LIST_DIVIDE_LINE); <span style="color: #008000; ">//</span><span style="color: #008000; ">銉┿偆銉熾倰銉偣銉堛伀榪藉姞</span><span style="color: #008000; "><br /> </span>                    }<br />                 }<br />             }<br />             <br />             map.EmptyList("TMP_LIST_LINE");<br />             map.EmptyList("TMP_LIST_AREA");<br />             map.EmptyList("TMP_LIST_CROSS");</div><img src ="http://www.aygfsteel.com/crazycoding/aggbug/432259.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/crazycoding/" target="_blank">Ying-er</a> 2017-01-10 14:57 <a href="http://www.aygfsteel.com/crazycoding/archive/2017/01/10/432259.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>#Android 鑾峰緱褰撳墠璁懼涓婂彲鐢↙ocation Provider鍒楄〃http://www.aygfsteel.com/crazycoding/archive/2011/09/28/359698.htmlYing-erYing-erWed, 28 Sep 2011 07:30:00 GMThttp://www.aygfsteel.com/crazycoding/archive/2011/09/28/359698.htmlhttp://www.aygfsteel.com/crazycoding/comments/359698.htmlhttp://www.aygfsteel.com/crazycoding/archive/2011/09/28/359698.html#Feedback0http://www.aygfsteel.com/crazycoding/comments/commentRss/359698.htmlhttp://www.aygfsteel.com/crazycoding/services/trackbacks/359698.htmlLocationManager locationManager;


locationManager = (LocationManager)UserLocationTest.this.getSystemService(Context.LOCATION_SERVICE);


List<String> providers = locationManager.getAllProviders();
            
for(Iterator iterator = providers.iterator();iterator.hasNext();)
            {
                String provider 
= (String)iterator.next();
                System.out.println(
"====" + provider + "===");
            }










Ying-er 2011-09-28 15:30 鍙戣〃璇勮
]]>
#Android 浣跨敤User Location鑾峰彇褰撳墠緇忕含搴?/title><link>http://www.aygfsteel.com/crazycoding/archive/2011/09/25/359471.html</link><dc:creator>Ying-er</dc:creator><author>Ying-er</author><pubDate>Sun, 25 Sep 2011 13:28:00 GMT</pubDate><guid>http://www.aygfsteel.com/crazycoding/archive/2011/09/25/359471.html</guid><wfw:comment>http://www.aygfsteel.com/crazycoding/comments/359471.html</wfw:comment><comments>http://www.aygfsteel.com/crazycoding/archive/2011/09/25/359471.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/crazycoding/comments/commentRss/359471.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/crazycoding/services/trackbacks/359471.html</trackback:ping><description><![CDATA[<p>step1錛氬0鏄庢潈闄? </p> <p> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><span style="color: #0000FF; "><</span><span style="color: #800000; ">uses-permission </span><span style="color: #FF0000; ">android:name</span><span style="color: #0000FF; ">="android.permission.ACCESS_FINE_LOCATION"</span><span style="color: #0000FF; ">/></span></div> <p> </p> <p><br /> </p> <p>step2錛氳幏鍙朙ocationManager瀵硅薄</p> <p> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><span style="color: #000000; ">LocationManager locationManager </span><span style="color: #000000; ">=</span><span style="color: #000000; "> (LocationManager)LocationTest.</span><span style="color: #0000FF; ">this</span><span style="color: #000000; ">.getSystemService(Context.LOCATION_SERVICE);</span></div> <p><br /> </p> <p>step3錛氶夋嫨LocationProvider錛岀粦瀹歀ocationListener瀵硅薄</p> <p> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><span style="color: #000000; ">locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, </span><span style="color: #000000; ">0</span><span style="color: #000000; ">, </span><span style="color: #000000; ">0</span><span style="color: #000000; ">, </span><span style="color: #0000FF; ">new</span><span style="color: #000000; "> MyLocationListener());</span></div> <p> </p> <p><br /> </p> <p>闄勶細MyLocationListener</p> <p> <div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> --><span style="color: #000000; ">    </span><span style="color: #0000FF; ">private</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">class</span><span style="color: #000000; "> MyLocationListener </span><span style="color: #0000FF; ">implements</span><span style="color: #000000; "> LocationListener{<br /> <br />         @Override<br />         </span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">void</span><span style="color: #000000; "> onLocationChanged(Location location) {<br />             </span><span style="color: #008000; ">//</span><span style="color: #008000; "> TODO Auto-generated method stub</span><span style="color: #008000; "><br /> </span><span style="color: #000000; ">            System.out.println(location.getLatitude());<br />             System.out.println(location.getLongitude());<br />         }<br /> <br />         @Override<br />         </span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">void</span><span style="color: #000000; "> onProviderDisabled(String provider) {<br />             </span><span style="color: #008000; ">//</span><span style="color: #008000; "> TODO Auto-generated method stub</span><span style="color: #008000; "><br /> </span><span style="color: #000000; ">            <br />         }<br /> <br />         @Override<br />         </span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">void</span><span style="color: #000000; "> onProviderEnabled(String provider) {<br />             </span><span style="color: #008000; ">//</span><span style="color: #008000; "> TODO Auto-generated method stub</span><span style="color: #008000; "><br /> </span><span style="color: #000000; ">            <br />         }<br /> <br />         @Override<br />         </span><span style="color: #0000FF; ">public</span><span style="color: #000000; "> </span><span style="color: #0000FF; ">void</span><span style="color: #000000; "> onStatusChanged(String provider, </span><span style="color: #0000FF; ">int</span><span style="color: #000000; "> status, Bundle extras) {<br />             </span><span style="color: #008000; ">//</span><span style="color: #008000; "> TODO Auto-generated method stub</span><span style="color: #008000; "><br /> </span><span style="color: #000000; ">            <br />         }<br />         <br />     }</span></div> <br /> <p> </p> <p><br /> </p> <p><br /> </p> <p><br /> </p> <p><br /> </p> <p><br /> </p> <p><br /> </p> <p><br /> </p> <img src ="http://www.aygfsteel.com/crazycoding/aggbug/359471.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/crazycoding/" target="_blank">Ying-er</a> 2011-09-25 21:28 <a href="http://www.aygfsteel.com/crazycoding/archive/2011/09/25/359471.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">贺兰县</a>| <a href="http://" target="_blank">黑龙江省</a>| <a href="http://" target="_blank">尼木县</a>| <a href="http://" target="_blank">和龙市</a>| <a href="http://" target="_blank">平罗县</a>| <a href="http://" target="_blank">潜江市</a>| <a href="http://" target="_blank">静海县</a>| <a href="http://" target="_blank">海丰县</a>| <a href="http://" target="_blank">本溪</a>| <a href="http://" target="_blank">靖安县</a>| <a href="http://" target="_blank">宜州市</a>| <a href="http://" target="_blank">绥棱县</a>| <a href="http://" target="_blank">泌阳县</a>| <a href="http://" target="_blank">汶川县</a>| <a href="http://" target="_blank">泸州市</a>| <a href="http://" target="_blank">金沙县</a>| <a href="http://" target="_blank">竹山县</a>| <a href="http://" target="_blank">南召县</a>| <a href="http://" target="_blank">牙克石市</a>| <a href="http://" target="_blank">肃北</a>| <a href="http://" target="_blank">和平区</a>| <a href="http://" target="_blank">涞水县</a>| <a href="http://" target="_blank">台中市</a>| <a href="http://" target="_blank">太保市</a>| <a href="http://" target="_blank">同德县</a>| <a href="http://" target="_blank">宝兴县</a>| <a href="http://" target="_blank">沙洋县</a>| <a href="http://" target="_blank">土默特右旗</a>| <a href="http://" target="_blank">介休市</a>| <a href="http://" target="_blank">周至县</a>| <a href="http://" target="_blank">上栗县</a>| <a href="http://" target="_blank">和田县</a>| <a href="http://" target="_blank">如东县</a>| <a href="http://" target="_blank">丹棱县</a>| <a href="http://" target="_blank">额尔古纳市</a>| <a href="http://" target="_blank">泊头市</a>| <a href="http://" target="_blank">浙江省</a>| <a href="http://" target="_blank">古蔺县</a>| <a href="http://" target="_blank">临沧市</a>| <a href="http://" target="_blank">张掖市</a>| <a href="http://" target="_blank">二连浩特市</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>