Posts Tagged ‘Android’

The collection of different types of multimedia files

January 27, 2010

I’m developing MMS on Android platform, so need test different formats of images/audios/videos. Here I found a site which includes many types of multimedia files, so great.

http://samples.mplayerhq.hu/

This is the MPlayer/FFmpeg samples collection.
You can find samples of various common and uncommon
multimedia formats here. The size of the collection
currently is 38GB and growing.

The site has no search functionality, so it is hard to search one format of file. You may using Google, input “<the_keyword> site:samples.mplayerhq.hu”

Hope it is helpful for everyone.

Advertisements

AndroidGuys Podcast #35

January 14, 2010

DroidEx: Projecting Android on the Big(ger) Screen

January 11, 2010

DroidEx: Projecting Android on the Big(ger) Screen

DroidEx displays a copy of your attached Android device’s screen on your own development machine’s screen. Mostly, this is useful for presentations, as you can attach an Android device to a notebook attached to a projector, and your audience can see what is on the device. In particular, this is good for demonstrations of things that cannot readily be demonstrated via the emulator, such as GPS access or the accelerometer.

This version of DroidEx works with the Android 2.0 SDK.

Usage

This version of droidex takes an optional -s switch, with a floating-point value representing by how much to scale the image (e.g., -s 1.25 on an HVGA device will give you a 600×400 projected image). By default, the scale is 1.0, meaning the project image will be as many pixels as is the physical screen size.

Linux & OS X

Set your ANDROID_HOME environment variable to point to the base directory where your Android SDK is installed. Then, just run the droidex shell script from the droidex/ directory.

Windows

It is probably easiest to just copy the droidex shell script to a droidex.cmd batch file, change the classpath separator, replace $ANDROID_HOME with the proper value for your PC, and use the batch file. Also, you will need to replace $1 with %1, etc.

Dependencies

The Android 2.0 SDK, or at least ddmlib.jar. DroidEx also uses args4j, a compatible copy of which is included in the repo.

Compatibility

DroidEx is known to work with: 1. T-Mobile G1 2. Google Ion 3. HTC Tattoo 4. Motorola DROID

DroidEx is known not to work with: 1. HTC Hero (at least early versions distributed by Sprint in the US) 2. ARCHOS 5 Android tablet

Version

Version 1.0, meaning DroidEx has been used a fair bit. The head is what is documented here and is somewhat more leading-edge.

License

The code in this project is licensed under the Apache Software License 2.0, per the terms of the included LICENSE file.

Open Source Development

Those interested in contributing to DroidEx may be interested in the project’s Lighthouse issue tracker and the project’s development Google Group.

Questions

If you have questions regarding the use of this code, please join and ask them on the cw-android Google Group. Be sure to indicate which application you have questions about.

[Via]

http://github.com/commonsguy/droidex

androidscreencast

January 11, 2010

Desktop app to control an android device remotely using mouse and keyboard. Should work on Windows/Linux/MacOS with any android device.

Install

  1. Install the android sdk (download here)
  2. Connect your device through USB cable and ensure it’s detected with “adb devices”
  3. Make sure you have Java Runtime Environnement 5 or later installed
  4. Click HERE. You can launch it by typing “javaws ” from a command line.

Features

  • Mouse and keyboard control FOR ROOTED DEVICES ONLY
  • Landscape mode (right click)
  • Video recording
  • Basic file browser

Current limitations

  • Slow refresh rate (about 4-5 fps)
  • Not all keycode are mapped. SeeKeyMapping

Todo

  • Automatic screen rotation based on the device current state.
  • Improve speed
  • Audio redirection

How can i help ?

  • Donate using this button : (Thank Daniel and Tyler !)
  • Report issues, submit patch, …

[Via]

http://code.google.com/p/androidscreencast/

The Google Maps on Android

January 11, 2010

I collected some links about the Google Maps on Android.


1.
http://android-developers.blogspot.com/2008/09/using-webviews.html

2.
http://code.google.com/p/mapme/
http://developer.db4o.com/ProjectSpaces/view.aspx/MapMe

3.
http://www.anddev.org/google_driving_directions_-_mapview_overlayed-t826.html
http://www.anddev.org/route_-_improved_google_driving_directions-t1892.html
http://csie-tw.blogspot.com/2009/06/android-driving-direction-route-path.html
http://csie-tw.blogspot.com/2009/09/android-update-current-location-by.html

http://mapki.com/wiki/Google_Map_Parameters

This tool will help you retrieve a latitude and longitude value for any point on the map.
http://mapki.com/getLonLat.php

http://code.google.com/intl/zh-CN/apis/maps/

http://jsharkey.org/blog/2008/08/22/driving-directions-in-android-09-sdk/

http://code.google.com/intl/zh-CN/apis/kml/

http://code.google.com/p/wherearemyfriends/

http://www.williamhua.com/2009/04/23/android-touchscreen-gesture-recogniton/
http://www.androidres.com/index.php/2009/06/08/gesturedetector/
http://www.eoeandroid.com/thread-4407-1-1.html

Using Google Maps in Android
http://mobiforge.com/developing/story/using-google-maps-android

ItemizedOverlay & ArrayIndexOutOfBoundsException > explanation AND solution !!
http://groups.google.com/group/android-developers/browse_thread/thread/38b11314e34714c3

Android Tutorial 2: “Hit” testing on a View (MapView)
http://blog.pocketjourney.com/2008/03/19/tutorial-2-mapview-google-map-hit-testing-for-display-of-popup-windows/

Hello, MapView
http://developer.android.com/guide/tutorials/views/hello-mapview.html

Map Tutorials on anddev.org
http://www.anddev.org/viewforum.php?f=18

