Posts

Showing posts with the label android develop

提供給手機工程師 Android裝置開發名詞整理

除了 通訊類名詞 外,工作上還有很多名詞 ...  一個Android裝置包含了 App、Android framework、RIL 、 Protocol  BSP、 Modem 、HW。 整理工作中遇到的名詞們,快速查詢。 Android BT profile BSP Board Support Package Cupcake Cross Compiler  CDD Compatibility Definition Document CS Commercial Software CTS Compatibility Test Suite Donut DRM  ( Digital Rights Management) Eclair EFS  ( Encrypting File System ) Froyo Framebuffer GDB  ( GNU Debugger ) Gingerbread  GPIO  ( General Purpose Input/Output. ) GZIP Honeycomb JSON ICS i2c  ( Inter - Integrated Circuit )  ioctl  MIME  ( Multipurpose Internet Mail Extensions ) MTP  ( Media Transfer Protocol) NFC     (Near Field Communication) ODM OHA OMA  ( Open Mobile Alliance) OpenCores OpenGL ES OpenMax Skia Speech recognition SVG toolchain TTS V4L  ( Video4Linux   ) Webkit  YCbCr  其他Android 開發文章請見: Android開發豆知識 科技業職場須知: ODM PM 業務 常見名詞整理 硬體產品經理的工作流程 開新案以及ODM專案的流程差異 PM到底在做什麼 ? Proje...

如何分析Android ANR問題?

ANR(Application Not Responding)是指應用程式無法回應用戶操作,通常是因為主線程被阻塞,造成應用程式失去了響應能力。在 Android 開發中,ANR 通常是由長時間的 IO 操作、低效的網路訪問、死循環、死鎖等問題所引起的。 以下是一些分析 Android ANR 問題的方法: 查看 ANR 日誌:當應用程式出現 ANR 問題時,系統會生成一個 ANR 日誌,其中包含了造成 ANR 的原因、發生時間、應用程式名稱等資訊。開發人員可以查看 ANR 日誌來了解問題的根本原因。 使用 systrace 工具:systrace 是 Android SDK 中一個用於分析系統效能的工具,可以用來分析 CPU、GPU、網路等方面的效能問題。開發人員可以使用 systrace 工具來檢查應用程式是否因為佔用過多的資源而導致 ANR。 使用 Profiler 工具:Profiler 是 Android Studio 中的一個效能分析工具,可以用來分析應用程式的 CPU、記憶體、網路等方面的效能問題。開發人員可以使用 Profiler 工具來檢查應用程式的效能瓶頸,並優化應用程式的效能。 檢查應用程式代碼:開發人員可以檢查應用程式代碼,尋找可能造成 ANR 的問題。例如,長時間的 IO 操作應該在後台執行,不應該在主線程中執行。低效的網路訪問應該使用異步方式執行,避免阻塞主線程。 測試應用程式:開發人員可以進行一系列的測試,測試應用程式在各種情況下的反應速度和效能。例如,模擬網路緩慢的情況,測試應用程式的反應速度。這樣可以幫助開發人員發現可能會導致 ANR 的問題,並進行修復。 總之,要分析 Android ANR 的問題,需要進行綜合分析 === 2012: How to trace ANR problem ! What Triggers ANR? http://developer.android.com/guide/practices/design/responsiveness.html In Android, application responsiveness is monitored by the Activity Manager and Window Manager system services. Android will display...

Android 開發工具包(Android SDK)

Android 開發工具包(Android SDK)提供了一系列的工具和資源,用於開發 Android 應用程式。以下是一些常見的 Android 開發工具,包括像 DDMS 的功能: 1. Android Studio:這是一個由 Google 開發的 Android 集成開發環境(IDE),可以用來開發和測試 Android 應用程式。Android Studio 包括許多有用的工具,如代碼編輯器、調試器、模擬器、DDMS、布局編輯器等等。 2. DDMS(Dalvik Debug Monitor Service):DDMS 是一個用於 Android 調試的工具,可以監控正在運行的 Android 應用程式,並提供進程和記憶體信息、文件系統和日誌等資訊。 3. ADB(Android Debug Bridge):ADB 是一個用於和 Android 設備通訊的命令行工具,可以執行各種操作,例如安裝和卸載應用程式、傳輸文件、啟動服務等等。 4. SDK Manager:這是一個用於管理 Android SDK 的工具,可以下載和安裝不同版本的 Android 平台和工具,包括模擬器和系統映像。 5. Layout Editor:這是一個用於編輯 Android 應用程式界面的工具,可以使用拖放界面設計器來設計和排列視圖元素。 6. ProGuard:這是一個用於壓縮和優化 Android 應用程式代碼的工具,可以減少 APK 大小並提高應用程式性能。 除了上述工具之外,還有其他的第三方工具和庫,可以幫助開發人員更高效地開發 Android 應用程式。 === 關於DDMS: Using the  Dalvik Debug Monitor Service (DDMS)  Tool Android ships with a debugging tool called the Dalvik Debug Monitor Service (DDMS), which provides port-forwarding services, screen capture on the device, thread and heap information on the device, logcat, process, and radio state inform...

