BeFunky-photo

List Using Recycler View

Hello bloggers to this session of android development tutorial, In this session we are going to learn about how to implement the Recycler view in a list.

Recycler view is a widget which is more advanced and flexible version of list view. It gives user more memory to the device. Assume when there are unknown numbers of items in a scrollable list. It contains more space to free up the space recycler view is used it frees up the space by deleting the information which is out of layout(data above or below the screen of your phone) hence freeing up space user can get the data back when he scrolls back up the data is recreated.

Step 1: open android studio->create a new empty project.

Step 2: after the project has synced go to gradle scripts->build.gradle (module: app).

Step 3: copy the dependencies from this website to dependencies, after copying it sync the project. Dependencies may change so check in website before adding it in your code.

Step 4: now go to main activity.xml copy the following code in it.

·        <?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <android.support.v7.widget.RecyclerView
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:id="@+id/recycler_list"
        />

</RelativeLayout>

Step 5: right click on layout file ->select new -> new resource layout file and give it a name such as “list_item_text” and make sure to keep the root element as “LinearLayout” and give it an id. Then copy the following code in it. if an error occurs at tools:text click alt+enter.

·        <?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:orientation="vertical"
     android:layout_width="match_parent"
     android:layout_height="wrap_content"
     >
 
     <TextView
         android:layout_width="match_parent"
         android:layout_height="wrap_content"
         android:textSize="26dp"
         android:id="@+id/Text_List"
         tools:text="list"/>
  </LinearLayout>
 

Step 6: in main activity.java file we create a RecyclerView and tag it with id recycler_list and set LayoutManager in LinearLayoutManager. Then we create a list of array elements called stringList and fill the list. Make sure elements in the list is large enough to be scrollable or you can assign string list in another array list called list and by using .addAll method we create multiple values of same type . you can create  copy the following code into main_activity.java.

·        package com.example.recyclerlist;
 
 import android.support.v7.app.AppCompatActivity;
 import android.os.Bundle;
 import android.support.v7.widget.LinearLayoutManager;
 import android.support.v7.widget.RecyclerView;
 
 import java.util.ArrayList;
 import java.util.List;
 
 public class MainActivity extends AppCompatActivity {
 
     @Override
     protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.activity_main);
 
 
         RecyclerView recyclerView=(RecyclerView)findViewById(R.id.recycler_list);
         recyclerView.setLayoutManager(new LinearLayoutManager(this));
         ListAdapter listAdapter =new ListAdapter();
         recyclerView.setAdapter(listAdapter);
 
 
         List<String> stringList = new ArrayList<>();
         stringList.add("yahs");
         stringList.add("yats");
         stringList.add("yags");
         stringList.add("majs");
         stringList.add("prat");
         stringList.add("mayu");
         stringList.add("lodi");
         stringList.add("pakodi");
         stringList.add("bodi");
         stringList.add("gteri");
         stringList.add("hmaa");
         stringList.add("jki");
         stringList.add("glodi");
 
         List<String> list = new ArrayList<>();
         list.addAll(stringList);
         list.addAll(stringList);
         list.addAll(stringList);
         list.addAll(stringList);
 
 
         listAdapter.setItems(list);
     }
 }

Step 7: create a new class called ListAdapter. In ListAdapter.java, class List adapter extends to recyclerview.adapter “public class ListAdapter extends RecyclerView.Adapter  ” If the line shows error click alt+enter ->click implement methods->click ok, we create a method called getItemViewType which will be responsible for type of the item at that position. We create a static type class called Textviewholder and extend it to recyclerview.viewholder and create a constructor for it. RecyclerView will call onBindViewholder method whenever a view comes on screen so we create a method called bind so that we can use it to display text view. In recycler list it has only one text view, so we create mTextview which will hold the number of text in text view.

Array list of elements called list holds m Items. Then copy the following code.

