Posts

Showing posts from July, 2019

Introduction to Cloud computing

Cloud computing means that instead of all the computer hardware and software you're using sitting on your desktop, or somewhere inside your company's network, it's provided for you as a service by another company and accessed over the Internet, usually in a completely seamless way. Exactly where the hardware and software is located and how it all works doesn't matter to you, the user—it's just somewhere up in the nebulous "cloud" that the Internet represents. Cloud computing is a buzzword that means different things to different people. For some, it's just another way of describing IT (information technology) "outsourcing"; others use it to mean any computing service provided over the Internet or a similar network; and some define it as any bought-in computer service you use that sits outside your firewall. However we define cloud computing, there's no doubt it makes most sense when we stop talking about abstract definit

Introduction to flutter

Flutter is an open-source UI software development kit created by Google. It is used to develop applications for Android, iOS, Windows, Mac, Linux, and the web. The major components of Flutter include: Dart platform Flutter engine Foundation library Design-specific widgets A Hello, World program in Flutter looks like this: import 'package:flutter/material.dart'; void main() => runApp(HelloWorldApp()); class HelloWorldApp extends StatelessWidget { Widget build(BuildContext context) { return MaterialApp( title: 'Hello World App', home: Scaffold( appBar: AppBar( title: Text('Hello World App'), ), body: Center( child: Text('Hello World'), ), ), ); } }

Introduction to Kotlin

