Time of Update: 2018-12-03
Speex on AndroidPosted on April 6, 2011, 1:24 am, by Mario, under Android, OMG Ponies!.JSpeex does not work very well on Android, encoding times are between 0.03 to 0.2 seconds for a 320 samples frame. Way to much for any real-time app (can you say
Time of Update: 2018-12-03
轉載請註明出處:http://blog.csdn.net/xiaanming/article/details/9401981ADB server didn't ACK
Time of Update: 2018-12-03
轉載請註明出處:http://blog.csdn.net/xiaanming/article/details/9428613Android 應用程式之間內容分享詳解(一)之前給大家分享了你開發的應用程式給其他應用程式分享內容,想瞭解的朋友點擊:Android
Time of Update: 2018-12-03
我們都知道Android4.0以上才帶有滑動開關Switch,那麼在4.0以下呢,很多人會選擇用CheckBox,放兩張圖片,但是這樣子只能點擊,效果不太好,所以我就自訂了滑動開關WiperSwitch這麼一個控制項,下面先把貼上吧,這蹩腳的圖片真戳啊,大家可以自己換三張圖片package com.example.wiperswitch;import android.content.Context;import android.graphics.Bitmap;import
Time of Update: 2018-12-03
先看看效果使用最新的android-support-v4.jar<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/drawer_layout" android:layout_width="match_parent"
Time of Update: 2018-12-03
囉嗦下:發現自己的blog被轉載了,不過沒有註明出處,有點痛並快樂著的感覺。這裡正式申明下:轉載請註明出處,感謝。如有商用目的請務必知會本人。 android上簡訊功能基本很穩定了,一般很少維護,所以感覺總是很陌生。%>_<%
Time of Update: 2018-12-03
接著上一篇Action Bar 加入Back鍵, 在Action Bar中加入自訂View. 依然先看效果:actionbar自訂view的布局檔案action_bar.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content"
Time of Update: 2018-12-03
如何解決 ndk sdk 編程無法串連平板電腦 (MZ60x)???MZ606/604/601 同樣適用前題首先widows環境下已經用eclipse-helios 做好程式,並且在3.0 下模擬器成功運行; 但裝置上運行提示無法串連。 同樣到問題,在linux(ubuntu)下也是裝置無法串連; 值得一提到是,在Mac下裝置直接就連上來,不用任何設定。由此可見在實際到工作中,imac的使用效率還是比linux和win厲害。1. Windows7環境用資料線串連MZ606和
Time of Update: 2018-12-03
花了整整一個星期,終於把技術痛點給突破了,貌似網上對這個討論的較少。主要需要實現的功能是在Android手機上即時採集視頻,並在遠程比如PC機上即時顯示出來,也就是以android手機作為監控網路攝影機。一開始查到的是smartcam的一個開源項目,看了下原始碼,發現其實現原理是利用Android
Time of Update: 2018-12-03
android系統為大家提供了adb工具,在adb的基礎上執行adb
Time of Update: 2018-12-03
其實很簡單,分三步:1.在drawable中建立檔案checkbox_selector.xml:<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android"><item android:state_checked="true" android:drawable="@drawable/checkbox_ok" /&
Time of Update: 2018-12-03
private boolean displayMap(int cellID, int lac) throws Exception { String urlString = "http://www.google.com/glm/mmap"; //---open a connection to Google Maps API--- URL url = new URL(urlString);
Time of Update: 2018-12-03
不知道大家有沒有這個錯,右鍵——>new——>Android Project——>Create project from existing source然後選擇Sample下面的例子匯入,會找不到R.java這個檔案,同時也提示match_parent無效。 在網上找了一下,各有解釋,經過實驗,我發現可以這樣做:1、第一次匯入的時候Build
Time of Update: 2018-12-03
1.當安裝好android後,建立的工程運行時,彈出對話方塊“Your project contains error(s),please fix them before running your application ”,下面出現“Manifest attribute 'minSdkVersion' is set to '***'.Integer is expected.”的錯誤提示? (如)每次看到這個都是生不如死啊!幾乎用盡了一切辦法啊,最後終於找到比較好的解決方案了!最後才知道是
Time of Update: 2018-12-03
在看Android2.2SDK源碼時,在MemoryFile.java中看到有這麼一段代碼:private final boolean mOwnsRegion;// false if this is a ref to an existing ashmem region 其構造器為: public MemoryFile(String name, int length) throws IOException{ mLength = length; mFD =
Time of Update: 2018-12-03
用途: 做自動整合編譯環境.環境搭配我就不說了(SDK/環境變數等).進入cmd介面.進入項目目錄.輸入: android.bat list target 來查詢我們現有的版本list有哪些.記住這個ID號碼,下的代碼面會用到.輸入: android update project -n ButtonDemo -t 1 -p
Time of Update: 2018-12-03
解釋:1號黑色條位置向下覆蓋的地區表示圖片橫向展開時,只展開該地區2號黑色條位置向右覆蓋的地區表示圖片縱向展開時,只展開該地區3號黑色條位置向左覆蓋的地區表示圖片縱向顯示內容的地區4號黑色條位置向上覆蓋的地區表示圖片橫向顯示內容的地區沒有黑色條的位置覆蓋的地區是圖片展開時保持不變(比如,如果圖片的四角為弧形的時候,當圖片被任意展開時,四角的弧形都不會發生改變)
Time of Update: 2018-12-03
最近項目第一個版本出來了,打包apk啊,混淆代碼什麼的,android合成了proguard混淆代碼。在project.properties檔案中配置proguard.config=proguard.cfg,讓proguard.cfg生效。項目加入了第三方jar包。混淆的時候要把jar排除在外。#不混淆第三方jar-dontwarn org.**-libraryjars libs/commons-net-ftp-2.0.jar-libraryjars
Time of Update: 2018-12-03
關於Service和IntentService的不同就不多說了,主要參考http://blog.csdn.net/zhf198909/article/details/6906786這篇文章。主要是IntentService比Serivce多了一個onHandleIntent 方法用於進行耗時操作,兩個service執行流程(startService(new Intent(this.
Time of Update: 2018-12-03
擷取Camera執行個體,在2.3之前可以用靜態方法Camera camera = Camera.open();,如果手機帶前後置的網路攝影機,那2.3之前sdk擷取到的執行個體為後置的主網路攝影機,自拍擷取不到。擷取Parameters parameters = camera.getParameters();