Android Progress Bar using ProgressDialog

January 23, 2020 0

Progress bars are used to show progress of a task. For example, when you are uploading or downloading something from the internet, it is better to show the progress of download/upload to the user. In […]

Android – Push Notification

January 23, 2020 0

  A notification is a message you can display to the user outside of your application’s normal UI. You can create your own notifications in android very easily. Android provides NotificationManager class for this purpose. In order […]

Android – RenderScript

January 23, 2020 0

In this chapter, we will learn about Android RenderScript. Usually the apps on android are designed as to consume as minimum resources as possible. But some applications like some 3D games need high level processing […]

Android – RSS Reader

January 23, 2020 0

RSS stands for Really Simple Syndication. RSS is an easy way to share your website updates and content with your users so that users might not have to visit your site daily for any kind […]

Android – Screen Cast

January 23, 2020 0

Android Screen cast is a desktop application to control an android device remotely. If your phone is not rooted, you can only view your mobile activity in PC. But if you phone is rooted , […]

Android – SDK Manager

January 23, 2020 0

To download and install latest android APIs and development tools from the internet, android provide us with android SDK manager. Android SDK Manager separates the APIs, tools and different platforms into different packages which you […]

Android – Sensors

January 23, 2020 0

Most of the android devices have built-in sensors that measure motion, orientation, and various environmental condition. The android platform supports three broad categories of sensors. Motion Sensors Environmental sensors Position sensors Some of the sensors […]

Android – Session Management

January 23, 2020 0

Session help you when want to store user data outside your application, so that when the next time user use your application, you can easily get back his details and perform accordingly. This can be […]

Android – Shared Preferences

January 23, 2020 0

Android provides many ways of storing data of an application. One of this way is called Shared Preferences. Shared Preferences allow you to save and retrieve data in the form of key,value pair. In order […]

Android – SIP Protocol

January 23, 2020 0

SIP stands for (Session Initiation Protocol). It is a protocol that let applications easily set up outgoing and incoming voice calls, without having to manage sessions, transport-level communication, or audio record or playback directly. Applications […]

Android – Spelling Checker

January 23, 2020 0

The Android platform offers a spelling checker framework that lets you implement and access spell checking in your application. In order to use spelling checker , you need to implement SpellCheckerSessionListener interface and override its methods. Its […]

Android – SQLite Database

January 23, 2020 0

SQLite is a opensource SQL database that stores data to a text file on a device. Android comes in with built in SQLite database implementation. SQLite supports all the relational database features. In order to […]

Android – Support Library

January 23, 2020 0

When you develop an app on a latest version of android like 5.x and you also want it to run on those devices which are running older versions of android like 3.2 e.t.c. you can’t […]

Android – Testing

January 23, 2020 0

The Android framework includes an integrated testing framework that helps you test all aspects of your application and the SDK tools include tools for setting up and running test applications. Whether you are working in […]

Android – Text To Speech

January 23, 2020 0

Android allows you convert your text into voice. Not only you can convert it but it also allows you to speak text in variety of different languages. Android provides TextToSpeech class for this purpose. In order to […]

Android – TextureView

January 23, 2020 0

If you want to display a live video stream or any content stream such as video or an OpenGL scene, you can use TextureView provided by android in order to do that. In order to […]

Android – Twitter Integration

January 23, 2020 0

Android allows your application to connect to twitter and share data or any kind of updates on twitter. This chapter is about integrating twitter into your application. There are two ways through which you can […]

Android – UI Design

January 23, 2020 0

In this chapter we will look at the different UI components of android screen. This chapter also covers the tips to make a better UI design and also explains how to design a UI. UI […]

Android – UI Patterns

January 23, 2020 0

In this chapter we will look at the different UI Patterns which are available by android to design apps that behave in a consistent and foreseeable way. UI Patterns components A good android application should […]

Android – UI Testing

January 23, 2020 0

Android SDK provides the following tools to support automated, functional UI testing on your application. uiautomatorviewer uiautomator uiautomatorviewer A GUI tool to scan and analyse the UI components of an Android application. The uiautomatorviewer tool […]

Android – WebView

January 23, 2020 0

WebView is a view that display web pages inside your application. You can also specify HTML string and can show it inside your application using WebView. WebView makes turns your application to a web application. […]

Android – Wi-Fi

January 23, 2020 0

Android allows applications to access to view the access the state of the wireless connections at very low level. Application can access almost all the information of a wifi connection. The information that an application […]

