随笔分类 -  Android

Android设置横竖屏
摘要:如果想让它一直是横屏显示的话,只要在配置文件中设置android:screenOrientation="landscape"就行了,或者在代码中setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);。 阅读全文

posted @ 2015-07-04 09:53 joannae 阅读(311) 评论(0) 推荐(0)

android mapView
摘要:1.Because the Maps library is not a part of the standard Android library, you must declare it in the Android Manifest as a child of the element:2.You ... 阅读全文

posted @ 2015-07-04 09:52 joannae 阅读(467) 评论(0) 推荐(0)

Android SQLite
摘要:private MySQLiteOpenHelper dbHelper=null;int version = 1; //table nameString tables[]={"t_favorateExposant"};//fields’ name of the tableString field... 阅读全文

posted @ 2015-07-04 09:48 joannae 阅读(152) 评论(0) 推荐(0)

获取资源文件
摘要:1.进入assets文件夹//access to the folder “assets”AssetManager am = this.getResources().getAssets(); InputStream is = am.open("plist/Exposant.plist");//read... 阅读全文

posted @ 2015-07-04 09:26 joannae 阅读(198) 评论(0) 推荐(0)

导航