·        package com.example.recyclerlist;
 
 import android.support.annotation.NonNull;
 import android.support.v7.widget.RecyclerView;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
 import android.widget.TextView;
 
 import java.util.ArrayList;
 import java.util.List;
 
 public class ListAdapter extends RecyclerView.Adapter {
 
 
 
     private List<String> mItems =new ArrayList<>();
 
     public void setItems(List<String>items){
         mItems=items;
         notifyDataSetChanged();
 
     }
     @NonNull
     @Override
     public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
 
 
         if (viewType==0)
 
             return TextViewHolder.inflate(parent);
         else
             return null;
     }
 
     @Override
     public void onBindViewHolder(@NonNull RecyclerView.ViewHolder holder, int position) {
         if (holder instanceof TextViewHolder){
             ((TextViewHolder) holder).bind(mItems.get(position));
         }
 
     }
 
     @Override
     public int getItemCount() {
         return mItems.size();
     }
 
     @Override
     public int getItemViewType(int position) {
         return 0;
     }
 
     static class TextViewHolder extends RecyclerView.ViewHolder{
 
         private TextView mTextView;
 
         public static TextViewHolder inflate(ViewGroup parent){
            View view =LayoutInflater.from(parent.getContext()).inflate(R.layout.list_item_text,parent,false);
 
            return new TextViewHolder(view);
 
         }
 
 
         public TextViewHolder(@NonNull View itemView) {
             super(itemView);
 
             mTextView=itemView.findViewById(R.id.Text_list);
         }
 
         public void bind(String text){
 
             mTextView.setText(text);
         }
     }

Step 8: After you are done your app should look like this.

Conclusion

Congratulations, today you have learned how to create a list using recycler view. Using recycler view more complicated lists can be prepared (for e.g: playstore apps) recycler view manages the space allotment it can also be shown in grid layout by changing a single line of code but if you are going to keep detailed information then linear layout is best choice. You can use Recycler view and implement it in your code.

survey-2316468_1280

Create A List View Using Custom Adapter

Hello ,welcome to Bunkerspoint. In this post, we will see how to make a List view using custom adapter. This topic may be a bit intimidating so we will keep it easy by using text view only.

In this session we are going to create an app using list view which will display two text views called name and number using Array adapter.

  • open your android Studio app.
  • Click on new project-> give any name as you like.
  • Choose an empty activity-> click on next.
  • Don’t change any settings -> click on finish.
  • project may take some time to build and sync itself.
  • Copy the following code mainactivity.xml file. In the below given code, we create list view and assign it a id called “custom_list”.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <ListView
        android:id="@+id/custom_list"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"

      />

</RelativeLayout>
  • copy the following code into list_item.xml. In list_item.xml ,we create two text views and assign each of them an id so that when list is created we could use ids to display the data into list.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_margin="24dp">


    <TextView
        android:id="@+id/number"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:paddingLeft="10dp"
        android:layout_margin="10dp"
        android:textSize="20dp"
        tools:text="1"/>

    <TextView
        android:id="@+id/name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="5"
        android:paddingLeft="20dp"
        android:layout_margin="10dp"
        android:textSize="20dp"
        tools:text="maharana"/>

</LinearLayout>
  • Create a new class called Acttivity(any name you want I kept mine as Acttivity) which will use to define your class and store the data in it. We created two objects of String data type.

We created a constructor to extract values from array adapter and return it in getmName and get mNumber methods. So ,that it is displayed. Copy the following code into Acttivity.java class.

package com.example.bunkersdemo2;

public class Acttivity {

    private String mNumber;

    private String mName;



    public Acttivity(String vNumber,String vName){

        mNumber=vNumber;
        mName=vName;

    }


    public String getmNumber() {
        return mNumber;
    }

    public String getmName() {
        return mName;
    }
}
  • create a new class called Acttivity adapter(name whatever you want) and extend it ArrayAdapter(in my case ArrayAdapter).Now we create our own custom constructor which takes two arguments ,context (it will be used to inflate the layout file)and list(to populate the items in the list). The list we are using is ArrayList.

Then we call a method called getView method. we create a variable called listItemView to convertView. If listItemView is null then we inflate the listItemview using the LayoutInflater.inflate(). We use getitem() method to get the position of the object. We update the text views using findviewbyid() and update the data of object in list_item xml using the id number and name and return the listItemView.

package com.example.bunkersdemo2;

import android.app.Activity;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;

import java.util.ArrayList;

public class ActtivityAdapter extends ArrayAdapter<Acttivity> {


    public ActtivityAdapter(Activity context, ArrayList<Acttivity> activity) {
        super(context, 0,activity);
    }