Android – Widgets

January 23, 2020 0

A widget is a small gadget or control of your android application placed on the home screen. Widgets can be very handy as they allow you to put your favourite applications on your home screen […]

Android – XML Parser

January 23, 2020 0

XML stands for Extensible Mark-up Language.XML is a very popular format and commonly used for sharing data on the internet. This chapter explains how to parse the XML file and extract necessary information from it. […]

Shape a form to a bitmap

January 23, 2020 0

Shape a form to a bitmap unit Unit1; interface uses Windows, Classes, SysUtils, Graphics, Forms; type TRGBArray = array[0..32767] of TRGBTriple; PRGBArray = ^TRGBArray; type TForm1 = class(TForm) procedure FormCreate(Sender: TObject); procedure FormDestroy(Sender: TObject); private […]

Prevent Windows from minimizing a Form

January 23, 2020 0

Prevent Windows from minimizing a Form The Windows Taskbar function “Minimize all Windows” minimizes all Windows even if they don’t have a minimize button. The following code will prevent a form from minimizing through windows. […]

Export a TListView to a TStringGrid

January 23, 2020 0

Export a TListView to a TStringGrid procedure ListView2StringGrid(Listview: TListView; StringGrid: TStringGrid); const MAX_SUBITEMS = 5; var i, j: Integer; begin with ListView do for i := 0 to Items.Count – 1 do begin {Get Item […]

Close a form animated

January 23, 2020 0

Close a form animated var tutup: Boolean; i: Integer; procedure TForm1.Timer1Timer(Sender: TObject); var reg1, reg2: hrgn; begin if tutup = True then begin i := i + 10; reg1 := CreateRoundRectRgn(0 + i, 0 + […]

Position an InputQuery centered over a form

January 23, 2020 0

I borrowed the code from InputQuery and added the stuff to center the InputQuery form on top of another form instead of positioning it in the middle of the screen. function GetAveCharSize(Canvas: TCanvas): TPoint; var […]

Reduce a form by right-clicking on the titlebar

January 23, 2020 0

Reduce a form by right-clicking on the titlebar type TForm1 = class(TForm) private { Private-Deklarationen } FOldHeight: Integer; procedure WMNCRButtonDown(var Msg: TWMNCRButtonDown); message WM_NCRBUTTONDOWN; public { Public-Deklarationen } end; var Form1: TForm1; implementation {$R *.DFM} […]

Making the Enter Key act like Tab

January 23, 2020 0

This code gives the key the same habbit as the key to change focus between Controls. Form1.KeyPreview := True ! procedure TForm1.FormKeyPress(Sender: TObject; var Key: Char); begin if Key = #13 then begin Key := […]

Make an animated application icon

January 23, 2020 0

Make an animated application icon var icon1: Boolean; {….} procedure TForm1.Timer1Timer(Sender: TObject); begin icon1 := not Icon1; case Icon1 of True: Application.icon := Image1.Picture.Icon; False: Application.icon := Image2.Picture.Icon; end; end; procedure TForm1.FormCreate(Sender: TObject); begin icon1 […]

Show multiline Text in a TCombobox

January 23, 2020 0

Show multiline Text in a TCombobox unit Unit1; interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) ComboBox1: TComboBox; procedure FormCreate(Sender: TObject); procedure ComboBox1MeasureItem(Control: TWinControl; Index: Integer; var Height: […]

Create a form with rounded corners

January 23, 2020 0

The CreateRoundRectRgn function creates a rectangular region with rounded corners procedure TForm1.FormCreate(Sender: TObject); var rgn: HRGN; begin Form1.Borderstyle := bsNone; rgn := CreateRoundRectRgn(0,// x-coordinate of the region’s upper-left corner 0, // y-coordinate of the region’s […]

Close a TCommonDialog automatically

January 23, 2020 0

It is possible to close a common dialog shown by TCommonDialog.Execute (or its overriddens) method while it is visible and application handles messages. The solution is: SendMessage(GetParent(OpenDialog1.Handle), WM_SYSCOMMAND, SC_CLOSE, 0);

Show forms on a TScrollBox

January 23, 2020 0

Show forms on a TScrollBox Before you show the Form you must simply set the parent property of the form: procedure TForm1.Button1Click(Sender: TObject); begin Form2.Parent := ScrollBox1; Form2.Show; end;

1 2 3 12