如何卸載android SDK中的應用程式

1. 首先啟動android模擬器。2. 開啟cmd命令列視窗。   輸入 adb

android處理圖片的函數

// 放大縮小圖片public static Bitmap zoomBitmap(Bitmap bitmap, int w, int h) {int width = bitmap.getWidth();int height = bitmap.getHeight();Matrix matrix = new Matrix();float scaleWidht = ((float) w / width);float scaleHeight = ((float) h /

Android系統build/core下.mk檔案分析

Android編譯系統的架構:        分析Android編譯系統,你會發現,Android編譯系統完成的並不僅僅是對目標(主機)系統二進位檔案、java應用程式的編譯、連結、打包等,而且還有包括產生各種依賴關係、確保某個模組的修改引起相依賴的檔案的重新編譯連結,甚至還包括目標檔案系統的產生,設定檔的產生等,因此Android編譯系統具有支援多架構(linux-x86、windows、arm等)、多語言(彙編、C、C++、Java等)、多目標、多編譯方式。這些目標和結構決定其架構也很重要。

Android記憶體管理

 這兩個方法是網上拷別人的,分別用來得到可用記憶體和記憶體總數,這樣我們就可用得到了已用記憶體數。private long getAvailMemory(Context context){// 擷取android當前可用記憶體大小ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);MemoryInfo mi = new

Android學習筆記(六) 調整手機螢幕亮度Brightness seekbar實現

brightness(亮度)是window中的一個屬性 修改亮度需要取得window屬性方法為: WindowManager.LayoutParams layoutParams = getWindow().getAttributes(); layoutParams.screenBrightness = b;// b是亮度getWindow().setAttributes(layoutParams); b是一個浮點數 從0~1

android ScrollView(捲軸視圖)

ScrollView01.java: package com.ScrollView01;import android.app.Activity;import android.os.Bundle;import android.os.Handler;import android.view.KeyEvent;import android.view.View;import android.widget.Button;import android.widget.LinearLayout;import

Android學習筆記(四) android 更換案頭壁紙—–WallpaperManager

Android 中壁紙管理主要由 WallpaperManager 這個類負責  Provides access to the system wallpaper. With WallpaperManager, you can getthe current wallpaper, get the desired dimensions for the wallpaper, set thewallpaper, and more. Get an instance of WallpaperManager

android DatePicker(日期和時間)

DatePicker01.java: package com.DatePicker01;import java.util.Calendar;import android.app.Activity;import android.app.DatePickerDialog;import android.app.TimePickerDialog;import android.os.Bundle;import android.view.View;import

Android開發入門(五)之介面Activity之間的跳轉

原文地址:http://www.cmath.net/read.php?tid=57在開始讀這篇文章之間,介意你先閱讀Android開發入門(四)之介面Activity。Activity之間的跳轉分為兩種一種是顯示的,另一種是隱式跳轉,推介使用隱式跳轉,不過本文兩種都會講解。在Android開發入門(四)之介面Activity中源碼中已包含了顯式跳轉。首先在Android開發入門(四)之介面Activity中已有一個Activity,這裡需在再建一個Activity。第一步:在項目中res/lay

利用半透明對話方塊實現新浪微博android用戶端首次運行時的提示介面

首先,設定要覆蓋在最上方的dialog的view<?xml version="1.0" encoding="utf-8"?><RelativeLayout android:background="@drawable/navigater_bg" android:padding="0.0dip" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://

Android控制項開發之Chronometer

Chronometr是一個簡單的定時器,你可以給它一個開始時間,並以此定時,或者如果你不給它一個開始時間,它將會使用你的時間通話開始。預設情況下它會顯示在當前定時器的值得形式"分:秒" 或"MM:SS", 或者可以使用set(字串)的定時器值到一個任一字元串重要屬性android:format 定義時間的格式如: hh:mm:ss重要方法setBase(long base)//設定倒計時定時器setFormat(String

Android控制項開發之CheckBox

CheckBox,也就是多項選擇。Android中提供了ChechBox控制項,使用起來非常方便。CheckBox效果main.xml源碼<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical"

Android中建立和檢測捷徑

public class ShortcutUtil {/** * 建立捷徑 * * @param context */public static void createShortcut(Context context, Class<?> target) {// <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />Intent intent = new

repo sync 擷取Android Source 遭遇 the remote end hung up unexpectedly 的解決辦法

Android 原始碼獲得過程中,repo sync經常失敗的解決辦法: 主要參見:http://www.tonypig.net/?p=9998 ,感謝作者; 1. 修改repo     將REPO_URL中的git:修改為http:2. 在你要下載原始碼的目錄(這裡是 Android_SOURCE) 中,運行指令碼:repo init -u http://android.git.kernel.org/platform/manifest.git -b

ANDROID源碼編譯3 – 編譯和運行

 編譯ANDROID系統的基本順序如下, 初始化 使用envsetup.sh指令碼來初始化環境。$ source build/envsetup.sh或者$ . build/envsetup.sh選擇編譯目標 使用lunch命令來選擇編譯目標。確切的配置可以作為參數傳進去,如:$ lunch full-eng上面的例子是一個針對emulator的完整的編譯,包括所有的調試資訊都是使能的。如果不帶參數運行lunch,將會提示選擇編譯目標。所有的編譯目標使用BUILD-BUILDTYPE的格式來指定,

android sdk setup時出現:Failed to fetch URL…

【問題】在官方下的android SDK的安裝包,運行時,出現:Failed to fetch URL https://dl-ssl.google.com/android/repository/repository.xml, reason: HTTPS SSL error. You might want to force download through HTTP in the settings. 【解決方案】在安裝的頁面中,修改代理配置:1. Settings裡Http Proxy

Android TextView滾動效果

覺得字串可能長短不一,不能完全顯示,老大說讓做成滾動效果那種,本來以為很難,不過萬能的baidu告訴我不難,如下而已:TextView加三行屬性android:singleLine="true"android:ellipsize="marquee" android:marqueeRepeatLimit="marquee_forever" ps:下面這個layout我驗證過,可以滾動的<?xml

在android 2.3 AVD 模擬器上安裝 google market 安卓市場

首先我要非常感謝原文的作者 TipzTV ,在模擬器上安裝 google market

android 3D 遊戲實現之綜合執行個體(初步)

效果比5月份那份代碼和諧了一點,但仍有待改進,現在我將代碼發上來。 完整項目可以去http://simdanfeg.download.csdn.net/處下載(1)Activity類package sim.feel;import java.io.IOException;import java.io.InputStream;import android.app.Activity;import android.content.res.AssetManager;import

在Android中實現多線程同步

 1. java中對多線程存取控制可使用關鍵字synchronized 下面將以Producer Consumer模型介紹android中線程同步的使用。步驟:建立一android project,修改main activity如下:代碼:package com.test.thread;import android.app.Activity;import android.os.Bundle;import android.util.Log;public class MultiThread

總頁數: 2771 1 .... 583 584 585 586 587 .... 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.