If you get the error message "Please ensure that adb is correctly located at 'XXX\platform-tools\adb.exe' and can be executed.", just check the path setting in your computer environment for Microsoft Windows Operation System.
The adb in tools/ is moved to platform-tools/ for new SDK version.
Add the real path to your path environment.
2012年9月18日 星期二
[Android] Auto detect target device phone
If you do not find your phone in ADB (Android Device Bridge), you may have some issues needed to check.
1. On the device, go to Settings > Applications > Development and enable USB debugging (on an Android 4.0 device, the setting is located in Settings > Developer options).
2. Check USB driver is installed.
3. Go to the folder where ADB.exe in, e.g, C:\Android\android-sdk\platform-tools.
Type command <adb devices> then it should have your device names list. If not, check USB driver first.
or Try adb commands to restart adb server.
adb kill-server
adb start-server
4. Check Android version of your project. Right click your project->Properties->Android->ProjectBuildTarget. Make sure that it's not newer than your device's version.
1. On the device, go to Settings > Applications > Development and enable USB debugging (on an Android 4.0 device, the setting is located in Settings > Developer options).
2. Check USB driver is installed.
3. Go to the folder where ADB.exe in, e.g, C:\Android\android-sdk\platform-tools.
Type command <adb devices> then it should have your device names list. If not, check USB driver first.
or Try adb commands to restart adb server.
adb kill-server
adb start-server
4. Check Android version of your project. Right click your project->Properties->Android->ProjectBuildTarget. Make sure that it's not newer than your device's version.
[Android] Simple way to set up development environment
It is recommended to use Eclipse.
First take time to read Android Official training materials here. http://developer.android.com/training/basics/firstapp/index.html
1. Because Android is Java based, Java SDK is needed to install.
Better to choice the second latest version if possible. The newest version may have some bugs issue.
2. Download and install Eclipse. (The version is better newer because old version that Android SDK may not support)
3. Run Eclipse and install ADT (Android Development Tool)
Help --> Install new software -->
Paste the address http://dl-ssl.google.com/android/eclipse/site.xml then you can install the ADT.
4. Check Android version of your Android phone then update SDK if necessary by Android SDK Manager.
5. Set up Android Path. Eclipse --> Windows --> Preference --> Android
For my case, I install SDK here. C:\Android\android-sdk
6. Follow the tutorial to build your first App "Hello world".
First take time to read Android Official training materials here. http://developer.android.com/training/basics/firstapp/index.html
1. Because Android is Java based, Java SDK is needed to install.
Better to choice the second latest version if possible. The newest version may have some bugs issue.
2. Download and install Eclipse. (The version is better newer because old version that Android SDK may not support)
3. Run Eclipse and install ADT (Android Development Tool)
Help --> Install new software -->
Paste the address http://dl-ssl.google.com/android/eclipse/site.xml then you can install the ADT.
4. Check Android version of your Android phone then update SDK if necessary by Android SDK Manager.
5. Set up Android Path. Eclipse --> Windows --> Preference --> Android
For my case, I install SDK here. C:\Android\android-sdk
6. Follow the tutorial to build your first App "Hello world".
2012年9月17日 星期一
[Xcode] Provisioning profile cannot be found
Use new iOS developer and add to portal as development device.
After building App, the error message shows "Provision profile XXX cannot be found".
Your xcode project file gets messed up your setting.
Just click your xcodeproj and click "Show Package Contents".
Use textedit to open project.pbxproj and remove XXX string.
Then re-open Xcode and build then it should work again.
After building App, the error message shows "Provision profile XXX cannot be found".
Your xcode project file gets messed up your setting.
Just click your xcodeproj and click "Show Package Contents".
Use textedit to open project.pbxproj and remove XXX string.
Then re-open Xcode and build then it should work again.
2012年9月14日 星期五
[Android] Files
APK files
•Android Packages
• All class files and resources needed to run
• Class files recoded to dex
• Manifest defines activities and other facets
DEX
• Dalvik Executable
• More compressed form than bytecode
• Third party libs can be converted to dex
APK
• Install - put APK in data/app
• Uninstall - remove APKSecurity
[USB] Study about HID to serial
The bandwidth on basic HID is limited to 64 KB/sec.
Windows API abstract the software developer from HID reports, allowing the developer to think of the data interface as an unformatted stream of data, similar to a COM port.
Benefits of developing with HID include:
Compatibility with all commonly-used operating systems (Windows 7/Vista/XP, Mac OS X, Linux)
No need for driver development or distribution
Streamlined device/host interface due to standardized (but flexible) HID specifications
Once a device has successfully enumerated, the host can begin sending and receiving data in the form of reports.All data passed between an HID device and a host must be structured according to specifications found in the report descriptor. These reports can be transmitted across either the “Control” pipe (endpoint 0) or the “Interrupt” pipe (endpoints configured to be IN or OUT).
from AN249.pdf (Silicon Labs)
And UART baud rate is controlled by switch HID-to-Serial Chip.
How to differ each HID devices.
Get the number of physical USB devices on the system associated with this combination of vid and pid.
How to implement Software Application:
At the beginning of the application, the application should register device change notifications by using HID_RegisterForDeviceNotification().
2. Write ON_WM_DEVICECHANGE
3. Write a function OnDeviceChange() as a public function for the window.
Windows API abstract the software developer from HID reports, allowing the developer to think of the data interface as an unformatted stream of data, similar to a COM port.
Benefits of developing with HID include:
Compatibility with all commonly-used operating systems (Windows 7/Vista/XP, Mac OS X, Linux)
No need for driver development or distribution
Streamlined device/host interface due to standardized (but flexible) HID specifications
Once a device has successfully enumerated, the host can begin sending and receiving data in the form of reports.All data passed between an HID device and a host must be structured according to specifications found in the report descriptor. These reports can be transmitted across either the “Control” pipe (endpoint 0) or the “Interrupt” pipe (endpoints configured to be IN or OUT).
from AN249.pdf (Silicon Labs)
And UART baud rate is controlled by switch HID-to-Serial Chip.
How to differ each HID devices.
Get the number of physical USB devices on the system associated with this combination of vid and pid.
How to implement Software Application:
At the beginning of the application, the application should register device change notifications by using HID_RegisterForDeviceNotification().
2. Write ON_WM_DEVICECHANGE
3. Write a function OnDeviceChange() as a public function for the window.
2012年9月13日 星期四
[iPhone 5] Compare iPhone specification
The apple website shows the full specification of iPhone 5 as below.
http://www.apple.com/iphone/compare-iphones/
To sum up that:
OS: iOS6 (Upgrade to OSX 10.8 Mountain Lion)
Camera: 8MP (Multi-point camera)
CPU: Dual-core A5 to A6
Screen: 3.5 to 4.0 in-screen
Display: 1136-by-640 resolution
(960-by-640 iPhone 4S)
Cable: Lightning to USB Cable
Cellular: Add LTE
SIM Card: Nano SIM
Other: Battery Life /
FaceTime camera /
Headphone /
Storage /
No NFC
2012年9月12日 星期三
[iOS6] Online Passbook generator
Found several sites that support to create Passbook online.
This is new function so several function on sites are not ready.
http://passk.it/samples/
http://www.passsource.com/customize.php?template_id=2
This is new function so several function on sites are not ready.
http://passk.it/samples/
http://www.passsource.com/customize.php?template_id=2
[iOS6] Passbook status
Below link show the user test passbook function on Phone for airport but unlucky it doesn't work.
I think new technique should get real users and service providers support then it works.
http://www.youtube.com/watch?v=NqLLWh5JoXs&feature=player_embedded
In early of September, 2012, Virgin Australia, Amerian Airlines, United and Delta are first off the mark to confirm their mobile boarding passes will work with Apple's Passbook app being built into iOS 6, so we have chance to see it happen in the future.
2012年9月10日 星期一
買42吋電視
開始爬文, 找尋42吋電視標地
1. 距離
42吋~1920*1080 最佳觀賞距離 = 64.6/ 1080 * 3400 ≒ 203公分=2.0米
這個公式不知怎麼算來的,是用它的高來計算
2. Resolution
光看第四台,解析度會比傳統 CRT 差;除電漿電視或是 Full HD Channel
3. 電視會越來越大, 所以要儘量買大尺寸
4. Smart TV
若有閒錢或是有網路才買
5. 視訊盒內建
現在為數位時代,有的話就不用外接
6. HDMI
現在 Portable device 幾乎都有,所以一定要
1.3的更棒
7. 3D
現在內容還不夠多,先不用買
8. 兩萬有找
美國VIZIO 42吋120Hz 3D液晶顯示器+視訊盒(E3D420VX-TW)
1. 距離
42吋~1920*1080 最佳觀賞距離 = 64.6/ 1080 * 3400 ≒ 203公分=2.0米
這個公式不知怎麼算來的,是用它的高來計算
2. Resolution
光看第四台,解析度會比傳統 CRT 差;除電漿電視或是 Full HD Channel
3. 電視會越來越大, 所以要儘量買大尺寸
4. Smart TV
若有閒錢或是有網路才買
5. 視訊盒內建
現在為數位時代,有的話就不用外接
6. HDMI
現在 Portable device 幾乎都有,所以一定要
1.3的更棒
7. 3D
現在內容還不夠多,先不用買
8. 兩萬有找
美國VIZIO 42吋120Hz 3D液晶顯示器+視訊盒(E3D420VX-TW)
BenQ 42吋LED液晶顯示器+視訊盒(SL42-6500)
CHIMEI奇美 42吋數位LED液晶顯示器+視訊盒(TL-42LX500D)
LG CS460系列42吋液晶電視42CS460
IPS頂級硬式面板 17910 NTD
9. 尺寸一定要先量過, 1170 mm
10. 有USB更好
2012年9月7日 星期五
[Android] NFC API
APIs give applications read and write access to a wider range of standard tag technologies, including:
NFC-A (ISO 14443-3A)
NFC-B (ISO 14443-3B)
NFC-F (JIS 6319-4)
NFC-V (ISO 15693)
ISO-DEP (ISO 14443-4)
MIFARE Classic
MIFARE Ultralight
NFC Forum NDEF tags
Class | Description |
---|---|
TagTechnology | The interface that all tag technology classes must implement. |
NfcA | Provides access to NFC-A (ISO 14443-3A) properties and I/O operations. |
NfcB | Provides access to NFC-B (ISO 14443-3B) properties and I/O operations. |
NfcF | Provides access to NFC-F (JIS 6319-4) properties and I/O operations. |
NfcV | Provides access to NFC-V (ISO 15693) properties and I/O operations. |
IsoDep | Provides access to ISO-DEP (ISO 14443-4) properties and I/O operations. |
Ndef | Provides access to NDEF data and operations on NFC tags that have been formatted as NDEF. |
NdefFormatable | Provides a format operations for tags that may be NDEF formattable. |
From Android
The platform also provides a limited peer-to-peer communication protocol and API. Foreground Activities can use the API to register an NDEF message that will get pushed to other NFC devices when they connect.
http://developer.android.com/about/versions/android-2.3.3.html
http://developer.android.com/guide/topics/connectivity/nfc/advanced-nfc.html
2012年9月6日 星期四
[MAC] Some good tools
Find the useful tools from internet, try them later.
- Adium to chat online with clients and co-workers
- iCal so I never miss a meeting
- Billings to track client expenses and invoice for time
- svnX for sending files to SVN servers
- Cyberduck for FTPing to servers and CDN’s
- MAMP for running websites locally
- Yammer for talking to the team
- GasMask for easy .host file edits
- MoneyDance for keeping track of home expenses
[NFC] Chipset marketing information
This article is very useful NFC marketing information for IC Chip.
http://www.digitimes.com/Reports/Report.asp?datepublish=2012/05/16&pages=VL&seq=201
http://www.digitimes.com/Reports/Report.asp?datepublish=2012/05/16&pages=VL&seq=201
2012年9月5日 星期三
[NFC] Technique
Nexus
7,
Nexus
S, Galaxy Nexus, Nexus Q, Samsung Galaxy S3, HTC One X contains the same NFC
chip (PN544 by NXP Semiconductors).
MIFARE Classic is a technology by NXP, so it is supported by NXP's NFC chips
Blackberry contains an NFC chip by a different
manufacturer so can't read NXP MIFARE Tag.
Based on NFC Forum, list tag types:
- Tag 1 Type: e.g. Broadcom's Topaz/Jewel
- Tag 2 Type: e.g. NXP's MIFARE Ultralight (incl. Ultralight C) or NTAG203
- Tag 3 Type: e.g. Sony's FeliCa chips (e.g. FeliCa Lite)
- Tag 4 Type: e.g. NXP's MIFARE DESFire
NFC devices can operate in three different modes based on the ISO/IEC 18092, NFC IP-1 and ISO/IEC 14443 contactless smart card standards.
- Read / Write: NFC enabled phone can read or write data to any of the supported tag types in a standard NFC data format.
- Peer to peer: Two NFC-enabled devices can exchange data. Peer-to-Peer mode is standardized on the ISO/IEC 18092 standard.
- Card emulation: An NFC-enabled phone acts as reader when in contact with tags or act as a tag for existing readers.
NFC devices:
Blackberry Bold 9900
HTC One X
LG Prada 3.0
LG Optimus Vu
Samsung Galaxy Nexus
Samsung Galaxy Note
Samsung Galaxy S II HD LTE
Samsung Galaxy S III
Samsung Galaxy S III LTE
Sony Xperia S
Sony Xperia acro S
Sony Xperia P
Sony Xperia sola
Sony Xperia ion
Asus Nexus 7
Links:
http://www.globalplatform.org/ for managing applications of security chip
http://nfctimes.com/
http://www.nfc-forum.org/home/
http://www.nfcworld.com/
http://www.smart-poster.co.uk/
Android project:
http://stackoverflow.com/questions/5546932/how-to-read-and-write-android-nfc-tags
http://www.globalplatform.org/ for managing applications of security chip
http://nfctimes.com/
http://www.nfc-forum.org/home/
http://www.nfcworld.com/
http://www.smart-poster.co.uk/
Android project:
http://stackoverflow.com/questions/5546932/how-to-read-and-write-android-nfc-tags
References:
2012年9月4日 星期二
SKU for APP
The Wikipedia explains that:
It is a unique identifier for each distinct product and service that can be purchased. The usage of SKU is rooted in data management, enabling the company to systematically track its inventory or product availability, such as in warehouses and retail outlets. They are often assigned and serialized at the merchant level. Each SKU is attached to an item, variant, product line, bundle, service, fee, or attachment
For our App SKU, just use <com>.<company name>.<product>, it's a little like program namespace.
It is a unique identifier for each distinct product and service that can be purchased. The usage of SKU is rooted in data management, enabling the company to systematically track its inventory or product availability, such as in warehouses and retail outlets. They are often assigned and serialized at the merchant level. Each SKU is attached to an item, variant, product line, bundle, service, fee, or attachment
For our App SKU, just use <com>.<company name>.<product>, it's a little like program namespace.
[Xcode] Use if condition for storyboard segue push
Generally, we use storyboard seque is that drag button to destination view controller.
But if we want to do if some condition to different target view controller, should use another way.
1. Drag source view controller to destination view controller as seque push.
2. Give push identifier name.
3. Put the code [self performSegueWithIdentifier: @"goToDestination" sender: self]; to your button action.
Remember don't forget the identifier.
http://stackoverflow.com/questions/9044265/xcode-storyboard-cancel-push-if-a-condition-is-not-met
But if we want to do if some condition to different target view controller, should use another way.
1. Drag source view controller to destination view controller as seque push.
2. Give push identifier name.
3. Put the code [self performSegueWithIdentifier: @"goToDestination" sender: self]; to your button action.
Remember don't forget the identifier.
http://stackoverflow.com/questions/9044265/xcode-storyboard-cancel-push-if-a-condition-is-not-met
2012年9月3日 星期一
[Xcode] Using iOS Simulator
This article is great that introduce many detail information of simulator.
http://www.informit.com/articles/article.aspx?p=1829415&seqNum=3
Another reference:
http://www.engineeredaudio.com/blog/
Apple staff said if developing BLE, will need to use real hardware.
https://forums.developer.apple.com/thread/14983
http://www.informit.com/articles/article.aspx?p=1829415&seqNum=3
Another reference:
http://www.engineeredaudio.com/blog/
Apple staff said if developing BLE, will need to use real hardware.
https://forums.developer.apple.com/thread/14983
CNN 認為 2012 年十大科技趨勢
CNN 認為 2012 年十大科技趨勢
|
Source : CNN , 2011 年 12 月
訂閱:
文章 (Atom)