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 MoreIn 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 MoreIn Android we can pass data from one activity to another via Intent using startActivity(). The syntax for this is shown below :
1 2 3 |
Intent in = new Intent(MainActivity.this, SecondActivity.class); in.putExtra("message",message); startActivity(in); |
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 MoreThe 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 MoreAndroid 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 MoreAndroid 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