Tutorial 1: Transparent Panel (Linear Layout) On MapView (Google Map)
http://blog.pocketjourney.com/2008/03/15/tutorial-1-transparent-panel-linear-layout-on-mapview-google-map/#respond

Set HTTP Proxy:
cd /data/data/com.android.providers.settings/databases/
sqlite3 settings.db
select * from system;
insert into system values(99,’http_proxy’,’wwwgate0-ch.mot.com:1080′);

Set DNS:
setprop net.dns1 144.189.5.250
setprop dhcp.tiwlan0.dns1 144.189.5.250

Local search example URL:
http://ajax.googleapis.com/ajax/services/search/local?hl=en&v=1.0&rsz=large&q=supermarket&sll=32.04093120421442,118.78413677215576&start=3

Android LocationManager 使用
http://blog.csdn.net/saint_bxg/archive/2009/07/07/4329008.aspx

Android应用开发实战:GPS与加速度传感器
http://tech.it168.com/a2009/1016/761/000000761365_2.shtml

http://wghjay.javaeye.com/blog/421275

How to get webview’s content into a bitmap?
http://groups.google.com/group/android-developers/browse_thread/thread/5bab2668cd5ab44f/b74b2dbf57bc01c7?lnk=raot

How to capture any screen? [Like screen shot does in DDMS]
http://groups.google.com/group/android-discuss/browse_thread/thread/0c7891cac8225505/8bde5eab18ef05c0#8bde5eab18ef05c0

http://www.google.com/glm/mmap

Google to offer SDK for Android live wallpapers

January 10, 2010

Google to offer SDK for Android live wallpapers

Random people ask to hold my Nexus One every time I pull it out, as I have walked around the show floor of CES. Most of these people know little about Android, but the first thing they always ask about is the live wallpapers. It might seem like a battery draining gimmick to some, but this new feature of Android 2.1 is getting the most buzz from people who are new to Android.

There are currently 10 live wallpapers to choose from and that number will be greatly expanding soon. Google will be releasing a SDK that will allow developers to code their own wallpapers, according to Android Engineer Romain Guy.

What kinds of interactive wallpapers would you like to see developers create?

[Via]

http://androidandme.com/2010/01/news/google-to-offer-sdk-for-android-live-wallpapers/

Shared Icons

January 9, 2010

http://www.openshareicons.com/

http://shareicons.com/

Dedexer

January 9, 2010

Dedexer is a disassembler tool for DEX files. DEX is a format introduced by the creators of the Android platform. The format and the associated opcode set is in distant relationship with the Java class file format and Java bytecodes. Dedexer is able to read the DEX format and turn into an “assembly-like format”. This format was largely influenced by the Jasmin syntax but contains Dalvik opcodes. For this reason, Jasmin is not able to compile the generated files.

java -jar ddx.jar -d <directory> <dex file>

http://dedexer.sourceforge.net/

Dedexer:Dex文件反编译工具介绍

Dedexer 项目主页:
http://dedexer.sourceforge.net/

软件下载链接:
http://nchc.dl.sourceforge.net/project/dedexer/dedexer/1.5/ddx1.5.jar

使用指南:
为了方便,我把ddx1.5.jar放入system32中,运行CMD.输入如下命令:
D:\WINDOWS\system32>java -jar ddx1.5.jar
Usage: java -jar ddx.jar -o -D -d <destination directory> <source>
<destination directory> :指定生成的文件放置的目录
<source> :dex源文件.
-D – 指定生成错误信息.
-o – 指定生成日志文件(dex.log).

运行结果,出现一个使用帮助.仔细阅读后试了下:
java -jar ddx.jar -o -D -d <destination directory> <source>
java -jar ddx1.5.jar -o -D -d c:\dex\gen c:\dex\classes.dex

示例:
D:\WINDOWS\system32>
java -jar ddx1.5.jar -o -D -d c:\dex\gen c:\dex\classes.dex
Processing com/eoeandroid/market/MarketActivity$2
Processing com/eoeandroid/market/MarketActivity$1

运行成功,在gen 目录生成了ddx 文件.用文本编辑器打开,可看到类大致结构.

版本更新:
1.7 支持寄存器跟踪

Dex文件介绍:
Dex文件—–Android平台上的可执行文件

Android虚拟机Dalvik支持的字节码文件格式Google在新发布的Android平台上使用了自己的Dalvik虚拟机来定义,这种虚拟机执行的并非Java字节码,而是另一种字节码:dex格式的字节码。在编译Java代码之后,通过Android平台上的工具可以将Java字节码转换成Dex字节码[/b.
这个Dalvik VM针对手机程式/CPU做过最佳化,可以同时执行许多VM而不会占用太多Resource,Dalvik VM的source目前还没有开放让人下载(未来整个系统都会开放),目前Google的角度是希望能让大家用这套SDK开始开发APP,底层的东西会慢 慢发布.

附件:
Dex 文件格式:
http://code.google.com/p/dex2jar/wiki/DexFileFormat

另一个相关项目:

[b]dex2jar
据说可以把dex反编译成jar文件.还没试过.
http://code.google.com/p/dex2jar/

[Via]

http://w26.javaeye.com/blog/501553

AXMLPrinter2 – Convert Android binary XML to human-readable XML

January 9, 2010

http://code.google.com/p/android4me/downloads/list

java -jar AXMLPrinter2.jar p1220_symbol_sip.xml > p1220_symbol_sip.txt

Upcoming Flash Player 10.1 for Nexus One

January 6, 2010

[Via]

http://www.slashgear.com/upcoming-flash-player-10-1-for-nexus-one-0567969/