Показаны сообщения с ярлыком examples. Показать все сообщения
Показаны сообщения с ярлыком examples. Показать все сообщения

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.

Android. Create a file manager



Android - a promising and rapidly growing operating system. And many programmers want to learn how to program applications for OS Android, but a quick search of structured materials in the Internet and, in particular, Lesbian, leads them into a stupor. Indeed, there is still a problem finding tutorials (especially in Russian) to develop applications for this very popular operating system.
Well, we will gradually improve the situation with Habra.
I shall warn that the materials are intended for those who do not have experience in developing applications for Android, but very, very much wants to get this experience.

Write your first application on Android


Preface


The purpose of this post - on the one hand to share their successful experience in start developing applications for the Android platform and on the other hand contribute to the development of the market of software for this remarkable and rapidly growing platform for the account (without false modesty, I say) you may have read this post. The network, of course, you can find information on application development, "a little more complicated than helloworld», but as a rule they scattered and they do not describe the various small underwater stones. In this post we look at the full cycle of application development, starting with a clean computer to finished apk-file.Under the cut screens.

Android, the history of the first application

         Preface
Good day. I hasten to note that this post does not pull or how much a benefit, it's only a story of a beginner, novice, telling about the beginning of my conquest of the android. Let's begin.

The idea to write his first in the life of an application for android appeared spontaneously. Basic knowledge of java were available, and in my head immediately got the idea to write a program to send SMS through serviceorangetext.md (yes, this is the Republic of Moldova). This proved harder than I thought at first glance.

Using Android Search Dialog. A simple application (part 1)

image

This article is for those who have already written the HelloWorld for Android, and know what the Activity and Intent, as well as where there is manifest, and why you need layout'y. Otherwise, you acquainted with this material, for example, developer.android.com .

The article describes how to create a simple application that uses a mechanism to implement the search capabilities built based on the framework. After reading, you can also configure your application so that it searches through the data using a standard Android Search Dialog.

User notification: Toast

Hi!
I'm begining a series of articles about how to alert the user. Course is designed for beginners.There are three ways to alert the user: Toast, Notification and through different types of Dialog. Today I will discuss of the first type of warning - Toast.
Introduction
Toast is a pop-up window that allows you to quickly notify the user about the event has occurred, such as maintaining the program settings to SD-card. Toast feature is that during the message, the user can interact with them is behind Activity, or with a home screen (home screen). Also worth noting that the user can not control the closing of Toast with hardware Back button or other possible means, the message appears and then smoothly itself as smoothly disappears. The time delay between the appearance and disappearance can be set programmatically. In most cases, Toast is a short message, but there is an opportunity to ask any appearance of Toast, for example, add an image next to the text. In addition, you can control the location of Toast on the screen.Toast can be created from an Activity, or from the Service. In the case of a service Toast appears on top of Activity, which has the focus, or top of the home screen.

Live wallpapers


With the introduction of live wallpapers in Android 2.1, users can now enjoy richer, animated, interactive backgrounds on their home screen. A live wallpaper is very similar to a normal Android application and has access to all the facilities of the platform: SGL (2D drawing), OpenGL (3D drawing), GPS, accelerometers, network access, etc. The live wallpapers included on Nexus One demonstrate the use of some of these APIs to create fun and interesting user experiences. For instance, the Grass wallpaper uses the phone's location to compute sunrise and sunset times in order to display the appropriate sky.


Android Development Demo: “DialANumber” – How to write your own very first Android program – Made Simple!


While I think the Android development examples are not really good and straight forward perhaps some of you come along with them. However, I would like to provide you a very very simple example here on how to write your own first Android program.
This is technically very easy.