Android Basics Archives - Page 4 of 11 - Androhub

Fragment_Banner

Android Pass Data from Activity to Fragment

Earlier we had learn how to pass data from one activity to another and get back data from another activity. You can find both tutorials here : Android Intent. StartActivityForResult. Today we are going to learn how to pass data from Activity to Fragment. Before starting this tutorial just go through Fragments Tutorial if you

Read More
Custom Font Banner

Android Custom Fonts TextView

In android, you can define your own custom fonts for the strings in your application. You just need to download the required font from the internet, and then place it in assets/fonts folder. In Eclipse the assets folder is by-default created but in Android Studio you have to create assets folder. Note : assets folder creating

Read More
StartActivityForResult Banner

Android StartActivityForResult

In Android we can pass data from one activity to another via Intent using startActivity(). The syntax for this is shown below :

Similarly we can get data from our other activity that is opened by an activity like SecondActivity from MainActivity and we need some message from SecondActivity back again to MainActivity so for this

Read More
Swipe Gesture Listener

Android Swipe Gesture

The Android SDK supports a variety of gestures you can detect, allowing you to tailor the ways in which users interact with your applications. In this tutorial, we will look at the framework that allows developers to add gesture detection to a simple application, working through the process of supporting the fling gesture and outlining

Read More
Text to Speech

Android Text To Speech

Android allows you convert your Text into Voice. Not only you can convert it but it also allows you to speak text in variety of different languages. Android provides TextToSpeech class for this purpose. In order to use this class, you can implement TextToSpeech.OnInitListener this listener to your class and it will automatically add the below method to your

Read More
Speech To Text

Android Speech to Text

Android comes with an inbuilt feature speech to text through which you can provide speech input to your app. With this you can add some of the cool features to your app like adding voice navigation(Helpful when you are targeting disabled people), filling a form with voice input etc., In the background how voice input

Read More