03 2016 档案

摘要:在获取位置的时候首先要判断gps是否打开,如果没有打开就要提示打开,当然最友好的就是直接调转到打开界面。 LocationManager alm = (LocationManager)this.GetSystemService(Context.LocationService); if (alm.Is 阅读全文

posted @ 2016-03-23 09:34 lichen396116416 阅读(899) 评论(0) 推荐(0)

摘要:网上有很多java的写法,但是放在C#中都无法使用,其实有时候还是安下心来认真的去看官网文档比在百度或者google来的快的多 this.RequestedOrientation = Android.Content.PM.ScreenOrientation.Portrait;//竖屏,禁止横屏 th 阅读全文

posted @ 2016-03-23 09:29 lichen396116416 阅读(1157) 评论(0) 推荐(0)

摘要:最近公司要开发android 所以研究了一下Xamarin to android 中个GPS 废话不多说,说重点。 想获取手机上的gps信息必不可少的就是要使用 LocationManager Location 有了这两个类还不行要要给其权限 ACCESS_FINE_LOCATION(如果要问这个权 阅读全文

posted @ 2016-03-03 14:33 lichen396116416 阅读(589) 评论(4) 推荐(2)