    @Override
    public View getView(int position,  View convertView,  ViewGroup parent) {
        View listItemView = convertView;
        if(listItemView == null) {
            listItemView = LayoutInflater.from(getContext()).inflate(
                    R.layout.list_item, parent, false);
        }

        Acttivity currentActivity=getItem(position);


        TextView number = (TextView)listItemView.findViewById(R.id.number);
        number.setText(currentActivity.getmNumber());


        TextView name = (TextView)listItemView.findViewById(R.id.name);
        name.setText(currentActivity.getmName());

        return listItemView;
    }
}
  • copy the following code into MainActivity.java file. We are done creating Adapter and list item xml .So in mainactivity.java file. we create array list called activity and enter the Acttivity objects which will be displayed. We get a reference to the list view and attach it to the adapter in the list view using findviewbyid () method. Add some items in the arrayList by add() method.
package com.example.bunkersdemo2;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.ListView;

import java.util.ArrayList;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        ArrayList<Acttivity> activity = new ArrayList<Acttivity>();

        activity.add(new Acttivity("1", "Maharana"));
        activity.add(new Acttivity("2", "Shruti"));
        activity.add(new Acttivity("3", "Maharaj"));
        activity.add(new Acttivity("4", "Maharani"));
        activity.add(new Acttivity("5", "Maha"));
        activity.add(new Acttivity("6", "Marna"));
        activity.add(new Acttivity("7", "Mahana"));
        activity.add(new Acttivity("8", "Maharana2"));
        activity.add(new Acttivity("9", "Maharana3"));
        activity.add(new Acttivity("10", "Maharana4"));
        activity.add(new Acttivity("11", "Maharana5"));
        activity.add(new Acttivity("12", "Maharana6"));
        activity.add(new Acttivity("13", "Maharana7"));
        activity.add(new Acttivity("14", "Maharana8"));
        activity.add(new Acttivity("15", "Maharana9"));
        activity.add(new Acttivity("16", "Maharana0"));


        ActtivityAdapter adapter= new ActtivityAdapter(this,activity);
        ListView listView=(ListView) findViewById(R.id.custom_list);
        listView.setAdapter(adapter );

    }
}

OUTPUT


In this post, you have seen how to create a arraylist using custom adapter and how to implement it in your app. you can try and implement in different examples to understand. If you want more information you can go to documentation here. It is always a good practice to read the documentation.
Thank you for reading and keep following bunknerspoint.

CrossPlatformmobileappthumb

Top Cross-Platforms Development Software For Android And IOS

If you are a new developer and wondering which software to use? which will be convenient…….? Well, it’s simple. 

Given below are top software which you can use to use in both android development and ios development.

React-Native

React-Native allows user to build apps using java script only. It uses the same design as React. These apps that users built are not web apps but the regular android and ios apps. Instead of using java and Kotlin it uses java script and React. It produces apps which are in distinguishable from native, it means it is more productive than native. Currently React Naïve only supports android an ios apps but it holds the potential to support other platforms in future.

Pros

  • Doesn’t waste time recompiling.
  • Can use native code any time you want.
  • Builds apps for both android using one language only.
  • Any updates in code of apps doesn’t require any re-release of app.

Cons

  • Resources are not available as much java or Kotlin.
  • Community is too young for any beginner to learn.
  • Updates of SDK for android or ios takes long time to synchronize with react native.
  • Need to frequently install packages.

Xamarin 

                Xamarian is C# based it uses one language for all type of applications such as Windows, ios and Android. It targets all platforms with its single shared code based. Xamarian has native interfaces, native access native performance type which apps do not only work and look like they also behave like it. Capabilities such as art kit android multi-window mode develop Mac or PC it uses usual visual studio and world-class IDE’s.

Pros

  • It comes with sample apps for you to quickly and easy to start with.
  • It supports functionality and quality monitoring over 1000 devices simultaneously.
  • Xamarian platform allows you to share code.

Cons

  • The free version of Xamarian has limited features which lead to some compatibility issues.
  • There are some issues with libraries of the free version.

Appcelerator

               Appcelerator is java language based single code software .which can be used for application development for both android and ios. It comes with features such as drag and drop. It singles shared code system where you can use one code for many platforms. Titanium development in it helps in native programming development.

