freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

安卓基于android平臺的3g氣象軟件畢業(yè)論文-wenkub.com

2025-06-20 08:44 本頁面
   

【正文】 在完成課題設計的過程中,老師在總體設計思想上給予了許多重要的實際指導,拓展了我的思路,使得我得以完成了任務。 在這個過程中,我學會了很多知識,比如Android環(huán)境的搭建、Intent、Activity、Service、ContentProvider、SQLite等,但我學會的最重要的一點是,利用現有的資源去解決問題,在圖書館、在網絡上尋找答案。如下圖所示:(4)點擊顯示頁面就會進入詳細界面,詳細頁面通過文字圖片動畫顯示當前的天氣情況,包括城市當前天氣、溫度、風向、風速、濕度;同時顯示今后四天的天氣情況。 Android虛擬機啟動較慢。( )方法判斷具體顯示哪個動畫。227。 ((5))。 TextView condition = (TextView) ()。 listAdapter = new ForecastAdapter(this, forecastCursor)。核心代碼如下://繼承ListActivitypublic class DetailForecastActivity extends ListActivity { private ListAdapter listAdapter。代碼如下:LinearLayout xmlns:android=android:layout_height=fill_parent android:layout_width=fill_parent android:orientation=verticalTextView android:id=+id/TextView01 android:layout_height=wrap_content android:text=string/labelCity android:layout_width=fill_parent/TextView!—編輯框“城市”—EditText android:layout_height=wrap_content android:text=Shenzhen android:editable=true android:layout_width=fill_parent android:id=+id/editCity/EditText TextView android:layout_height=wrap_content android:layout_width=fill_parent android:id=+id/lableUpdateTime android:text=string/lableUpdateTime/TextView!—編輯框“更新頻率”—EditText android:layout_height=wrap_content android:id=+id/editUpdatetime android:text=2 android:layout_width=fill_parent/EditText!—保存按鈕—Button android:layout_height=wrap_content android:id=+id/btnSaveandroid:text=string/btnSave android:layout_width=fill_parent/Button/LinearLayout 詳細頁面DetailForecastActivityDetailForecastActivity主要用來顯示詳細的天氣信息,包括當天和未來四天的天氣信息。setConfigureResult()。 ContentResolver resolver = getContentResolver()。 (, city)。核心代碼如下://OnClick()事件public void onClick(View v) { switch (()) { case : { city = ().toString()。 // 啟動獲取天氣預報信息的服務(new Intent(context, ))。(2) 定義Widget的基本屬性文件,此文件是/res/xml/。三個用戶界面風格簡約、操作簡便,用戶體驗將非常好。核心代碼如下:AlarmManager alarmManager = (AlarmManager)getSystemService()。 }注意:for (ForecastEntity forecast : ())相當于foreach語句,()集合里打印出所有類型為ForecastEntity的forecast變量。ContentValues values = new ContentValues()。其過程是:使用ContentResolver對象,通過URI間接調用ContentProvider,使用ContentResolver對象與ContentProvider進行交互,而ContentResolver則通過URI確定需要訪問的ContentProvider的數據集。 } else if ((tagName)) { dealWithForecastConditions(tagName, widgetEntity, xpp)。 while (eventType != ) { if (eventType == ) { tagName = ()。 XmlPullParser xpp = ()。 } if (responseReader != null) { widgetEntity = parseResponse(responseReader)。 (TAG, Request returned status + status)。 try { (TAG, get google39。 } Reader responseReader。 }} 后臺服務后臺服務是tyweather工程的核心模塊,在用戶啟動后持續(xù)在后臺運行,直到用戶停止服務。 (AUTHORITY, widgets/, WIDGETS_ID)。 private static final int WIDGETS_FORECASTS = 103。 } throw new IllegalStateException()。 case WIDGETS_ID: return 。 } } return (db, projection, selection, selectionArgs, null, null,sortOrder, limit)。 } case FORECASTS_ID: { String forecastId = ().get(1)。 // sortOrder = + ASC。 break。 break。 SQLiteQueryBuilder qb = new SQLiteQueryBuilder()。query(SQLiteDatabase db, String[] projectionIn, String selection, String[] selectionArgs, String groupBy, String having, String sortOrder, String limit),:參 數說 明SQLiteDatabase db要查詢的數據庫實例String[] projectionIn是一個字符串數組,里邊的每一項代表了需要返回的列名String selection相當于SQL語句中的where部分String[] selectionArgs是一個字符串數組,里邊的每一項依次替代在第三個參數中出現的問號(?)String groupBy相當于SQL語句當中的groupby部分String having相當于SQL語句當中的having部分String sortOrder描述是怎么進行排序String limit相當于SQL當中的limit部分,控制返回的數據的個數查詢功能的核心代碼如下:public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { //getReadableDatabase()這個函數會數據庫是否存在、版本號和是否可讀等情況, //決定在返回數據庫對象前,是否需要數據庫。 public static final String FORECAST_END = forecasts。URI用來地位任何遠程或本地的可用資源。 //構造方法,重載父類構造 public DatabaseHelper(Context context) { super(context, DATABASE_NAME, null, DATABASE_VERSION)。(1) 創(chuàng)建數據庫:DatabaseHelper類繼承SQLiteOpenHelper,SQLiteOpenHelper這個類可以輔助建立、更新和打開數據庫。 //組件id從代碼中可以看出,WidgetEntity類中有以上公有靜態(tài)屬性id、dayOfWeek、low、hight、icon、condition、widgetId,完全對應數據庫中weather_forcast的表。 //最低溫度 private Integer hight。 //是否已設置 ......}從代碼中可以看出,除ForecastEntity 的對象details, WidgetEntity類中有以上公有靜態(tài)屬性id、updateMilis 、updateMilis、postalCode、forecastDate、condition、tempF、tempC、humidity、icon、windCondition、lastUpdateTime、isConfigured,完全對應數據庫中weather_widget的表。 //濕度 private String icon。 //預報時間 private String condition。 //編號 private Integer updateMilis。而CotentProvider為程序員提供了較高級的數據共享方法,應用程序可以指定需要共享的數據,而其他應用程序則可以在不知數據來源、路徑的情況下,對共享數據進行查詢、添加、刪除和更新等操作。其中、/res/anim目錄中保存的是產生動畫效果的
點擊復制文檔內容
數學相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1