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() ;
- 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
Post a Comment
If you have any doubts , please let me know ....