Ubuntu9.10下擷取Android源碼

首先根據http://source.android.com/download網頁上的描述可知,源碼大概有2.1GB,需要6GB空間才能編譯,因為我是在虛擬機器上裝的Ubuntu9.10,所以虛擬機器至少要有10GB空間。粗體,底線部分是我安裝中遇到的一些問題,或者重點關注的地方 首先需要安裝開發環境,需要如下包:Required Packages:Git 1.5.4 or newer and the GNU Privacy Guard.  JDK 5.0, update 12 or

Windows下載Android源碼

下載msysgit,安裝官方下載:http://code.google.com/p/msysgit/downloads/list, 開啟Git Bash,執行命令cd D:git clone https://android.googlesource.com/platform/manifest.git 輸入命令,切換到manifest目錄cd manifestgit tag 列出android各個分支版本git

android中Activity之間的操作。傳資料,取得資料,返回前一個Activity資料

1:從A--Activity到達B--ActivityIntent intent = new Intent();intent.setClass(BundleDemoActivity.this, otherActivity.class);2:從A--Activity傳輸資料到B--ActivityIntent intent = new Intent();intent.setClass(BundleDemoActivity.this, otherActivity.class);Bundle

取得螢幕大小 &&使用樣式表 android

取得螢幕大小:DisplayMetrics dm = new DisplayMetrics();getWindowManager().getDefaultDisplay().getMetrics(dm);dm.widthPixels;dm.heightPixels;使用樣式表:在res/values下面建一張style.xml<?xml version="1.0" encoding="utf-8"?><resources><style

Android各個版本API的區別

Android各個版本API的區別  Android 1.5 API變更概要:  1、UI framework  · Framework for easier background/UI thread interaction  · 新SlidingDrawer 組件  · 新HorizontalScrollview 組件 2、AppWidget framework  · 一些關於建立案頭AppWidget 的API.  · 提供根據自訂的內容建立LiveFolders的API 3、Media

android ListView 小結

布局檔案:在main.xml中設定一個ListView ,在other.xml中詳細 的設定ListView 的每一個單項的布局。例如:main.xml中:<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent"

android Gallery實現非同步載入網狀圖片

之前在網上找了很多都沒有這方面的資料,大概的效果是當Gallery滑動時不下載圖片,當Gallery滑動停止時載入當前頁面圖片,自己花了一點時間大概的實現了,如果各位有更好的意見歡迎說出來大家一起學習。先看看效果:這圖是在載入圖片時顯示的預設圖片,當圖片載入完成則替換。圖片載入完成import java.util.ArrayList;import java.util.HashMap;import java.util.List;import android.app.Activity;import

Android 中的Intent的某些用法

在 Android 上使用 Intent 開啟視頻連結的問題 Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse("http://www.yourvideo.mp4"), "video/mp4"); view.getContext().startActivity(intent); 檢測 Android 中的某個 Intent 是否有效public static boolean

Android ListView理解,BaseAdapter,ListView 的adapter用法和理解

ListView是Android開發過程中較為常見的組件之一,它將資料以列表的形式展現出來。一般而言,一個ListView由以下三個元素組成:1.View,用於展示列表,通常是一個xml所指定的。大家都知道Android的介面基本上是由xml檔案負責完成的,所以ListView的介面也理所應當的使用了xml定義。例如在ListView中經常用到的“android.R.layout.simple_list_item_1”等,就是Android系統內部定義好的一個xml檔案。2.適配器,用來將不同的

一鍵關閉android應用程式工具類

1.編寫一個class繼承Application public class AppClose extends Application { private List<Activity> mainActivity = new ArrayList<Activity>(); public List<Activity> MainActivity() { return mainActivity; } public void

Android屬性系列之layout_weight

對自己現在所瞭解的layout_weight屬性進行記錄,不求全面,只求正確!layout_weight意為"權重",我的理解就是給組件設定一個顯示大小的比例。layout_weight設定一個值,會出現兩種情況。第一種:當組件的“layout_width”屬性為“fill_parent”時,值越小,組件越大。第二種:當組件的“layout_width”屬性為“wrap_content”時,值越大,組件越大。第一種情況:Xml代碼 <LinearLayout     

android啟動模式

Activity載入模式standard: 標準模式,一調用startActivity()方法就會產生一個新的執行個體。

android 圖案片漸漸消失

布局:main.xml:<?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content"

Android TextView的各種屬性

在網上收集到了TextView 的屬性,在開發過程中還是挺有用的。android:autoLink設定是否當文本為URL連結/email/電話號碼/map時,文本顯示為可點擊的連結。可選值(none/web/email/phone/map/all)android:autoText如果設定,將自動執行輸入值的拼字糾正。此處無效果,在顯示IME並輸入的時候起作用。android:bufferType指定getText()方式取得的文本類別。選項editable

Android 下載圖片

URL fileURL = null;Bitmap bitmap = null;try {fileURL = new URL(picUrl);} catch (MalformedURLException err) {err.printStackTrace();}try {HttpURLConnection conn = (HttpURLConnection)

貝茲路徑學習 android

最近在學貝茲路徑,在網上找了些文章,感覺都不怎麼樣,就在前輩的基礎上進行了些修改。下面貼出代碼:【改天貼上很美的】MySurfaceView.javapackage mojia.main;import java.util.Random;import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import

android 在360之前簡訊攔截 解決辦法

可以開機啟動一個服務進行動態註冊優先順序設定最大值:android:priority="2147483647"

Android Push 開源方案解析

在 Android 上,因為 Google 自己實現的 Android 標配的 GCM (Google Cloud Messaging,原來叫 C2DM) 在國內基本不可用,所以,對於開發人員來說,如果需要 Push功能,怎麼樣選擇成為了一個問題。到目前為止,國內尚沒有完全向開發人員免費、開放的 Push 服務可用。國外有幾家第三方推送服務,但一般都要收費。所以一般來說,國內的開發人員不得不考慮自己來搭建 Push服務。自己構建

android 線上視頻播放器實現方法

public class VideoActivity extends Activity {private static final String TAG = "VideoActivity";private EditText filenameText;private SurfaceView surfaceView;private MediaPlayer mediaPlayer;@Overridepublic void onCreate(Bundle savedInstanceState) {

Android模擬器中類比使用SD卡

我以liunx(ubuntu)為例子:1.  建立SD卡鏡像檔案      1)開啟終端進入到ANDROID SDK目錄的tools目錄下(比如我的路徑是/home/XXX/Android_install/android-sdk-linux_x86/tools);       2) 執行mksdcard建立: root@XXX:/home/XXX/Android_install/android-sdk-linux_x86/tools#mksdcard 256M sdcard.img       

總頁數: 2771 1 .... 462 463 464 465 466 .... 2771 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.