Something about processing images in Android

I will do some trial experience about image in Android programming. The list here will be updated once posted.

Related demo video:

The exercises have not take care the bitmap size, and any resizing. So don't test with big picture, otherwise OutOfMemoryError or "Bitmap too large to be uploaded into a texture" will happen.

Rename Package in Eclipse

To rename Package in Eclipse for Android SDK, right click your package to be rename (NOT project), select Refactor > Rename...


Enter your new name of package, make sure the check box of Update references is checked (otherwise you will get numbers of in-correct reference), and click OK to finish.


Ketai: library for the Android Mode in Processing.


Ketai Library for Android Mode in Processing makes it easy to work with hardware devices and sensors built into Android phones and tablets. The library focus specifically on mobile Android features, including cameras, sensors, multi-touch gestures, peer-to-peer networking via Bluetooth and WiFi Direct, Near Field Communication (NFC), and SQLite for local databases.

Project home of ketai

Learn Java for Android Development, Second Edition


February 20, 2013  1430257229  978-1430257226 2

Android development is hot, and many programmers are interested in joining the fun. However, because this technology is based on Java, you should first obtain a solid grasp of the Java language and its foundational APIs to improve your chances of succeeding as an Android app developer. After all, you will be busy learning the architecture of an Android app, the various Android-specific APIs, and Android-specific tools. If you do not already know Java fundamentals, you will probably end up with a massive headache from also having to quickly cram those fundamentals into your knowledge base.

Learn Java for Android Development, Second Edition teaches programmers of any skill level the essential Java language and foundational Java API skills that must be learned to improve the programmer’s chances of succeeding as an Android app developer. Each of the book’s 14 chapters provides an exercise section that gives you the opportunity to reinforce your understanding of the chapter’s material. Answers to the book’s more than 500 exercises are provided in an appendix. A second appendix provides a significant game-oriented Java application, which you can convert into an Android app.

Once you complete this book, you should be ready to dive into beginning Android app development.  Maybe, start that journey with Apress'Beginning Android.

What you’ll learn

  • The Java language:  This book provides complete coverage of nearly every pre-Java version 7 language feature (native methods are briefly mentioned but not formally covered). Starting with basic language features (e.g., comments, types, expressions, and statements), you progress to those features related to classes and objects, followed by object-oriented features related to inheritance, polymorphism, and interfaces. You then explore the advanced language features for nested types, packages, static imports, exceptions, assertions, annotations, generics, and enums. Continuing, you investigate strictfp, synchronized, volatile, the enhanced for loop statement, autoboxing/unboxing, and transient fields.
  • Java APIs:  In addition to Object and APIs related to exceptions, you explore Math, StrictMath, BigDecimal, BigInteger, String, StringBuffer/StringBuilder, Boolean, Character, Byte, Short, Integer, Long, Float, Double, Number, the Threads API, System, Runtime, Process, the Collections Framework, the Concurrency Utilities, Date, Formatter, Random, Scanner, the ZIP and JAR APIs, File, RandomAccessFile, stream classes, and writer/reader classes, InetAddress, SocketOptions, Socket, ServerSocket, DatagramSocket, MulticastSocket, URL, URLConnection, URLEncoder, URLDecoder, NetWorkInterface, InterfaceAddress, CookieHandler, CookieManager, CookieStore, CookiePolicy, Buffer, ByteBuffer, CharBuffer, DoubleBuffer,FloatBuffer, IntBuffer, LongBuffer, ShortBuffer, MappedByteBuffer, Channel, WritableByteChannel, ReadableByteChannel,ScatteringByteChannel, GatheringByteChannel, FileChannel, the Regular Expressions API, JDBC, and more.
  • Applying these:  You will learn how to use the JDK’s javac (compiler), java (application launcher), javadoc (Java documentation generator), and jar (Java archive creator, updater, and extractor) tools. You will also receive an introduction to the Eclipse integrated development environment, which is the official standard for developing Android apps.

Who this book is for

This book is for any programmer - including existing Java programmers and Objective-C-based iPhone and iPad programmers - of any skill level who needs to obtain a solid understanding of the Java language and foundational Java APIs before jumping into Android app development.

Table of Contents

1. Getting Started with Java
2. Learning Language Fundamentals
3. Discovering Classes and Objects
4. Discovering Inheritance, Polymorphism, and Interfaces
5. Mastering Advanced Language Features Part 1
6. Mastering Advanced Language Features Part 2
7. Exploring the Basic APIs Part 1
8. Exploring the Basic APIs Part 2
9. Exploring the Collections Framework
10. Exploring Additional Utility APIs
11. Performing Classic I/O
12. Accessing Networks
13. Migrating to New I/O
14. Accessing Databases
A. Appendix A: Solutions to Exercises
B. Appendix B: Four of a Kind
C. Appendix C: Odds and Ends***


***NOTE:  Appendix C is not included in the physical book. Instead, it's distributed as a PDF file that's bundled with the book's code.  As well as covering updated topics from the previous edition of this book (e.g., References, Reflection, and Preferences), this 138-page appendix includes new content.

Building Hybrid Android Apps with Java and JavaScript: Applying Native Device APIs


Building Hybrid Android Apps with Java and JavaScript: Applying Native Device APIs
Build HTML5-based hybrid applications for Android with a mix of native Java and JavaScript components, without using third-party libraries and wrappers such as PhoneGap or Titanium. This concise, hands-on book takes you through the entire process, from setting up your development environment to deploying your product to an app store.
Learn how to create apps that have access to native APIs, such as location, vibrator, sensors, and the camera, using a JavaScript/Java bridge—and choose the language that gives you better performance for each task. If you have experience with HTML5 and JavaScript, you’ll quickly discover why hybrid app development is the wave of the future.
  • Set up a development environment with HTML, CSS, and JavaScript tools
  • Create your first hybrid Android project, using Eclipse IDE
  • Use the WebView control to host your hybrid application
  • Explore hybrid application architecture, including JavaScript/Java communication
  • Build single-page applications, using JavaScript libraries such as Backbone and Underscore
  • Get optimization tips and useful snippets for CSS, DOM, and JavaScript
  • Distribute your application to Google Play and the Amazon Appstore

YouTube Easter egg that lets you go retro

Youtube go retro
To delebrate the upcoming Geek Week (August 4 - 10), YouTube has released an Easter egg that lets you switch Youtube to retro mode.


answer: enter "/ geekweek" in Youtube search box. Just do it.

New Moto X from Motorola

New Moto X from Motorola

The new Moto X from Motorola is a 4G LTE Android smartphone and features a customizable display, 10 megapixel camera and touchless control.