Android: Open source FileManager

APK學習叢一個filemanager開始是極好的http://www.openintents.org/http://git.android-x86.org/?p=platform/packages/apps/FileManager.git;a=shortlog;h=refs/heads/gingerbread-x86**************************************************************************** 2 *

Android: AirReceiver Project

https://github.com/fgp/AirReceiverAirReceiver===========Florian G. Pflug <fgp [at] phlo.org>May 2011Overview--------AirReceiver is an AirPort Express emulator, i.e. it allows streaming audiofrom iTunes and iOS devices to a computer running

Android: Bitmap OutOfMemory

//decodes image and scales it to reduce memory consumption private Bitmap decodeFile(File f){ try { //Decode image size BitmapFactory.Options o = new BitmapFactory.Options(); o.inJustDecodeBounds = true;

Android: Sensors on Android 2.3 – Gingerbread

http://indure.chinaunix.com/space.php?uid=20723576&do=blog&id=1887152Sensors on Android 2.3 - GingerbreadSensors on Android 2.3 - GingerbreadAndroid 2.3 (codename Gingerbread) was officially released amidst huge hype and fanfare last week

Android判斷App是否在前台運行

Android開發中,有時候需要判斷App是否在前台運行。代碼實現如下:private boolean isRunningForeground (Context context){ ActivityManager am = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE); ComponentName cn = am.getRunningTasks(1).get(0).topActivity;

Android: DroidAirPlay Project

https://github.com/pentateu/DroidAirPlayDroidAirPlay===========Rafael Almeida (rafael@iswe.co.nz)July 2012Overview---------------The ideia is to develop a AirPlay Receiver that runs on Android tablet and is part of a wider range of apps for

Android: project UrlImageViewHelper

https://github.com/koush/UrlImageViewHelperUsageUrlImageViewHelper will automatically download and manage all the web images and ImageViews. Duplicate urls will not be loaded into memory twice. Bitmap memory is managed by using a weak reference hash

Android: ApiHelper

/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *

Android: ImageView and Bitmap

imageView.setImageBitmap(bitmap)從res獲得Bitmap:Bitmap bitmap= BitmapFactory.decodeResource(getResources(), R.drawable.xxx);從ByteArray獲得Bitmap:Bitmap bitmap= BitmapFactory.decodeByteArray(data, 0,

Android: Downloading the Google USB Driver

http://developer.android.com/sdk/win-usb.htmlDownloading the Google USB DriverFigure 1. The SDK and AVD Manager with the Google USB Driver selected.The USB Driver for Windows is available for download as an optional SDK component. You need the

Android: 帶表徵圖的ListView實現

ListView的SimpleAdapter有很好的擴充性,可以定義各種不同的布局,可以放片、Button、CheckBox等等,本文實現一個帶有前後表徵圖的列表視圖: 列表中item的組成:(R.id.img_pre)(        R.id.text             )(R.id.img) 首先定義用來顯示列表中item的layout檔案list_item2.xml:<?xml version="1.0"

Android: HowTo設定app不被系統kill掉

有一種方法可以設定app永遠不會被kill,AndroidManifest.xml 中添加:android:persistent="true"適用於放在/system/app下的app 設定後app提升為系統核心層級,任何情況下不會被kill掉, settings->applications裡面也會屏蔽掉stop操作,設定前 Proc #19: adj=svc  /B 4067b028 255:com.xxx.xxx/10001 (started-services)# cat /proc/

Android: 顯示SD卡檔案清單

讀取SD卡檔案資訊,添加到ListView中顯示出來: ListView取得SD檔案資訊的代碼:List<Map<String, Object>> list = new ArrayList<Map<String, Object>>(); String sDStateString = Environment.getExternalStorageState(); if

Android:+WebView+demo

項目地址: http://code.google.com/p/apps-for-android/source/browse/#svn/trunk/Samples/WebViewDemoUsing WebViewsArticle about User Interface and Web ContentWebViews allow an application to dynamically display HTML and execute JavaScript, without

Android學習筆記之Table Layout

主要將如何UI設計器設計TableLayout + TableRow,由於實際應用中,經常需要在代碼裡往TableLayout添加資料(9宮圖也可以用TableLayout做出來),本文就是介紹這方面的簡單使用方法<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation=

Android: Android Light Sensor HOWTO

基於android 2.2 添加Light Sensor支援:1) UI部分2) framework部分3) HAL 部分4) Driver 部分 下面分別討論:1) UI部分    a) 開啟亮度設定菜單的自動調整亮度checkbox        frameworks/base/core/res/res/values/config.xml :        -

Android: How to Capture Screen in Gingerbread(2.3中實現截屏)

範例程式碼在:frameworks\base\services\surfaceflinger\tests\screencap\screencap.cpp/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance

Android: 淺論虛擬SD卡的實現

我們知道,Android的設計中,SD卡(ExternalStorage)是非常重要APK的manifest.xml中可以定義prefer external或auto 來選擇安裝到SD卡有些APK在運行中需要SD卡來儲存資料,而有些大型遊戲需要大量的SD卡空間這樣如果系統沒有接入SD卡,某些APK就會碰到安裝或啟動並執行問題但對於現在的硬體平台,很多都內建了幾個G的儲存空間(Nand/iNand

Android: ListView排序及過濾

1) 排序ListView通過適配器得到內容資料,可以對資料list先排序再提供給ListView:private List<Map<String, Object>> getData() {List<Map<String, Object>> list = new ArrayList<Map<String, Object>>();  //add Data ... //對list進行排序 if (!list.isEmpty())

Android學習筆記之檔案下載

網路檔案是怎麼下載到本地的?簡單的說就跟你在本地複製粘貼是一樣的道理,就是把網路上檔案裡面的內容copy到你本地上一個檔案裡面,這樣就實現了檔案的下載.  Andoird應用程式裡要實現檔案下載,需要哪些步驟呢?   一.獲得上網的許可權 我們要在網路上下載檔案,首先你得可以上網。可以上網還不行,你得給你的應用程式響應的訪問網路的許可權才行,我們只需要在AndroidManifest.xml中添加一行代碼就可以搞定。   你就別問我在Manifest檔案的哪一個位置加了..   

總頁數: 2771 1 .... 811 812 813 814 815 .... 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.