Friday, August 29, 2014

Setup Android adb for Wifi debug

To enable Android Debug Bridge (adb) debug via WiFi, connect IP address with the command:

$ adb connect <Android device IP>


$ adb connect <Android device IP>:<port>

$ adb connect
(the default port number is 5555)

In my own case, i need to run the command adb tcpip before connect at the first time:
adb tcpip 5555

Check idVendor and idProduct of USB device, Arduino Uno

To check idVendor and idProduct of Arduino Uno, on Ubuntu, enter Linux command dmesg or lsusb after Uno inserted.

Sunday, August 24, 2014

Android Eclipse tips: switch between Automatic and manual target modes

In Eclipse and ADT, you can select launching your app automatically select suitable AVD/device, or manually select.

By default, a run configuration uses the automatic target mode in order to select an AVD/device. If your run configuration uses manual mode, then the "device chooser" is presented every time that your application is run, so that you can select which AVD/device to use.

To set Run Configuration:
  • Right click your project -> Run As -> Run Configurations...
  • or, Click the arrow (downward) beside the Play button (green arrow) on the top menu -> Run Configurations...
In Run Configuration Dialog, select your project under Android Application on the left, select Target, then select your expect Deployment Target Selection Mode.

Migrating to Android for iOS Developers

Migrating to Android for iOS Developers gives you—as an experienced native iOS app developer—the skills to learn native Android apps development from scratch. Starting with preparing your Android integrated development environment and introducing just enough Android application framework fundamentals, you’ll understand how to create a simple but meaningful HelloAndroid project immediately.

Migrating to Android for iOS Developers

This book provides the guidelines and tutorial projects to show you how to translate your existing iOS app to the Android platform. You’ll use your mobile app knowledge to structure your Android apps in a similar way to how you would structure your iOS apps. To implement use cases with detailed screens, the most common mobile topics are discussed, including user interfaces, managing data, and networking with remote services. As you move through the book, you’ll create Android apps with rich UI components to handle common CRUD operations locally and remotely.

There are many Android goodies described in the book. Instead of relying on routine text descriptions, you’ll discover the uniqueness of Android and appreciate the many features that are unique to the platform. This book also explores more powerful mobile UX patterns that are commonly used on the iOS and Android platforms.

When you finish reading Migrating to Android for iOS Developers, you’ll be an Android developer as well as an iOS developer. And, you will be fully convinced you can do everything in Android that you can do in iOS.
What you’ll learn
• How to maximize your existing iOS mobile knowledge to learn Android programming skills
• How to use the Android integrated development environment with the Eclipse ADT plugin
• How to translate your existing iOS code to Android with the following common mobile topics:
° Common mobile screen navigation patterns
° User interface components and UI animations
° Storing data
° Networking and using remote services
° Using system apps
° Maps and location awareness
° Mobile search frameworks
° Mobile analytics

Who this book is for
This book is for iOS app developers—like you—who want to port their native iOS app to become an Android app. Also, if you are not an iOS developer, but already familiar with mobile apps, then this book can also help you understand Android development with step-by-step instructions and tutorial projects.

Table of Contents
1. Setup Development Environment
2. Android Programming BasicsChapter
3. Structure your App and Break it into Components
4. Implement Piece by Piece
5. More About Android Application Components
6. Android Application Resources
7. Common Mobile Use Cases
8. Pulling it all together - Recap with a Case Study
9. Appendix

Beginning Google Glass Development

Beginning Google Glass Development is your number one resource for learning how to develop for Google Glass--the paradigm-shifting mobile computing platform taking the world by storm now and for years to come. Mobile developers have always had to think for the future, and right now that means getting started with Google Glass.

Beginning Google Glass Development

This book is incredibly hands-on with many exciting projects. You will learn the basics of Glass and how to set up your development environment, through to every Glass development topic using Glass Development Kit (GDK):
• Glass User Interface
• Camera and Image Processing
• Video: Basics and Applications
• Voice and Audio
• Network, Bluetooth, and Social
• Locations, Map, and Sensors
• Graphics, Animation, and Games

You will also learn how to develop enterprise and web-based Glass apps using the Mirror API. Each topic is full of examples that illustrate what Glass can truly do and help you quickly start developing your own apps.

Jeff Tang has successfully developed mobile, web, and enterprise apps on many platforms, and cares immensely about user experience. He brings his vast knowledge to this book through cool and practical examples, which will excite and tantalize your creativity.

This book is for any developer who is keen to start developing for Glass with GDK or the Mirror API. Whether you are an Android, iOS, web, or enterprise developer, you do not want to miss the chance that Glass becomes the next big thing. Get started with Beginning Google Glass Development and be inspired today.

What you’ll learn
• Glass User Interface
• Camera and Image Processing
• Video: Basics and Applications
• Voice and Audio
• Network, Bluetooth, and Social
• Locations, Map, and Sensors
• Graphics, Animation, and Games

Who this book is for
This book is for any developer who is keen to start developing for Glass. You may have worked with iOS apps, Android apps, or both – but you can start developing with Glass today using this book.

Table of Contents
01 - Getting Started
02 - Hello Glass! Your First GDK Glassware
03 - Glass User Interface
04 - Camera and Image Processing
05 - Video: Basics and Applications
06 - Voice and Audio
07 - Networking, Bluetooth, and Social
08 - Locations, Maps, and Sensors
09 - Graphics, Animations, and Games
10 - The Mirror API (The Mirror API and Enterprise Apps)