2016年3月23日

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

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

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

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