Pros

  • It is ideal for beginners.
  • It gives access information over 5000 API’s.
  • It gives powers to more than 75000 phones simultaneously.
  • It easily creates complex effects like dynamic animations.
  • It immediately provides support for new OS release type.

Cons

  • It has many support issues which have been reported quite often.
  • Lacks support for windows phones and IDE’s are slower and lagging.

Abode phone gap

Abode phone gap build is a cloud-based service built on top of the phone gap frame work. It allows you to write code HTML, CSS and JavaScript to perform a wide range of mobile applications while not losing its native features.

Pros

  • It is easy to configure extensive documentation and online support all the time.
  • It has hardware features such as GPS/location, camera and much more.
  • It offers abode AIR app and online training courses.
  • It supports in-app purchases across like the app store, google play store.
  • It helps us in saving with code reusability functions in it or all windows, ios, and android.

Cons

  • It is not used for advanced level coding.
  • Critical performance cannot be relied upon.
  • It is not suitable for intense graphics programming.
  • It has restrictive plug-ins for free version users.

Sencha Ext JS

         It purely based on java script is used to make the interactive framework for web apps and apps it has the library which easily integrates into reacting, angular, FOSS and other frameworks. It used to create data-intensive cross-platform apps that can leverage hardware acceleration techniques.

Pros

  • It features built-in native looking themes it already has in store.
  • Its backend data works with different types of software.
  • It’s a solution for rapidly developing its design.
  • It has 115+ components that help with the development of apps.

Cons

  • Its native themes are limited.
  • Commercial license featuring is not so easy to be done.

RhoMobile Suite

Rho mobile suite is java script based it uses its single code based system for developing cross-platform apps. This suite is based o Rhodes open source framework is a set of development tools for creating data-centric, cross-platform, native mobile consumer and enterprise application.

It has created a cohesive end to end development solutions for multiple device OS it’s an attractive proposition against its expensive purchases in it.

Pros

  • It has offline support data accessibility and synchronization into apps.
  • It has auto synchronization of back end data.
  • It comes along with a free eclipse plug-in it.
  • Allows a developer o generate, develop and test applications in it.

Cons

  • One of the biggest disadvantages of it is RFID (Radio-Frequency Identification) which it restricts. 

Native script

           Native script is an open source framework for developers to develop both android and ios. Native script is a hybrid type of software which has both JavaScript and TypeScript languages in it .developers can access native API’s and it is used in enhancing its existing features.

Pros

  • Developers can easily reuse the available plug-in npm directly in native script projects.
  • Ability to access core API’s directly makes it so easy to integrate custom modules.
  • It offers flexibility even though it is a free tool.
  • It supports hundreds of plugins to extend functionality.

Cons

  • The resources are not extensive you may not be able to find useful examples.
  • Documentation of each of its features may or may not be available.
  • It requires a good deal of set up to start it.
  • Styling and layouts are inconsistent.

Kony  

    Kony runs purely on java script .it used mostly in Windows and Mac systems. Low-code platform that allows seamlessly integrates and displays it develops native and hybrid and web apps from a single IDE using javascript it has a cloud-based preview.

Pros

  • Capabilities to check their real-time crashes.
  • Ideal for designing and testing apps.
  • It supports all kind of management augmented reality types of software.

Cons

  • Limited support for other languages except for English.
  • The manual is confusing instructions are not well explained.
  • Due to the scarcity of documentation and resource support it puts the developer in a peculiar situation.

Mono cross

Monocross is a C# .NET model viewer-controller framework where the model and controller are shared across platforms and the view is implemented for every specific platform or target architecture it used to make web-apps and normal apps and can also be used to share the business logic and data code.

Pros

  • It has easy third-party API integration.
  • Fast porting makes it easier for it to keep up with the platform changes.
  • It supports quite a diverse range of API’s .it makes mono cross completely utilize the device completely.
  • Monocross only require C# and .NET to develop apps.

Cons

  • The documentation and support are few in numbers so the developer found it difficult when they encounter an error.
  • The resources are hardly available.
  • It has not been updated in a few years.
  • Beginners find it most difficult in learning.

Apache Cordova

