Wednesday, December 10, 2008

Tips to import sample Android projects to Eclipse

I am a newbie to Eclipse and Android applications development. I installed the Eclipse yesterday and tried to take a look at the Android sample to start with. I had problems to import sample project into Eclipse. Google is always the one I first tried. I found this article: How to import sample Android projects to Eclipse. It is helpful to me. I think it will also be helpful to others.
Here is the tips: Simply create project from existing source (then use "Browse" to select sample shipped with SDK).

Sunday, December 7, 2008

Nokia N810 with android ported

Peter McDermott has an article about the process of porting android to the Nokia N810. Quite a lot of helpful information included.

http://www.nthcode.com/pubs/porting-android-to-a-new-device.html

Kogan Agora Pro is the next android handset













The Kogan Agora Pro has popped up in Australia as the latest android handset and is available for international pre-order. The phone has a 2.5 inch resistive touchscreen, QUERTY keyboard, 3G and GPS for $399.
HIGHLIGHTS:
· 2.5-inch TFT-LCD flat touch-sensitive screen
· Integrated QWERTY keyboard
· High-speed 3G network connection
· One-Touch Google Search ™
· Easy Web Browsing
· Easy-to-use email with attachment support for images, videos, music and documents
· Customisable Home Screen with instant Email, text message and IM notifications
· Instant access to mobile Internet services (Gmail ™, YouTube ™, Google Talk ™, Google Calendar ™, Google Maps ™)
· Music Player
· microSD™ expansion slot for all your storage needs
· Wi-Fi network access (included with Kogan Agora Pro)
· GPS navigation capability (included with Kogan Agora Pro)
· 2.0 megapixel camera (included with Kogan Agora Pro)
http://gizmodo.com/5101708/kogan-agora-pro-is-the-next-android-handset

Android Dev Phone 1 for developers

The Android Dev Phone 1 is a SIM-unlocked and hardware-unlocked device that is designed for advanced developers. The device ships with a system image that is fully compatible with Android 1.0, so you can rely on it when developing your applications. You can use any SIM in the device and can flash custom Android builds that will work with the unlocked bootloader.

The device currently costs $399 (USD) (including free shipping in the US), and will be available for purchase in 18 international markets, including the US, UK, Germany, Japan, India, Canada, France, Taiwan, Spain, Australia, Singapore, Switzerland, Netherlands, Austria, Sweden, Finland, Poland, and Hungary.

More information, see http://code.google.com/android/dev-devices.html

Wednesday, December 3, 2008

struct ipv6_mreq has no member named ipv6mr_interface

When I am porting ffmpeg to Google Android, I got an error: 'struct ipv6_mreq' has no member named 'ipv6mr_interface'. I dont understand what happened. When I google the related information, I got this article: Linux kernel headers violate RFC2553. The corresponding header file is bionic/libc/kernel/common/linux/in6.h. I have to correct the usage of ipv6_mreq.ipv6mr_interface into ipv6_mreq.ipv6mr_ifindex.
What I am concern is does Bionic libc use the ipv6_mreq structure in a correct way?

Monday, November 24, 2008

Android build system

Found document in android open source. They are in myandroid/development/pdk/docs/. Following information are from the "Android build system" section. It is more helpful than "Add a new component into open source Android".
A makefile defines how to build a particular application. Makefiles typically include all of the following elements:
  1. Name: Give your build a name (LOCAL_MODULE := ).
  2. Local Variables: Clear local variables with CLEAR_VARS (include $(CLEAR_VARS)).
  3. Files: Determine which files your application depends upon (LOCAL_SRC_FILES := main.c).
  4. Tags: Define tags, as necessary (LOCAL_MODULE_TAGS := eng development).
  5. Libraries: Define whether your application links with other libraries (LOCAL_SHARED_LIBRARIES := cutils).
  6. Template file: Include a template file to define underlining make tools for a particular target (include $(BUILD_EXECUTABLE)).
The following snippet illustrates a typical makefile.
LOCAL_PATH := $(my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE :=
LOCAL_SRC_FILES := main.c
LOCAL_MODULE_TAGS := eng development
LOCAL_SHARED_LIBRARIES := cutils
include $(BUILD_EXECUTABLE)
(HOST_)EXECUTABLE, (HOST_)JAVA_LIBRARY, (HOST_)PREBUILT, (HOST_)SHARED_LIBRARY,
(HOST_)STATIC_LIBRARY, PACKAGE, JAVADOC, RAW_EXECUTABLE, RAW_STATIC_LIBRARY,
COPY_HEADERS, KEY_CHAR_MAP

Saturday, November 15, 2008

Good start to port 3-party to Android

After you have the open source Android, look into folder external/openssl/README.android. It is a good start to port application to Android.