Skip to main content

ANDROID

 

Hiiiii guy's welcome back to my new post and this post is totally based on android application. In this blog we are going to discuss what is android??? What are android application????? On which software we can operate them????? 

Now ,a days we all are using android mobile phones, android watches, android tabs. But many of us actually don't knows that which system we are using ???? And the system that we are using operates on which operating system ???? Don't worry guys after the end of this blog all your doubts will be cleared and you will be having the knowledge about maximum of the concepts. We all are using android apps but we are not concerns that how they are operating inside the activity or how the apps are running??

The thing we do is opens the app and start using it . Because most of us are not intrested in knowing the background. The background working of the android app is as similar to the background music player at the parties. We only enjoys the app as similar to the music but did'nt try to understand the background activity.


So guy's let's start our todays intresting topic-ANDROID APPLICATIONS...........

In this post I will show you the simple and basic android app developed by me itself. And it's not a very big task even the person who is a beginner can develop a basic android application .Its not a very big deal actually. In this blog we will develop a view which as similar matches to YouTube and Instagram. I hope you all have judged that what's that app us??????. So let us begin. In this post we are going to discuss the activity on which the YouTube is based. Their are various developer's in the world who are working on this concept and trying to develop the new apps. For this you must have any of the studio on your device either it is of MAS,ANDROID. You must have any of the operating system .Apps on which your android application can run:


  • 1 – GenyMotion. GenyMotion is an Android emulation software designed and developed by GenyMobile, 
  • 2 – Nox App Player. Nox App Player is an Android emulator developed by a Chinese-based technology startup 
  • 3 – Andy (Andyroid). Andy is an Android emulation software, which is also known as Andyroid, .
  • 4 – BlueStacks App Player. BlueStacks App Player is developed and produced by BlueStacks, 
  • 5-Android Studio- I prefer all of you to use android studio .As you all are beginners and for beginners it is  very easy to use.



  •  
  • This activity is my scroll activity in which Is used to generally scroll the images as we all do on instagram and youtube .The activity will watching the post on Instagram or YouTube is this scrolling activity only .But this activity is know to developer's only. We people just enjoys the post not knowing the background. Android activity consist of two files:
  • This is the code for scroll view you can go through the code and you ca <?xml version="1.0" encoding="utf-8"?>
  • <ScrollView xmlns:android="http://schemas.android.com/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">
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="vertical">
    <ImageView
    android:layout_width="400dp"
    android:layout_height="500dp"
    android:src="@drawable/pics"
    android:layout_marginTop="30dp"
    android:id="@+id/imm"
    android:adjustViewBounds="true"
    />
    <TextView
    android:layout_width="match_parent"
    android:layout_height="200dp"
    android:text="@string/hey_you_are_welcome_"
    android:textSize="20sp"/>

    <ImageView
    android:id="@+id/img1"
    android:layout_width="400dp"
    android:layout_height="450dp"
    android:adjustViewBounds="true"
    android:src="@drawable/screen" />

    <ImageView
    android:layout_width="400dp"
    android:layout_height="400dp"
    android:src="@drawable/pics"
    android:adjustViewBounds="true"/>
    </LinearLayout>
    </ScrollView>
  • .XML file
  • .Java file
  • . Xml file is extensible markup language. I hope you are clear with some concepts of html. We also know that html is known as hypertext markup language. Markup languages are quite different from other computer languages. Markup language are the those languages which are used to design the webpages as similar xml is extensible markup language. 
  • In this shown images I have used the <scroll view> . As in markup languages all the attributes are used in tags. I have used scroll view because I have tho scroll my images up and down as we do on YouTube and Instagram. 


  • This image shows the message and in android it is know as toast message. That is when I clicked search button the toast message reflects -searching. 
  • Toast make. Text("MainActivity.this,"searching ", Toast. LENGTH. LONG). Show() ;
  • Length long=1 and length short=0 means long will reflect the message for a long time whereas the short message reflects for short time. 


  • Now if we click the delete button it reflects the toast message deleting.The syntax for this is as similar as it was for searching just you have to change the second parameter." Deleting" Other the syntax is same. 

  • This is my signup screen in which you have to enter your first name and second name you have to enter your password after doing this all you have to click on Sign UP button. This page is know as signup page and it is designed with Relative Layout it is your choice you want to use relative Layout Or linear LayoutLayout Or any other Layout it's upto you in which your are more comfortable. 

    This is my next activity in which you have to just click on the button " Click -me" And only by clicking this you will be moved to the next page on. Xml you have to just made a button with some attributes. And at. Java page you have to use intents. 
  • Intents are generally used to transfer message from one activity to the other. Thr code for this is 
  • Intent I=new Intent(MainActivity.this,Second.class);
  • startActivity (i) ;

  • Finish() ;
After clicking this you will be taken to the second activity and in second activity I have made the login page in which you can enter your email and password. After that you can click on login button to save it. 

  • The email written is editText as similar password is also the editText and login is the button on which you have to click. And you are able to see the message is displayed at the bottom of the screen which is again possible by using toast. 

Comments

Popular posts from this blog

HOW TO PLANT ROSES????

  Rose is undoubtedly the 'Queen of Flowers'. If you have a passion for gardening and loveflowers then I am sure you have always wanted to grow roses in your garden. Some newbie gardeners including me, a fewyears ago used to think rose is one of the most difficult shrubs to grow. This is actually a misconception. Anybody can grow roses just like any otherplant. All you have to do is follow some simple tipsand tricks on how to grow roses correctly. In this episode let's list out the 10 usefulrose plant care tips one by one. Please watch it till the end as some of thesetips might surprise you with few bonus tips at the end. Before we start make sure you have subscribedto our channel along with the bell notification. 10. Bare Root Roses or Container Roses? You can purchase roses already potted in soilthats container roses or as dormant bare-root plants . If you are a beginner, container roses isthe best option, because they are easy to plant and they establish quickly. If you ...

WHY 5G?????......................

  Hiii,guy's I isha welcomes you all in my new post...The Internet of Things or iotis influencing our lifestyle from the way we react to the way we behave.From air conditioners that you can controlwith your smartphone to Smart Cars providingthe shortest route or your Smartwatch which is trackingyour daily activities. IoT is a giant network with connected devices.These devices gather and share data abouthow they are used and the environmentin which they are operated. It's all done using sensors, sensors are embedded in every physical device. It can be your mobilephone, electrical appliances Pecos barcode sensors traffic lights and almosteverything that you come across in day-to-day life. These sensorscontinuously emit data about the working stateof the devices, but the important question is how do they sharethis huge amount of data, And how do we put this data to our benefit iotprovides a common platform for all these devicesto dump their data. And a Common language for all the ...

BASIC STRUCTURE OF C++ PROGRAM

                       Structure of a program  Probably the best way to start learning a programming language is by writing a program. Therefore, here is our first program:  // my first program in C++  #include <iostram> using namespace std;  int main () {  cout << "Hello World!";  return 0; }  Hello World!  The first panel shows the source code for our first program. The second one shows the result of the program once compiled and executed. The way to edit and compile a program depends on the compiler you are using. Depending on whether it has a Development Interface or not and on its version. Consult the compilers section and the manual or help included with your compiler if you have doubts on how to compile a C++ console program. The previous program is the typical program that programmer apprentices write for the first time, and its result is the printing on screen of the...