It was originally created or framework in mobile application it was rebranded as one of the open source tools which are comprised of the debugger, testing tools, and popular web technologies. The device’s capabilities have debunked in the recent past with the inclusion of a wide range of plugins and instant messaging allows them to share update frequently.

Pros

  • The code can be reused for all across various platforms.
  • It targets multiple platforms with a single code database.
  • The code works in all types of software such as Windows, Ios, Blackberry and Android.
  • It gives developers access to the latest features of apache by cutting the middle man.

 Cons

  • Cordova is a UI and framework agnostic (it leaves all the work of designing and logistics to a developer).
  • Considering a framework it does a bit more hand-holding.
  • Performance error may occur due to graphics intensive apps.

Flutter

Flutter is an open-source mobile application development SDK created by Google. They are used for development of android application and ios application. It runs on Dart virtual machine which features just-in-time execution engine. It uses single code base for creation both Android and iOS apps. It has many features such as Hot reload, equipped with native ARM and it has highly effective portable GPU rendering UI to work on latest interfaces. It is still in developing phase so there is not much information available about it but it may become one of the top development tools in cross-platforms. It sure is worth to keep an eye on it


The above-given tools are not ranked in order .they are some of the top tools than others they have reviewed and rated better than other tools available in the market. If someone wants to classify them they can only be categorized as a type or for its specific purposes the rest depends on you.

WhatsApp Image 2019-04-02 at 6.38.13 PM (1)

Create A Basic Hello World App Using Button

In this tutorial we will see how to make a Hello world app with android studio. Its a very simple project then what special in it ? Well, we are going to create it using a button. In today’s tutorial we’ll teach you how to use button, explain you how a button works and how can you implement it in your app.

Step 1: open your android studio app.

Step 2: click on a new project -> give any name as you like.

Step 3: choose an empty activity, and then click next.

Step 4: don’t change any other settings such as save location, package name or api level.

Step 5: let the project load the modules and sync itself.

Step 6: copy the following code in main_activity.java file.

<?xml version="1.0" encoding="utf-8"?>
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
     xmlns:tools="http://schemas.android.com/tools"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
     tools:context=".MainActivity"
     android:orientation="vertical"
     android:layout_margin="12dp">
 
 
 
     <TextView
         android:id="@+id/button_click"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:text="click below"
         android:paddingLeft="12dp"
         android:paddingBottom="12dp"
         android:textAlignment="center"
         />
 
     <Button
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:onClick="active_click"
         android:text="click here" />
 
 
 </LinearLayout>

In the above written code, what I have done is changed the default “android.support.constraint.ConstraintLayout” to LinearLayout for no special reason but because I prefer it to keep things in straight order. I have kept orientation in vertical order .it will help our views and text in linear order or it may appear in horizontal order.

  Then we removed all the text inside the Text view and set the layout_width and height to match parent and added the text “click below”. And we have kept the layout in such a way that they don’t get cramped.

Now here come the important part, we have created an id for text view because when the button will be clicked the it shouldknow where operation should take place so we need to assign an id to it. Then  we create a button view with text  “click here” and give it action to perform called ”active_Part” by calling onclick method.

Step 7: copy the following code in main_activity.java file.

package com.example.bunkers_demo;
 
 import android.support.v7.app.AppCompatActivity;
 import android.os.Bundle;
 import android.view.View;
 import android.widget.TextView;
 
 public class MainActivity extends AppCompatActivity {
     String click="Hello world";
 
     @Override
     protected void onCreate(Bundle savedInstanceState) {
         super.onCreate(savedInstanceState);
         setContentView(R.layout.activity_main);
 
     }
 
 
     public void active_click(View view){
 
         display(click);
     }
     public void display(String view) {
         TextView displayThis = (TextView) findViewById(R.id.button_click);
         displayThis.setText(String.valueOf(view));
     }
 
 }

When the button is clicked it calls active_click method and it displays the value of variable present inside “click”. But you need to create a variable of String type of any name (I have kept mine as “click”) and set the value as ” Hello world” but how does it know where to display for that you will create a function called “display” of String type view. It uses the value stored in variable”click”and display the in id button_click using find view by id method in it. It displays the text view value id then we use setText method so that the updated value of string type updates the text in text view outside the app.

Step 8: after following the steps above you app will look like this.

 

