http://www.todroid.com/creating-a-weather-app-in-android-studio/
http://www.survivingwithandroid.com/2014/05/how-to-develop-android-weather-app.html
功能概述
可以抓取當地氣象
目前沒有測試
先放這 晚點再來
用YAHOO 氣象API
http://www.survivingwithandroid.com/2014/02/android-weather-app-using-yahoo-provider.html
2015年4月23日 星期四
限制應用程式只能直立,禁止橫向
限制應用程式只能直立,禁止橫向
setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT );
or
AndroidManifest.xml:
在 <activity 裡面加上
android:screenOrientation="portrait" (指定為直向)
<!--參數為 landscape為橫向 portrait為縱向 nosensor為關閉重力感應器-->
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.ack.test2" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<!--限制螢幕為直向 str-->
android:screenOrientation="portrait"
<!--參數為 landscape為橫向 portrait為縱向 nosensor為關閉重力感應器-->
<!--限制螢幕為直向 end-->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
android:configChanges="keyboard|keyboardHidden|orientation"
(告訴系統,我要自己處理轉向問題) 需要在 Manifest.xml 中加上底下的敘述。
setRequestedOrientation( ActivityInfo.SCREEN_ORIENTATION_PORTRAIT );
or
AndroidManifest.xml:
在 <activity 裡面加上
android:screenOrientation="portrait" (指定為直向)
<!--參數為 landscape為橫向 portrait為縱向 nosensor為關閉重力感應器-->
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.ack.test2" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<!--限制螢幕為直向 str-->
android:screenOrientation="portrait"
<!--參數為 landscape為橫向 portrait為縱向 nosensor為關閉重力感應器-->
<!--限制螢幕為直向 end-->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
android:configChanges="keyboard|keyboardHidden|orientation"
(告訴系統,我要自己處理轉向問題) 需要在 Manifest.xml 中加上底下的敘述。
android 一些教學 資料
Android
http://www.raywenderlich.com/78576/android-tutorial-for-beginners-part-2
http://blog.csdn.net/ryantang03/article/details/9237643
Global Caché
http://www.automatedhome.co.uk/reviews/review-ip-control-of-your-ir-gear-with-global-cache-itach-ip2ir.html
2015年4月21日 星期二
安裝 Android Studio
請連結 http://developer.android.com/sdk/installing/index.html
下載
下載
載完就開始安裝
我是都下一步 下一步
我選預設 因為我甚麼都沒裝
我答應~~~
我答應~~~
還是預設
我先選2G 現在的智慧型手持式裝置 也差不多
依然預設
安裝瞜 1% 2% ........
啟動畫面沒抓
安裝完畢
現在的開發工具 越來越人性化了
第一次啟動 Android Studio 就錯誤
一啟動就錯誤
(我發現原來是我的網路有問題 無法連線)
發現 SDK 沒裝
所以 找了一下
其實 他們有統包案裝檔
進入 http://developer.android.com/sdk/installing/index.html
網路復原 自動下載 SDK
安裝完畢
終於看到 畫面了
(我發現原來是我的網路有問題 無法連線)
發現 SDK 沒裝
所以 找了一下
其實 他們有統包案裝檔
進入 http://developer.android.com/sdk/installing/index.html
全部的安裝檔
網路復原 自動下載 SDK
安裝完畢
終於看到 畫面了
訂閱:
文章 (Atom)