Vulkan 圖形 API

Image
Samsung 從 2016年,也就是從 S7 開始在 Galaxy 設備上支援 Vulkan,還有 Google 也在 Android Nougat 中支援了 Vulkan。 因為 Vulkan 1.1 更偏向於允許開發人員能夠更好地利用可用硬件的編程接口,對一般最終用戶來說並未有作用,只有當越來越多的開發者採用 Vulkan 1.1時,我們才可以體會到 Vulkan 帶來的直接改變。 Vulkan Google 對於Vulkan 的說明  https://source.android.com/devices/graphics/arch-vulkan Android supports Vulkan , a low-overhead, cross-platform API for high-performance 3D graphics. Like OpenGL ES (GLES) , Vulkan provides tools for creating high-quality, real-time graphics in apps. Advantages of using Vulkan include reductions in CPU overhead and support for the SPIR-V Binary Intermediate language. System on chip vendors (SoCs) such as GPU independent hardware vendors (IHVs) can write Vulkan drivers for Android. OEMs need to integrate these drivers for specific devices. For details on how a Vulkan driver interacts with the system, how GPU-specific tools should be installed, and Android-specific requirements, see Implementing Vulkan. Application developers use Vulkan to create apps that ...

Bitmap OOM and MAT

Bitmap OOM & MAT 如何改善Bitmap所帶來的Out of Memory(OOM)問題 解決在 Android 中使用 Bitmap 造成 Out of memory 的方法~ [Android]Android Out Of Memory(OOM) 的詳細研究 HOWTO: Debug Memory Leak in Android

關於AOSP Contacts討論

關於AOSP Contacts討論 source code : https://android.googlesource.com/platform/packages/apps/Contacts Working with Contacts 翻譯 -  討論Android 2.0 Contacts的變化 ... 不過現在已經Android 4.0了 XD 更多小技巧: Android-通過PhoneLookup讀取所有電話號碼 Android獲取手機相關資訊和SIM卡資訊 自動搜尋 AutoCompleteTextView ~ 搭配Contacts 撈出聯絡人資料 ~ 照片 ContactsContract.Contacts.PHOTO_ID

how to install FindBugs

how to install FindBugs In Eclipse, click on  Help  ->  Software Update  -> Find and Install... Choose the  Search for new features to install  option, and click  Next . Click  New Remote Site . Enter the following: Name:  FindBugs update site URL:  one of the following (note: no final slash on the url) http://findbugs.cs.umd.edu/eclipse  for official releases http://findbugs.cs.umd.edu/eclipse-candidate  for candidate releases and official releases http://findbugs.cs.umd.edu/eclipse-daily  for all releases, including developmental ones and click  OK .

關於Audio開發需要了解的事情

關於Audio開發需要了解的事情 Data Formats (or Audio Encoding) File Formats (or Audio Containers) Bit Rates Sample Rates 本來想要找一下Android跟iOS的 Audio開發相關文章做比較,才發現Android 跟iOS跟官方教學網站真是不能比。 Android Android Supported Media Formats Multimedia and Camera : Media Playback Multimedia and Camera : Audio Capture iOS Audio & Video Starting Point Multimedia Programming Guide - Using Audio 2010 Audio 101 for iPhone Developers: File and Data Formats 2010 Sound on iOS: Best Practices

Could not create the Java Virtual Machine.

如果在Android 遇到 Could not create the Java Virtual Machine. anan A fatal exception has occurred. Program will exit. [dx] Error occurred during initialization of VM [dx] Could not reserve enough space for object heap  default SDK  那就到 android-sdks\platform-tools 目錄中的 dx.bat 檔案, 將 set defaultXmx=-Xmx1024M 改為 set   defaultXmx=-Xmx512M 若是自己Build AOSP 在source code裡  修改 /dalvik/dx/etc/dx.bat 將 set defaultXmx=-Xmx1024M 改為 set   defaultXmx=-Xmx512M

江湖一點訣 Android Handler Thread