Kotlin is a compiled, statically typed language, which might provide some initial hurdles for people who are used to the interpreted, dynamically typed Python. This document aims to explain a substantial portion of Kotlin's syntax and concepts in terms of how they compare to corresponding concepts in Python. Kotlin can be compiled for several different platforms. In this document, we assume that the target platform is the Java virtual machine, which grants some extra capabilities - in particular, your code will be compiled to Java bytecode and will therefore be interoperable with the large ecosystem of Java libraries. Even if you don't know Python, this document should hopefully be a useful introduction to Kotlin, in particular if you are used to other dynamically typed languages. However, if you're coming from a Java background, you're probably better off diving directly into the excellent official docs (from which this doc has drawn a lot of i

Introduction to Firebase

Image
Cloud Firestore is a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud Platform. Like Firebase Realtime Database, it keeps your data in sync across client apps through realtime listeners and offers offline support for mobile and web so you can build responsive apps that work regardless of network latency or Internet connectivity. Cloud Firestore also offers seamless integration with other Firebase and Google Cloud Platform products, including Cloud Functions. In our Project we use firebase for: Authentication: In this the user must register or login itself and the registration details are stored in the firebase.(fig 1.) Storage: In this the we store the other information other than the authentication.(fig 2.)

Recycler View

Image
RecyclerView is a ViewGroup added to the android studio as a successor of the GridView and ListView. It is an improvement on both of them and can be found in the latest v-7 support packages. It has been created to make possible construction of any lists with XML layouts as an item which can be customized vastly while improving on the efficiency of ListViews and GridViews. This improvement is achieved by recycling the views which are out of the visibility of the user. For example, if a user scrolled down to a position where the items 4 and 5 are visible; items 1, 2 and 3 would be cleared from the memory to reduce memory consumption. Implementation: To implement a basic RecyclerView three sub-parts are needed to be constructed which offer the users the degree of control they require in making varying designs of their choice. The Card Layout: The card layout is an XML layout which will be treated as an item for the list created by the RecyclerView. The ViewHolder:

List View and Grid View

Image
Android ListView is a view which groups several items and display them in vertical scrollable list. The list items are automatically inserted to the list using an Adapter that pulls content from a source such as an array or database. An adapter actually bridges between UI components and the data source that fill data into UI Component. Adapter holds the data and send the data to adapter view, the view can takes the data from adapter view and shows the data on different views like as spinner, list view, grid view etc. The ListView and GridView are subclasses of AdapterView and they can be populated by binding them to an Adapter, which retrieves data from an external source and creates a View that represents each data entry. Android provides several subclasses of Adapter that are useful for retrieving different kinds of data and building views for an AdapterView ( i.e. ListView or GridView). The common adapters are ArrayAdapter,Base Adapter, CursorAdapter, SimpleCu

Fragments in Android

Image
A Fragment represents a behavior or a portion of user interface in a FragmentActivity. You can combine multiple fragments in a single activity to build a multi-pane UI and reuse a fragment in multiple activities. You can think of a fragment as a modular section of an activity, which has its own lifecycle, receives its own input events, and which you can add or remove while the activity is running  To create a fragment, extend the Fragment class, then override key lifecycle methods to insert your app logic, similar to the way you would with an Activity class. One difference when creating a Fragment is that you must use the onCreateView() callback to define the layout. In fact, this is the only callback you need in order to get a fragment running.

Views in Android

View Class are the basic building block for user interface components. A View occupies a 2-dimensional area (say: rectangle) on the screen, which is responsible for framing and handling different type of events. Most Commonly Used Android View classes: These views can be used to create a useful input and output fields. Text View EditText Button ImageView ImageButton CheckBox Radio button RadioGroup ListView Spinner AutoCompleteTextView

User Interface

Image
Layouts : A layout defines the structure for a user interface in your app, such as in an activity. All elements in the layout are built using a hierarchy of View and ViewGroup objects. A View usually draws something the user can see and interact with. Whereas a ViewGroup is an invisible container that defines the layout structure for View and other ViewGroup objects, XML files are used to define the layouts of the activities. There are many type of layouts as given below: Linear Layout Constraint Layout Relative Layout Table Layout Absolute Layout Frame Layout

Menus And Intents

Image
MENU: Menus are a common user interface component in many types of applications. To provide a familiar and consistent user experience, you should use the Menu APIs to present user actions and other options in your activities. INTENTS: An Intent is an object that provides runtime binding between separate components, such as two activities. The Intent represents an app’s intent to do something. You can use intents for a wide variety of tasks, but basically, your intent starts another activity.

Activities in Android Studio

Image
The Activity class is a crucial component of an Android app, and the way activities are launched and put together is a fundamental part of the platform's application model. Unlike programming paradigms in which apps are launched with a main() method, the Android system initiates code in an Activity instance by invoking specific callback methods that correspond to specific stages of its lifecycle. Declare activities To declare your activity, open your manifest file and add an <activity> element as a child of the <application> element. For example: Declare intent filters Intent filters are a very powerful feature of the Android platform. They provide the ability to launch an activity based not only on an explicit request, but also an implicit one. Managing the activity lifecycle Over the course of its lifetime, an activity goes through a number of states. You use a series of callbacks to handle transitions between states. The following sec

Introduction To Android Studio

Image
Android Studio is the official Integrated Development Environment (IDE) for Android application development, based on IntelliJ IDEA . Structure of your Project Above Image shows Android Project View where you will have all your files related to your project. Here, we have one module Android Application which consists of Manifest, Java, Res Folders. Manifest Folder: This folder consists of a manifest.xml file which android system requires for all the essential information of the application, like: Package Name :  Unique Identifier of the application Components : We have to describe all the components in the application (We will discuss components in upcoming chapters) Permissions: Describe all permission application will require Java Folder: Here you will have all your Java and Kotlin files. Res Folder: This folder consists of all the media requirements of application like screen layouts inside the layout, images inside drawable, fonts, colour, strings

Java Swing

Image
Unlike AWT, Javaswing provides platform-dependent and light weight components.The javax.swing package provides classes for java swing API such as: JButton JTextField JTextArea JRadioButton JCheckbox JMenu JColorChooser  Hierarchy of Java Swing

Java AWT

Image
Java AWT (Abstract Window Toolkit) is an API to develop GUI or window-based applications in java.Java AWT components are platform-dependent i.e. components are displayed according to the view of operating system. AWT is heavyweight i.e. its components are using the resources of OS. The java.awt package provides classes for AWT api such as TextField, Label, TextArea, RadioButton, CheckBox, Choice, List etc. Java AWT Hierarchy Container: The Container is a component in AWT that can contain another components like buttons, textfields, labels etc. The classes that extends Container class are known as container such as Frame, Dialog and Panel. Window: The window is the container that have no borders and menu bars. You must use frame, dialog or another window for creating a window. Panel: The Panel is the container that doesn't contain title bar and menu bars. It can have other components like button, textfield etc. Frame: The Frame is the cont

JDBC

Image
JDBC stands for Java Database Connectivity. JDBC is a Java API to connect and execute the query with the database. It is a part of JavaSE (Java Standard Edition). JDBC API uses JDBC drivers to connect with the database. There are four types of JDBC drivers: JDBC-ODBC Bridge Driver, Native Driver, Network Protocol Driver, and Thin Driver STEPS FOR JDBC: 1) Register the driver class The forName() method of Class class is used to register the driver class. This method is used to dynamically load the driver class. Example to register the OracleDriver class Class.forName("oracle.jdbc.driver.OracleDriver");   2) Create the connection object The getConnection() method of DriverManager class is used to establish connection with the database. Syntax of getConnection() method 1) public static Connection getConnection(String url)throws SQLException   2) public static Connection getConnection(String url,String name,String password)   throws SQLExc