【Android應用】 蘇州即時公交

 本應用基於蘇州地圖網, 僅為方便使用者。  準系統:1. 公交線路查詢2. 公交月台查詢3. 即時公交資訊 適用範圍:平台:    Android 2.1及以上解析度: 480*800 (其他解析度未測) (需要訪問網路)  具體看圖: (注意: 這邊的本地版, 僅僅是查詢首頁在本地, 不是完完全全的本地版,資料還是在伺服器上, 只能為使用者稍微減少一些流量開銷! )          ( 需要本軟體的話, 請留下你的郵箱, 我會儘快發給你們!)註:

Android進階:實現多線程下載檔案

多線程下載大概思路就是通過Range 屬性實現檔案分段,然後用RandomAccessFile 來讀寫檔案,最終合并為一個檔案 首先看下  建立工程 ThreadDemo 首先布局檔案 threaddemo.xml <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"

Android中launcherMode=”singleTask”詳解【android源碼解析六】

            android中launcherMode有4中屬性:standard(預設), singleTop,singleTask和 singleInstance;網上有好多例子講解這四種關係的:下面我列舉幾個連結:       大明原創---->轉載請標明出處:http://blog.csdn.net/wdaming1986/article/details/7304191        http://www.cnblogs.com/xiaoQLu/archive/2011/

修改android monkey源碼使其支援UI自動化測試

    在Android平台上,如果要實施自動化測試的話,有幾個方式,比如使用基於Instrumentation類庫及其衍生類,或者是使用monkeyrunner,測試案例運行在PC上,通過USB或者WIFI向Android手機的應用發送測試命令。這兩個方案各有優缺點:    1、

Android工具HierarchyViewer 代碼導讀(1) — 功能實現示範

HierarchyViewer是Android SDK包中一個非常好用的工具,你在

Android Monkey(二)

這次我們來講一下,MonkeySourceNetwork.java.這個類相對較大,裡面有許多的內嵌類.(ps. 我不是寫Java出身的,看到內嵌類就不符合我的審美習慣)1.有一個MonkeyCommand的類,這是一個interface. *Command都是他的子類.其中定義了一個很重要的方法:這個方法將string 類型的command轉換為MonkeyEvent對象,並放入commandQueue. MonkeyCommandReturn

Android Monkey(一)

這兩天在讀Android Monkey的原始碼.代碼不多,放出分享.我現說一下,Monkey是幹什麼的:簡單的說就是,類比使用者的touch screen和keyboard的輸入.其實這個功能就已經很恐怖了.  Google自己說的下面:// Only bind this to local host.  This means that you can only// talk to the monkey locally, or though adb port

android截屏方法

/** * 截屏方法 * @param view * @param path * @param fileName */ public static boolean takeScreenShot(View view ,String path){ boolean

Android類比按鍵

在android

PC端與android手機端使用adb forword通訊

PC端與android手機端使用adb forword通訊伺服器端代碼如下:import java.io.IOException;import java.io.ObjectOutputStream;import java.net.Socket;import java.net.UnknownHostException;import java.util.Scanner;public class Server {public static final String TAG =

android 靜默安裝

分享下android下,靜默安裝的方法,靜默安裝就是繞過安裝程式時的提示視窗,直接在後台安裝。注意:靜默安裝的前提是裝置有ROOT許可權。代碼如下:/** * 靜默安裝 * @param file * @return */public boolean slientInstall(File file) {boolean result = false;Process process = null;OutputStream out = null;try {process =

Android模擬器出現emulator-5554 disconnected! Cancelling activity launch !的解決辦法

關於 emulator-5554 disconnected! Cancelling 'xxx activity launch'!的問題,解決方案:d:cd D:/Program Files/android-sdk-windows-1.6_r1/toolsemulator -avd avd1.6其中 D:/Program Files/android-sdk-windows-1.6_r1/tools是Android SDK目錄emulator -avd

我的第一份android工作

從找工作到今天面試通過已經過了。2個月的時間了。這期間準備每天一篇blog的,可發現很難的,我是一個新手,沒什麼可寫的。但以後我會寫寫每天的收穫吧。謝謝這段令人難忘的經曆。讓我成長了起來。過兩天我就找房子搬家。搬到公司附近,也遠離了史各莊這個臭熏熏的地方。髒亂差。我沒有資格評論什麼,但這裡的環境確實很差。每天我都把手機放走廊才能有訊號進來,才能接到面試電話。這段陰暗的時光,對我來說是個激勵吧,今天投出去最後一份簡曆。(一共印了10份)。終於找到了工作,讓明天去試用3天,3天合格,那麼就簽試用合約

android 自訂edittext邊框

今天修改EditText邊框,搞了半天,參考下文才修改完。謝謝bolg源。自訂EditText邊框背景:首先重新定義一個style。在values檔案夾下建立一個xml檔案:<?xml version="1.0" encoding="utf-8"?>        <resources>            <style name="my_edittext_style" parent="@android:style/Widget.EditText">    

第一天遇到的,死活升級不了android sdk tools問題。

今天第一天上班,配了一上午環境,急死了。卡在升級sdk tools版本上了。硬用了4個小時解決了這個麻煩。首先,我來來去去的弄了三次eclipse和android-sdk-windows。這版本那版本,看著都要瘋。後來建立項目的時候提示 sdk版本12.0,必須升級到20.0才能讓建立新項目。 然後開啟sdk manager 。載入之後就停在原地。不自動升級。也不讓安裝,只有delete可以選。。當然,死也不會選這項的。然後總是返回一個https錯誤。reason: peer not

Android frameworks中Bn*和Bp*的區別

Q:What do "Bn*" and "Bp*" stand for in frameworks/base/include/utils/IInterface.h ?I understand that "B" is for binder but what about "n" and "p"?It seems like "p" may stand for "remote" and "n" for "native" but I would love a clarification.A:"n" is

Android刪除簡訊的方法

1.刪除簡訊的函數,一條一條的刪除所有簡訊/* * Delete all SMS one by one */public void deleteSMS() {try {ContentResolver CR = getContentResolver();// Query SMSUri uriSms = Uri.parse("content://sms/sent");Cursor c = CR.query(uriSms,new String[] { "_id", "thread_id" },

Android Interview Questions & Answers

Describe the APK format.The APK file is compressed the AndroidManifest.xml file, application code (.dex files), resource files, and other files. A project is compiled into a single .apk file.What is an action?A description of something that an

Android設定文字框單行多行顯示

android:singleLine Since: API Level Constrains the text to a single horizontally scrolling line instead of letting it wrap onto multiple lines, and advances focus instead of inserting a newline when you press the enter key. Note: for editable text

android中shape與selector的使用

最近又要做android項目,沒辦法,又得學學android了,多麼希望這個世界只有C++.<?xml version="1.0" encoding="utf-8"?><selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true"> <shape> <!--

總頁數: 2771 1 .... 1495 1496 1497 1498 1499 .... 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.