Introduction to Renderscript

Renderscript - an important feature of Honeycomb, which was not discussed previously. There will be two articles, this - a simple overview Renderscript, following the same will contain more technical detail and a simple example. 

Renderscript - this is a new API, aimed at high performance in 3D rendering and complex computing operations.Renderscript will be of interest to developers who are trying to maximize their overall experience and feel comfortable when working at low levels. For developers, there are three tools: a simple API for 3D rendering that supports hardware acceleration, API to model complex algorithms (similar to CUDA ), and standard language is close to C99 .

Renderscript has been used previously to create a new, more beautiful visually, applications Books and YouTube.He has also been used to write living wallpaper that shipped with Honeycomb.

How to promote Android apps

Recently my friend asked me to answer a few questions to promote applications for Android. We dogovorlis that I would write a post. Over the last year I got the definite impression on the market Android Market. I am pleased to share my opinion. I hope my experience will be useful to developers. I would be happy if the post will generate a constructive discussion. 

On Android Market:

1. How often do updates for whether these updates in some real bug fixes, or users' trust and silently update "?

As a user I am a "trust and silently update the" application or not at all if I update the application is not interested. Everyone is different and there are users who are always watching the ongoing changes in apdeyte, my IMHO - is dominated by people who install updates, rarely going into the details. There is also a category of applications, in which each update brings new features. As a rule, the loyal users of such applications are always waiting for the upgrade of new functionality or content.

Using Android Search Dialog. Part 3 - Custom Suggestions

image

This is the final article on the use of Android Search Dialog (previous are here and here ). In it, I'll show you how to add dynamic dialogue in the search for clues, as well as how to integrate search into your application system Quick Search Box (QSB). QSB advantage that it can be used to obtain information from virtually anywhere in the OS.

Android-compatible applications on different devices

It's no secret that the number of devices on the Android large, they differ in hardware, screen size and quality, processing power, and others. Unlike the iPhone-programmers who know for sure on which device will be running their app, Android-developers need to focus on application compatibility with different devices. 

This article focuses on the interoperability of applications, especially applications display on screens with different resolutions and diagonals.

image

First we need to understand the opportunities offered by Android for the screen.

Standard application development for Android

Android developer is faced with large numbers of files and resources designed for different parts of the program.Even after a month he can not remember which file or resource to which belongs. 


Material presented below is based on my experience of many development projects for Android and has been tested in several projects. As a result, simple rules pile of files and resources into a readable project, saves time and nerves. Especially when it is convenient to work in a team where the project can join the new programmers.In Eclipse, you can easily find any resources because they are unique, easy-to-find and understandable manner are sorted in any lists. General rules allow convenient easy to read someone else's code and find the necessary resources. 

Recommendations to the style code

The rules of the Java language

We follow standard conventions for the design of code in Java. We have added to them some of the rules:
  1. Exceptions: never steal and do not ignore them without explanation.
  2. Exceptions: Do not use generic exceptions, but the code in the libraries at the root of the stack.
  3. Finalizers do not use them.
  4. Imports: fully qualify the imports.

Settings in the Android-applications

Interested in the topic of development under Android. I am writing a small application. Faced with the fact that not fully understand how to make settings for the application. A little Googling and found an article that helped to understand. Decided to translate the article for the Russian-speaking community, including some comments to the original. 

Options are an important part of applications for Android (and not only on Android - hereinafter translator's note). It is very important - allow users to change application settings, depending on their preferences.

There are two ways to work with the settings in Android - you can create a file in a directory preferences.xml res / xml, or work with the settings from your code. In this article I'll show you how to work with the settings using preferences.xml file.