Hi Guys, welcome to Proto Coders Point. This article will be learning all about the Future of Mobile Application Development in 2020.
What is Mobile Application Development ?
Basically a Mobile Application Development is a process of designing a Beautiful UI Mobile app for mobile Devices, In the Process of developing a mobile application a developer will pre-install on his mobile as a part of testing process to test all the modules. During this process any mobile app developer must consider a different screen size , hardware specofication and he should also need to the app in different version of mobile OS.
Mobile Application Development has been steadily growing in couple of years and this mobile application industry is generating lot of revenues and also creating best software development job for graduate.
Benefits of Mobile App Development?
In modern days mobile technology has been boosted, now a days mobile application is blended with all the business operation and also build opportunity to boost sales in market.
Mobile Technology is been used to send notification to their customer about the new products that is be launched, we can also use online coupons for discounts offers.
Now a days SmartPhones are been used all most every where in this earth and mobile usage is been increasing day by day.
Platform for mobile Applocation Development in 2020
Front-end development tools
Back-end servers
Security add-on layers
System Software
Mobile app testing
Front-end development tools
In Front End Developement all the focus will be on creating a best user interface and also user experience (UI-UX Designing), that makes users of the application attracted to the app.
Back-end Servers
The Back-End is a place where all the server side code get executed, that receives a request from a client(user) for some data, then the server sends back the requested data to the client(user), In back-end it also include the database where all the data will be stored.
Security add-on layers
In every field their must be a security layers where users data will be hidden from out-side world, this Create safety for the application user.
App wrapping for security
Data encryption
Client actions
Reporting and statistics
Mobile Testing
In mobile testing the developed app is been tested in different version of OS, and even the app is been tested using VPN to change the current location and check if data is been transmited properly to our targated location.
Google Android Emulator – The Developer makes use of Google Emulator which is basically runs on android OS.
Testing mobile Device – The app developer can also test the application in his own testing mobile device.
Most Commonly used Tools in mobile Application Development
Here are some commonly used tools in market today in 2020
Android – Studio :
Before, In android application development we where making use of java as programming language but now Google came with it’s own android development language called Kotlin.
In android Development we make use of IDE (Integrated Development Envirnoment) tools called Android-Studio.
Android uses Dalvik ( discontinued process virtual Machine ) to execute application written for android OS. Therefore android application can only run on android devices.
The best thing for developer is that android-studio is completly free to use and develop best android application.
The Unity editor is supported on all the OS such as windows and maxOS.
This Unity Engine is more powerful for building games for more then 25 different platforms including mobile, desktop, consoles, and virtual reality.
Programming language used in unity game development areC#, JavaScript, Boo, other .NET-based languages
This tools free for beginners for low level Game application development but to development high end games you need to buy commercial development licenses.
Flutter Application Development
The Flutter is a cross platform development framework introduced by Google, Flutter Application is done using Dart programming language – dart language is very simple language for any developer who knows basic of java development.
Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.
To develop an app using Flutter you need make use of an IDE ( either android-studio, xCode , IntelliJ IDEA )
Hi Guys Welcome to Proto Coders Point, In this Flutter Tutorial we gonna Talk about Flutter Navigation Drawer which is basically a Flutter Slide Menu.
In Flutter Application Development Navigation Drawer are basically used with the Scaffold.drawer Property, where Scaffold must have an appBar to show Drawer opening icon, The Drawer child usually is a ListView which first child is a DrawerHeader that are normally used to show current logIn user data.
The Remaining Drawer children are often been filled using ListTiles.
let’s Start implementing Flutter Navigation drawer Slide menu into our project
Flutter Navigation Drawer with Example
Step 1 : Create a new Flutter Project
offCourse you need to create a new Flutter project or open you existing Flutter project all left to your choice
File > New > New Flutter Project
Fill all the required details to create a new project.
Step 2 : Create 3 new Dart files in your flutter project
To create new dart file under your project,
Your_project > lib > (right click) New > Dart File
Then in lib directory you need to create 3 Dart Files and name it as ProfilePage.dart , Setting Page.dart , DrawerCode.dart.
Step 3 : Add a Scaffold Widget with appBar widget and drawer widget in main.dart
The above Snippet code is for explaination about Flutter Drawer
In Flutter Drawer their must be a child widget i.e ListView.
Then this listView that can have any numbers of children : <Widget>, Here in above snippet code i gave Flutter DrawerHeader widget that will aquire some space in the top of Drawer with some decoration to it, the DrawerHeader in turn has a child which are be any widget here have just for simple added a Text Widget.
Then the Second widget will be a ListTiles here is the Snippet code for that.
ListTile widget has a leading property with Icon as an Widget you can set a icon to the flutter Drawer, title property as a Text , and an onTap method property that will handle all the task when user clicks on the ListTile.
The Complete Code is below just create a DrawerCode.dart file and copy paste the below lines of Flutter Drawer Code.
Hi Guys, Welcome to Proto Coders Point, In this Android tutorial we will implement Firebase UI RecyclerView Adopter
This Project will basically fetch / retrive data from firebase using Firebase UI recyclerview adapter library and display it’s contents in recyclerview as a GridView.
Demo on How this Project will look at End of this tutorial
Firebase Ui RecyclerView Adapter Android Tutorial with Example
FirebaseUI makes it simple to bind data from the Firebase Realtime Database to your app’s UI.
Step 1 : Create a new Android Project
OfCouse, your need to create a new android project using android-studio, or else you can make use of your existing android project.
Step 2 : Adding your project to Firebase Console
Check out below video on how to connect android app to firebase console from android studio.
Note: this video is related to Cloud Messaging FCM to send push Notification but the process is same so watch 0 to 2 min minutes of the video to add project to firebase console
after downloading just import the file in realtime database
Just open realtime database and click on 3 vertical line a popup dropdown list will open click on import JSON > select the file you have downloaded and next..
Hence my Firebase Database structure will get imported into you firebase project.
Then, Now all is been set on the server – side
Just go back to our android Studio.
step 5 : Create a new XML file and Name it as customlayout
customelayout.xml
This xml file 2 views that are ImageView and a text View.
Step 6 : Open activity_main.xml and Copy below Code
activity_main.xml
This XML file have only one View that is RecyclerView where we gonna show our data that is retrieve from firebase database using Firebase UI RecyclerViewAdapter.
Step 7 : Create a Constructor class that holders all the data from firebase.
you need a class that handles data retrieved from firebase.
create a new java file and name it as product_getter_setter.java this file has a constructor and getter and setter methods that helps in getting and setiing the data.
product_getter_setter.java
package com.ui.recycleview.gridview.firebaserecyclerviewadapter;
public class product_getter_setter {
String name,image,link;
public product_getter_setter() {
}
public product_getter_setter(String name, String image, String link) {
this.name = name;
this.image = image;
this.link = link;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getImage() {
return image;
}
public void setImage(String image) {
this.image = image;
}
public String getLink() {
return link;
}
public void setLink(String link) {
this.link = link;
}
}
Step 8 : Main_Activity.java with has FirebaseRecyclerAdapter method
Main_Activity.java
open Main_Activity.java and copy paste below lines of java code
Step 9 : Adding Internet Permisson for your project
Then, as you know that we are fetching data from external source i,e our Firebase server, We definitely need access to internet permission to be set for our android project
open AndroidManifest.xml file and app internet permission tag before <application> tag
RecyclerView With GridLayoutManager in androidx with Example
Let’s us now start implementing our android application with RecycleView with GridLayoutManager with example.
Step 1: Create a New Project And Name It RecyclerViewExample.
OfCouse, your need to create a new android project using android-studio, or else you can make use of your existing android project.
Step 2 : Add Required Dependencies
Once your project is ready you need to first add the recyclerView Dependencies in to your android project so that you can make user of recyclerView widget.
if you are using android-studio version that comes with migrating to androidx then better use material or else you can use recyclerView Dependencies.
The dependencies is been listed above.
Step 3 : Adding recyclerView in activity_main.xml
open > project > app > res > layout > activity_main.xml
And Copy and paste the below lines of xml code with recyclerView widget.
Create a new drawable XML file in Drawable folder and name it recyclebackground.xml
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<!--
stroke with color and width for creating outer line
-->
<stroke
android:width="1dp"
android:color="#000" />
</shape>
Step 6: Create a new Adopter Class
Then, you will need a Adopter class that will help you in handling all the data and display then in recyclerView.
Create a new Adopter Class and name it as CustomRecycleAdopter.java
App > java > your Package (Right click) > New > java class
This CustomRecycleAdopter class will extends RecyclerView.Adapter class which incluse Viewholder in it.
Then we will implement some override methods and create a constructor to get the data from Main_Activity Class.
In CustomRecycleAdapter class we have 2 methods those are OnCreateViewHolder that helps use to inflate the row_layout_view.xml view Items and then pass it to ViewHolder and the other method is onBindViewHolder that is been used to set the data in the views by the help of ViewHolder.
Then Finally we implement the setOnClickListener on the itemview that show use which gridView in recyclerView was clicked by the user
Then you Just Copy paste the Below Code
package com.ui.recycleview.gridview.layoutmanager;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
public class CustomRecyclerViewAdopter extends RecyclerView.Adapter {
ArrayList personNames;
ArrayList personImages;
Context context;
public CustomRecyclerViewAdopter(Context context, ArrayList personNames, ArrayList personImages) {
this.context = context;
this.personNames = personNames;
this.personImages = personImages;
}
@Override
public MyViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
// infalte the item Layout
View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.row_layout_view, parent, false);
// set the view's size, margins, paddings and layout parameters
MyViewHolder vh = new MyViewHolder(v); // pass the view to View Holder
return vh;
}
@Override
public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, final int position) {
// set the data in items
MyViewHolder viewHolder= (MyViewHolder)holder;
((MyViewHolder) holder).name.setText( personNames.get(position).toString());
((MyViewHolder) holder).image.setImageResource((Integer) personImages.get(position));
// implement setOnClickListener event on item view.
holder.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Toast.makeText(context,"Person : "+(position+1),Toast.LENGTH_SHORT).show();
}
});
}
@Override
public int getItemCount() {
return personNames.size();
}
public class MyViewHolder extends RecyclerView.ViewHolder {
// init the item view's
TextView name;
ImageView image;
public MyViewHolder(View itemView) {
super(itemView);
// get the reference of item view's
name = (TextView) itemView.findViewById(R.id.name);
image = (ImageView) itemView.findViewById(R.id.image);
}
}
}
Step 7 : Passing Data from Main_Activity.java to CustomRecyclerAdopter.java
Now, Firstly you need to get References to recycleView and then pass data to Adopter.
Then we are creating a list of data using java ArrayList name it as Person Name and likewise i have created a list of Images using ArrayList.
There after we set the recyclerView with GridLayoutManager and then we set the Adopter that show the Grid Items in out RecyclerView Widget.
Main_Activity.java
package com.ui.recycleview.gridview.layoutmanager;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import java.util.ArrayList;
import java.util.Arrays;
public class MainActivity extends AppCompatActivity {
// ArrayList for person names
ArrayList personNames = new ArrayList<>(Arrays.asList("Person 1", "Person 2", "Person 3", "Person 4", "Person 5", "Person 6", "Person 7","Person 8", "Person 9", "Person 10", "Person 11", "Person 12", "Person 13", "Person 14"));
ArrayList personImages = new ArrayList<>(Arrays.asList(R.drawable.ic_person_black_24dp, R.drawable.ic_person_black_24dp, R.drawable.ic_person_black_24dp, R.drawable.ic_person_black_24dp, R.drawable.ic_person_black_24dp, R.drawable.ic_person_black_24dp, R.drawable.ic_person_black_24dp,R.drawable.ic_person_black_24dp, R.drawable.ic_person_black_24dp, R.drawable.ic_person_black_24dp, R.drawable.ic_person_black_24dp, R.drawable.ic_person_black_24dp, R.drawable.ic_person_black_24dp, R.drawable.ic_person_black_24dp));
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// get the reference of RecyclerView
RecyclerView recyclerView = (RecyclerView) findViewById(R.id.recycleview);
// set a GridLayoutManager with default vertical orientation and 2 number of columns
GridLayoutManager gridLayoutManager = new GridLayoutManager(getApplicationContext(),2); // you can change grid columns to 3 or more
recyclerView.setLayoutManager(gridLayoutManager); // set LayoutManager to RecyclerView
// call the constructor of CustomAdapter to send the reference and data to Adapter
CustomRecyclerViewAdopter customAdapter = new CustomRecyclerViewAdopter(MainActivity.this, personNames,personImages);
recyclerView.setAdapter(customAdapter); // set the Adapter to RecyclerView
}
}
And the last thing is that you need to add some images in drawable to show them into Recycle GridView
I have simple created a vector images assets under drawable folder.
Just Right Click on Drawable folder > New > Vector Assets
Hi Guys, Welcome to Proto Coders Point, In this Flutter Tutorial we will Implement Flutter Registration and Login page using Firebase Authentication Flutter.
In both the Registration and Login pages we have 2 Flutter TextField and an materialButton, when clicked perform an Registration or Login task.
It also has a Modal Progress HUD flutter library which will show registering or login wait progress indicatorwhen button is click until the authentication process.
Adding Flutter Firebase Dependencies into our project
Here we have created an FirebaseAuth instance that can handle creating new users with their email and password. And once user get registered successfully we navigate the user to login Screen.
Login Snippet Code of Flutter Firebase
final _auth = FirebaseAuth.instance;
String email, password;
try {
final newUser = await _auth.signInWithEmailAndPassword(
email: email, password: password);
if (newUser != null) {
//successfully login
//navigate the user to main page
// i am just showing toast message here
}
} catch (e) {}
Here we make user of signInWithEmailAndPassword firebase class method to help the user to Log-In into our Flutter Application.
Complete Source Code for Flutter Login and Registration Page using Firebase Authentication
All set you Flutter App is now been integrated with Firebase Authentication Service, your Flutter app can now handle Login and Registration using Firebase services.