cygwin 下载地址: http://www.cygwin.com/
NDK下载地址 :http://developer.android.com/tools/sdk/ndk/index.html吉米蕭的筆記本
記錄開發所遇過的問題
Dell 3560 wireless 顯卡 問題
WIFI
sudo gedit /etc/modprobe.d/iwlwifi.conf
Add a single line:
options iwlwifi 11n_disable=1
//********************************************************
Catalyst Control Center
http://askubuntu.com/questions/124292/what-is-the-correct-way-to-install-ati-catalyst-video-drivers-fglrx
http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx
sudo gedit /etc/modprobe.d/iwlwifi.conf
Add a single line:
options iwlwifi 11n_disable=1
//********************************************************
Catalyst Control Center
http://askubuntu.com/questions/124292/what-is-the-correct-way-to-install-ati-catalyst-video-drivers-fglrx
http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx
Ubuntu 12.04 gcin
1.至軟體中心下載
2.下載 gcin-tables_2.7.9+eliu-5_all.deb ==>解決大易出不來
下載點 http://www.csie.nctu.edu.tw/~cp76/gcin/download/debian/i386/
3. ICON 沒有顯示在狀態列上
terminal:
gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'gcin', 'shutter', 'dropbox', 'hp-systray']"
2.下載 gcin-tables_2.7.9+eliu-5_all.deb ==>解決大易出不來
下載點 http://www.csie.nctu.edu.tw/~cp76/gcin/download/debian/i386/
3. ICON 沒有顯示在狀態列上
terminal:
gsettings set com.canonical.Unity.Panel systray-whitelist "['JavaEmbeddedFrame', 'Mumble', 'Wine', 'Skype', 'gcin', 'shutter', 'dropbox', 'hp-systray']"
Android 螢幕旋轉不執行create 的方法
AndroidManifest.xml
<activity 內加入
android:configChanges="orientation|keyboardHidden"
NDK - Ubuntu
新的 NDK R8 找不到build/host-setup.sh 檔案
直接寫入bashrc
jimmy@jimmyubuntu:~$ gedit ~/.bashrc
最後寫入
export NDK_HOME=/home/jimmy/android-sdk-linux/android-ndk-r8/
export PATH=$PATH:$NDK_HOME
存檔
jimmy@jimmyubuntu:~$ source ~/.bashrc
確認
jimmy@jimmyubuntu:~$ ndk-build
Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
測試 make hello-jni
jimmy@jimmyubuntu:~$ ndk-build -C $NDK_HOME/samples/hello-jni
可以在libs 目錄內產生libhello-jni.so
直接寫入bashrc
jimmy@jimmyubuntu:~$ gedit ~/.bashrc
最後寫入
export NDK_HOME=/home/jimmy/android-sdk-linux/android-ndk-r8/
export PATH=$PATH:$NDK_HOME
存檔
jimmy@jimmyubuntu:~$ source ~/.bashrc
確認
jimmy@jimmyubuntu:~$ ndk-build
Android NDK: Could not find application project directory !
Android NDK: Please define the NDK_PROJECT_PATH variable to point to it.
測試 make hello-jni
jimmy@jimmyubuntu:~$ ndk-build -C $NDK_HOME/samples/hello-jni
可以在libs 目錄內產生libhello-jni.so
SIP
http://www.lxvoip.net/voip/?m=13334051675
目前測試IMSDroid 較為穩定及完整
http://code.google.com/p/imsdroid/
Building tinyWRAP.so
http://code.google.com/p/imsdroid/wiki/Building_Source
目前測試IMSDroid 較為穩定及完整
http://code.google.com/p/imsdroid/
Building tinyWRAP.so
http://code.google.com/p/imsdroid/wiki/Building_Source
Ubuntu 關閉觸控板
apt-get install gsynaptics
系統 > 偏好設定 > 觸控板
並且將「系統」-->「偏好設定」-->「滑鼠」-->取消「打字時關閉觸控板」
ubuntu 12.4
sudo add-apt-repository ppa:jconti/recent-notifications
sudo apt-get update
sudo apt-get install indicator-notifications
系統 > 偏好設定 > 觸控板
並且將「系統」-->「偏好設定」-->「滑鼠」-->取消「打字時關閉觸控板」
ubuntu 12.4
sudo add-apt-repository ppa:jconti/recent-notifications
sudo apt-get update
sudo apt-get install indicator-notifications
Samsung GALAXY Tab 10.1 adb on Ubuntu
http://kobablog.wordpress.com/2011/05/25/connecting-samsung-galaxy-tab-10-1-via-adb-on-ubuntu/
$export PATH=${HOME}/android-sdk-linux_x86/platform-tools/:$PATH
http://www.dotblogs.com.tw/bowwowxx/archive/2010/09/03/17548.aspx
有一些需要改 .android/adb_usb.ini
http://www.linuxidc.com/Linux/2012-10/73100.htm
$export PATH=${HOME}/android-sdk-linux_x86/platform-tools/:$PATH
http://www.dotblogs.com.tw/bowwowxx/archive/2010/09/03/17548.aspx
有一些需要改 .android/adb_usb.ini
http://www.linuxidc.com/Linux/2012-10/73100.htm
在Linux(ubuntu)上安裝Eclipse + Android SDK
http://androidbiancheng.blogspot.com/2009/12/linuxubuntueclipse-android-sdk.html
//ubuntu 12.04 update
1.download JDK 7 ==> http://www.wikihow.com/Upgrade-Oracle-Java-on-Ubuntu-Linux
http://www.oracle.com/technetwork/java/javase/downloads/jdk7u9-downloads-1859576.html
2.
cd 下載
sudo mkdir /usr/local/java/
sudo -s cp -r jdk-7u9-linux-x64.tar.gz /usr/local/java/
cd /usr/local/java/
sudo -s chmod a+x jdk-7u9-linux-x64.tar.gz
sudo -s tar xvzf jdk-7u9-linux-x64.tar.gz
sudo gedit /etc/profile
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.7.0_09/bin/javac" 1
sudo update-alternatives --set javac /usr/local/java/jdk1.7.0_09/bin/javac
. /etc/profile
test
java -version
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
sudo gedit /etc/environment
add
JAVA_HOME=/usr/local/java/jdk1.7.0_09
Failed to get the adb version: Cannot run program “/opt/android-sdk/platform-tools/adb”: error=2
==> sudo apt-get install ia32-libs
Android SDK Manager 下載Android SDK失敗
Failed to fetch URL
==> etc/hosts =>增加
74.125.237.1 dl-ssl.google.com
//ubuntu 12.04 update
1.download JDK 7 ==> http://www.wikihow.com/Upgrade-Oracle-Java-on-Ubuntu-Linux
http://www.oracle.com/technetwork/java/javase/downloads/jdk7u9-downloads-1859576.html
2.
cd 下載
sudo mkdir /usr/local/java/
sudo -s cp -r jdk-7u9-linux-x64.tar.gz /usr/local/java/
cd /usr/local/java/
sudo -s chmod a+x jdk-7u9-linux-x64.tar.gz
sudo -s tar xvzf jdk-7u9-linux-x64.tar.gz
sudo gedit /etc/profile
sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.7.0_09/bin/javac" 1
sudo update-alternatives --set javac /usr/local/java/jdk1.7.0_09/bin/javac
. /etc/profile
test
java -version
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
sudo gedit /etc/environment
add
JAVA_HOME=/usr/local/java/jdk1.7.0_09
Failed to get the adb version: Cannot run program “/opt/android-sdk/platform-tools/adb”: error=2
==> sudo apt-get install ia32-libs
Android SDK Manager 下載Android SDK失敗
Failed to fetch URL
==> etc/hosts =>增加
74.125.237.1 dl-ssl.google.com
Android URL Encode 處理
URLEncoder.encode(strsearch.trim(), "utf-8");
httpRequest.setEntity(new UrlEncodedFormEntity(params, HTTP.UTF_8));
httpRequest.setEntity(new UrlEncodedFormEntity(params, HTTP.UTF_8));
ListView touch 不會變顏色
android:cacheColorHint="#00000000"
背景非黑色時,拖曳變黑問題:
將android:cacheColorHint指定為透明(#00000000)
1)點擊Item時無背景顏色變化
在xml文件中的ListView控件中加入如下属性:
android:listSelector="@drawable/timer_list_selector"
在drawable中定义timer_list_selector的属性值
timer_list_selector.xml中定义如下:
在values文件夹下的colors.xml中定义transparent如下:
#50000000
2)設置Item之間無間隙
在xml文件中ListView控件中加入如下属性:
android:divider="#00000000"
或者在javaCode中如下定義:
listView.setDividerHeight(0);
3) 自定義的BaseAdapter中調用notifyDataSetChanged()方法會重新調用BaseAdapter的getView()方法。
from
http://www.wretch.cc/blog/hamowe/11465485
http://www.wretch.cc/blog/michaeloil/23294101
背景非黑色時,拖曳變黑問題:
將android:cacheColorHint指定為透明(#00000000)
1)點擊Item時無背景顏色變化
在xml文件中的ListView控件中加入如下属性:
android:listSelector="@drawable/timer_list_selector"
在drawable中定义timer_list_selector的属性值
timer_list_selector.xml中定义如下:
在values文件夹下的colors.xml中定义transparent如下:
#50000000
2)設置Item之間無間隙
在xml文件中ListView控件中加入如下属性:
android:divider="#00000000"
或者在javaCode中如下定義:
listView.setDividerHeight(0);
3) 自定義的BaseAdapter中調用notifyDataSetChanged()方法會重新調用BaseAdapter的getView()方法。
from
http://www.wretch.cc/blog/hamowe/11465485
http://www.wretch.cc/blog/michaeloil/23294101
Android 開發環境
1. JDK Download
Java SE Downloads
http://www.oracle.com/technetwork/java/javase/downloads/index.html
//*********************************************************************************
2.Android SDK Download
http://developer.android.com/sdk/index.html
(注意安裝至Program files 顯示JDK 未安裝,back \ next)
//*********************************************************************************
3.Eclipse Download
http://www.eclipse.org/downloads/
>
Eclipse IDE for Java Developers
Eclipse設定
(A) ADT Plugin
HELP \ install new software
ADT - http://dl-ssl.google.com/android/eclipse
(B) Set Android SDK Path
Windows / Perfences
(注意不要設 Program files\)
Debug Certificate expired Unknown Android Packaging Problem
delete the debug.keystore
Delete file debug.keystore in C:\Documents and Settings\<user>\.android
C:\Documents and Settings\<user>\Local Settings\Application Data\Android
訂閱:
文章 (Atom)