江湖一點訣 Android Handler Thread  Android Tips 開發小技巧 - Handler.post Android Tips 開發小技巧 - Thread 無法 Interrupted!? Android Tips 開發小技巧 - Activity.runOnUiThread

How to submit patch to Android Open Source Project

Life of a Patch Submitting Patches   http://source.android.com/source/submit-patches.html Open的 Gerrit  https://android-review.googlesource.com/#/q/status:open,n,z

新年快樂之 Android C2DM資料收集

新年快樂之 Android C2DM資料收集 關於架構與想法 Mobile Application Architecture, Part 1 Mobile Application Architecture, Part 2 官網  Android Cloud to Device Messaging Framework Tutorial  Android Cloud to Device Messaging (C2DM) - Tutorial 而關於push notification  simple-google-android-c2dm-tutorial-push-notifications-for-android/ 更多筆記: Android C2DM (一):元件參數說明 Android C2DM (二):流程

拿到Ice Cream Sandwich之後 要怎麼吃呢?

Image
拿到Ice Cream Sandwich之後 要怎麼吃呢? SE教大家  Ice Cream Sandwich – from source code release to software upgrade 1. 底層要先能動 - The Bring up phase: Getting Ice Cream Sandwich to work on our phones 2. 接著是framework要整 -  Integrating Android patches 3. 然後上層的App也要做測試 - Getting the software stable and adding localisation 4. 出貨一定要過認證 - The Certification and approval phase: Making sure the software and hardware is compliant 5. 最後新的feature也許有新的認證 - Additional approvals might be needed 真的不簡單阿 ~ 因為要花以上這些功夫,拿到ICS之後還是要到明年才會真的吃到 ~ 目前只有 Galaxy Nexus 可以今年出現  其他廠牌頂多只有搶鮮版可以過過癮 ! 更多4.0新聞 Acer 也將推出Android 4.0 平板更新 ! 另外 2012年新貨色 Acer Iconia Tab A200 各品牌 Android 裝置可升級 Android 4.0 機型整理

Google DevFest Taipei 2010 note

Image
Google DevFest Taipei 2010 note Note: Introduction Android Building for Multiple Form Factors use DIP ! virtual pixel ! flot dipsize - dipsize * (new DisplayMetrics()).density Which version widget 1.5 quick search 1.6 data backup 2.2 What is new in Froyo ? DM C2DM Don't : polling Do : push when change com.google.android.c2dm.intent.REGISTER (Device to C2DM server) # https://android.api5.google.coom/c2dm/send/ (app server to C2DM server) project :  Android Cloud to Device Messaging Framework install to SD App Data Backup onRestore() Be cautious when back up sensitive data Be sure to synchronsize ! Market license Referral Tracking INSTALL_REFFERAL !! #http://code.google.com/mobilepr3 HTML 5 gs.statcounter.com   各家瀏覽器的支援程度  html5readiness.com 網頁相關資訊收集學習  caniuse.com 重要網站  html5rocks.com 投影片  goo.gl/WQOV Notification is not a WebKit API, will it in webkit source tree ? 其他html5文章: html 好威阿 Open Social ! OAuth use token instead of passwd At...

2011 ADL Taipei note

2011  ADL Taipei note UI Quality ? dpi ldpi : mdpi : hdpi : xhdpi 3 : 4 : 6 : 8 tvdip = 213 dp : sp(for text) smallest width -> sw design preview tool UI Patterns : Action  Bar contextual action bar stack action bar split action bar http://goo.gl/dxMtl Multi-Pane App Navigation contact > conttact detail -> email compose ->  email               (back)                              (up)                     do and don't ? hard accelerated default is true on ICS don't overuse fill_parent (beacause text ...............???) Android market feature new : Multiple APK support       Device Availability       localizr listing Commuication & Camera 1. Wifi direct High performance connection at a range WifiP2pManager App components BroadcastReceiver : state_change coneection_change p...

使用Eclipse 開發Android 如何更順 更Android

