Posts

Showing posts from March, 2017

Android - Notifications

Image
A  notification  is a message you can display to the user outside of your application's normal UI. When you tell the system to issue a notification, it first appears as an icon in the notification area. To see the details of the notification, the user opens the notification drawer. Both the notification area and the notification drawer are system-controlled areas that the user can view at any time. Android  Toast  class provides a handy way to show users alerts but problem is that these alerts are not persistent which means alert flashes on the screen for a few seconds and then disappears. To see the details of the notification, you will have to select the icon which will display notification drawer having detail about the notification. While working with emulator with virtual device, you will have to click and drag down the status bar to expand it which will give you detail as follows. This will be just  64 dp  tall and called normal view. Abov...

Android Content Provider(Easy explaination with diagram)

Image
A content provider component supplies data from one application to others on request. Such requests are handled by the methods of the ContentResolver class. A content provider can use different ways to store its data and the data can be stored in a database, in files, or even over a network. Content providers let you centralize content in one place and have many different applications access it as needed. A content provider behaves very much like a database where you can query it, edit its content, as well as add or delete content using insert(), update(), delete(), and query() methods. In most cases this data is stored in an  SQlite  database. A content provider is implemented as a subclass of  ContentProvider  class and must implement a standard set of APIs that enable other applications to perform transactions. Create Content Provider This involves number of simple steps to create your own content provider. First of all you need to create a Content P...

My text editor using file handling

set access in manifeast file set access in emulator app drag->app info->set permissions Manifeast File <? xml version= “1.0”  encoding= “utf-8” ?>  < manifest  xmlns: android = “ http://schemas.android.com/apk/res/android&#8221 ;      package= “ com.myapp.mytexteditor ” >     < uses-permission  android :name= “android.permission.WRITE_EXTERNAL_STORAGE” /> Activity package  com.myapp.mytexteditor ;  import  android.content.Intent;  import  android.os.Environment ;  import  android.support.v7.app.AppCompatActivity ;  import  android.os.Bundle ;  import  android.view.View ;  import  android.widget.EditText;  import  android.widget.TextView;  import  android.widget.Toast ;  import  java.io.BufferedReader ;  import  java.io.BufferedWriter ;  import  java.io.File ;  import  java...

hostinger cloud service provider

Hostinger is the best free hosting provider available now. It’s a large group of free hosting providers with some premium hosting providers also. Their service is available in many countries and in some they have only premium plans.

XAMPP SERVER

he acronym XAMPP refers to a set of free (open source)applications, combined with Microsoft Windows, which are commonly used in Web server environments. The XAMPP stack provides developers with the four key elements of a Web server:  an operating system, database, Web server and Web scripting software. The combined usage of these programs is called a server stack. In this stack, Microsoft Windows is the operating system (OS),Apache is the Web server, MySQL handles the database components, while PHP, Python, or PERL represents the dynamic scripting languages. XAMPP server runs on the localhost of your machine. It will help the user to create database and perform all operations and use the functionality of database through only one software. Serveral different versions are available for different operating systems like, WAMP for both windows, linux. LAMP for only linux. You need to create the PHP file...