So with this we have learn’t what a button is, how it works and how can it be implemented in your app, you can go to android studio and make changes to see how it works and understand better. We have kept it simple so that it can only display a word but we can design it to perform arithmetic calculations. But that’s for different lesson stay tuned and visit our website for more solutions.

Android Studio

Installing Android Studio On Windows/Mac /Linux (Ubuntu)

Struggling with installing Android Studio on your device? In this post we will guide you with installing android studio on  three different OS which covers windows / mac / Ubuntu.

Installing Android Studio has become easier than ever since its   new update  released  in January 2019.

FOLLOW THESE STEPS FOR INSTALLING ANDROID STUDIO

Installation in Windows

  • Click on install.
  • Check on requirements before installation.
  • Install the Android Studio if you have downloaded in .exe(recommended) then double click to launch it, if not.
  • If you have installed in .zip file type, then copy android studio folder and copy it into program files folder open android > bin, then launch studio64.exe(for 64-bit users) or launch studio32.exe(for 32-bit users).
  • After launching the android ,click next  and agree to its terms as you go.
  • If you are first time user then check on the second option “do not import any settings”
  • After installation, it will ask you to download SDK press OK to install all JDK tools or components to install
  • For beginners, it’s better to keep setting as Standard better not to choose custom until you have more experience with standard well it can be changed later
  • After installation and extraction are done you are good to go and click on Finish with this you are done.
  • When you have updates Android Studio will inform you with pop-up notifications or you can choose help>check update.

   Installation in Mac

  • Click on install.
  • Check on requirements before installation.
  • After downloading Android Studio, launch the DMG file of Android Studio.
  • Select Android Studio file then drag and drop it inside the applications folder.
  • Select whether to import previous settings or not if you are first time user then it’s better to check to“ not import any settings”.
Installing Android Studio On Windows/Mac /Linux (Ubuntu)
Installing Android Studio On Windows/Mac /Linux (Ubuntu)
  • Agree to all its terms and continue the installations as it goes.
  • It’s best to keep the settings at Standard for beginners, it can be changed later.
  • Install all the SDK tools or SDK components shown by Android Studio.
  • When the installation is done you are pretty much good to use the Android Studio.
  • For automatic updates, Android Studio will show pop-ups or click on android studio>check for updates.

   Installing Android Studio in ubuntu(linux) 

  • Click on install.
  • Check on requirements before installation.
  • After downloading the .zip file unzip the folder in an appropriate location such as /user/local/ if you are a single user If you are shared user then choose /opt/.
  • To launch Android Studio navigate to terminal android-studio/bin / in the directory, then launch studio.sh file.
Installing Android Studio On Windows/Mac /Linux (Ubuntu)
Installing Android Studio On Windows/Mac /Linux (Ubuntu)
  • Select whether to import previous settings or not if you are first time user then it’s better to check to“ not import any settings”.
  • Agree to all its terms and continue the installations as it goes.
  • Tools > create a new entry is to be used if you want Android Studio to appear in your android studio list applications.
  • It’s best to keep the settings at Standard for beginners, it can be changed later.
  • Install all the SDK tools or SDK components shown by Android Studio.
  • When the installation is done you are pretty much good to use the Android Studio.
  • For automatic updates, Android Studio will show pop-ups or click on help>check for update.

Required commands for 64-bit machines in Linux

For 64-bit users, you need 32-bit libraries that can be done using the following commands

For 64-bit Fedora devices the command is

sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686

For other 64-bit ubuntu devices

sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386

Following the few simple steps above you can install Android Studio with ease but depending upon ram or internet speed it may take time from 20 minutes to 1 hour or more if you have a slow internet connection.

A tip for you guys who are beginners, Please try to make sure you have basic requirements in OS for installation, if not after installation you may encounter many problems like time for executing, that is even a simple android code may take up to 15 minutes if you don’t have.

Good luck, with this you are good to run your android studio and start your  first project.

Thank you for reading this post. Follow us on Instagram and Facebook.


To know more tips and tricks you can follow articles on this category :
https://blog.hiewpoint.com/off-topic/

To know about web development and WordPress follow
https://blog.hiewpoint.com/web/

To know about Android development and Android Studio follow
https://blog.hiewpoint.com/android/