Image
關於使用Eclipse 開發Android 如何更順 更Android 服用本篇可以 1. 讓Eclipse更順 2. 讓Code有Android Code Style 3. 讓Code可以使用internal api 1.  讓Eclipse更順 可以修改eclipse.ini 以應付越來越大的memeory使用 原本是這個 -Xms40m -Xmx256m -XX:MaxPermSize=256m 推薦使用 -Xms128m -Xmx512m -XX:MaxPermSize=256m 2. 讓Code有Android Code Style 參考 http://source.android.com/source/using-eclipse.html 需要兩個檔案 android-formatting.xml 以及 android.importorder 然後 Eclipse formatting Select Window > Preferences > Java > Code Style. Use Formatter > Import to import android-formatting.xml. Organize Imports > Import to import android.importorder. 3. 讓Code可以使用internal api 要修改build path 把Android SDK裡面的layoutlib.jar 加印來 ex   \android-sdk\platforms\android-13\data\layoutlib.jar Eclipse -> Java Build path -> Add Library -> User Library  -> New (System library 要打勾) -> Add Jar Eclipse 相關文章: set Android error log on Eclipse linux(ubuntu)環境下開發 Android 所遇到的Eclipse 設定問題 Android tutorial : Before HelloWorld

關於Git與ICS

Image
之前有很多篇有關Git的介紹 在此推薦 Git魔法書 一次補完 ~!!! 其他文章: Adventure Book 2.0: 好物推薦: Git Adventure Book 2.0: most commonly used  git  commands Adventure Book 2.0: Repo 與 git Adventure Book 2.0:  Git  如何切換不同版本 另外推薦: [RD水電工不會修水管] Git 簡單使用情境教學 -- 2011/11/15 突然 Google 把ICS放出來了請看 http://source.android.com/source/downloading.html 基本上應該一招 $ repo init -u https://android.googlesource.com/platform/manifest -b android-4.0.1_r1 但實在太擠了,可以改用這招: ex.  git clone https://android.googlesource.com/platform/packages/apps/Launcher2.git 其他ICS相關文章: ICS 快要上市了但先review一下HC吧 Android 4.0  ICS  ice cream sandwich 冰淇淋來  ...

Android Widget 整理

Image
1. app widgets with collections像一般的app widget一样,你主要代码应该在AppWidgetProvider的onUpdate()方法中。 2. 希望AppWidgetProvider的进程能够长久运行,那么你可以考虑在onUpdate() 中启动一个Service。 3. 

unable to access file: corrupted zip file

Image
話說最近在Build Android Project有遇到一個問題 packages/apps/Calculator/src/ c om/android/calculator2/ History Adapter.java:65: cannot access org.xmlpull.v1.XmlPullParser bad class file: org/xmlpull/v1/XmlPullParser. c lass(org/xmlpull/v1: XmlPullPar ser.class) unable to access file: corrupted zip file Please remove or make sure it appears in the correct subdirectory of the classpath. view = mInflater.inflate(R.layout. his tory_item, parent, false); ^ 論壇上人說 如果你是使用apt-get install 来安装eclipse的话   使用apt-get remove  eclipse 但是實際上應該要做的是設定一些路徑,可以修改 .bashrc 加上這些                                                     export JAVA_HOME=/usr/lib/jvm/java-6- sun-1.6.0.13 export CLASSPATH=$JAVA_HOME/lib:$ JAVA_HOME/jre/lib:./ export PATH=$JAVA_HOME/bin:$JAVA_ HOME/jre/bin:$PATH:$HOME/bin 當然JAVA_HOME 是要自己去找一下的 -- 另外最近還有遇到一個妙問題 ...

把Android App變到Windows Phone上 !

Image
新聞連結: 微軟開放Android App轉換平台,打造App Guy解決開發者困難 http://news.pchome.com.tw/science/bnext/20110613/index-13079366404040555005.html Microsoft courts Android developers with new API mapping tool http://thenextweb.com/microsoft/2011/06/09/microsoft-courts-android-developers-with-new-api-mapping-tool/ 實際使用網址: http://wp7mapping.interoperabilitybridges.com/Home/Library?source=Android From Search Beauty

搜尋

Agoda

熱門文章

[社會觀察] 一生順遂與命途乖舛

新鮮人找工作:職場名詞解釋 AE FAE Pre-sales Post-sales

日本旅行 去東京可以在哪邊買羽球相關用品?WEMBLEY/WINDSOR/梭家/Victoria/Alpen TOKYO/

中華民國2024 總統、副總統選舉公告發布 連署參選門檻28萬9667人 可以推薦候選人的政黨包括民進黨、國民黨、民眾黨和時力

什麼是 OTA ?

[FAANG面試] 如何準備Google Technical Program Manager (TPM) 面試

[HMD Global] Nokia 2020 新手機發布 首款 5G 手機 Nokia 8.3 預計夏季開賣 !

關於中國:202X年

[表特][Passion Sisters] 中信兄弟PS女孩 浮誇甜心 凱蒂 炸裂全場~ 小許瑋甯

[音樂] 霖霖 新單曲:給你了