Found 1966 Articles for Apps/Applications

How to programmatically set style attributes in a view on Android?

Vaibhav Ahire
Updated on 09-May-2023 11:45:03

3K+ Views

Introduction Many times we have seen a case while developing an android application that we have set the same style for multiple views across our application. We have seen writing the code to set the style multiple times. To reduce the code duplication and optimization of our code we can create the style for a specific view in our styles.xml file and set that style to our view programmatically. In this article we will take a look on How to programmatically set the style attribute in a view on Android. Implementation We will be creating a simple application in which ... Read More

How to prevent custom views from losing state across screen orientation changes ?

Vaibhav Ahire
Updated on 09-May-2023 10:31:57

292 Views

Introduction Many times in android applications we can get to see when the user changes the screen orientation of the device from portrait to landscape. In that case we can get to see that some of the views within the application loses its state. For example when a user enters any data in a text file and then changes the screen orientation from portrait to landscape, in that case the data which is already entered gets cleared up. To prevent this we have to store the state of that view. In this article we will take a look on How ... Read More

How to parse XML using SAX parser in Android?

Vaibhav Ahire
Updated on 09-May-2023 10:27:49

293 Views

Introduction Android is an open-source operating system which is based on the linux kernel which is developed by Google. There are several ways which we can use to parse the data within our android application such as JSON parsing, xml parsing and many more. For parsing of the XML file SAX parser is used. In this article we will take a look at How to parse XML using SAX parser in Android. Implementation We will be creating a simple application in which we will be creating a text view for displaying the heading of our application. After that we are ... Read More

How to parse the AndroidManifest.xml file inside an .apk package

Vaibhav Ahire
Updated on 09-May-2023 10:21:49

952 Views

Introduction Android application package also referred as .apk file is generally installed on a mobile device which helps to run the android application on a mobile device. This apk file is a zip file which contains the application code, resources and a manifest file. AndroidManifest.xml file is considered as one of the most important files of any android application package (apk). It contains essential metadata of any application such as application’s name, version, permissions which are provided in the application to be requested for the user to use the application and many more. In this article we will take a ... Read More

How to open the Google Play Store in an Android app?

Vaibhav Ahire
Updated on 09-May-2023 10:12:00

363 Views

Introduction Many times in android applications we can see that OTP received for user authentication is detected automatically and it is added within the application automatically. Users don't have to add the otp manually. This can be done in android applications with the help of broadcast receivers. In this article we will take a look on How to listen for incoming sms messages in android application Implementation We will be creating a simple application in which we will be displaying two text views. First text view is for displaying the heading of our application. Second text view we will be ... Read More

How to listen for incoming SMS messages in Android?

Vaibhav Ahire
Updated on 08-May-2023 17:10:03

6K+ Views

Introduction Many times in android applications we can see that OTP received for user authentication is detected automatically and it is added within the application automatically. Users don't have to add the otp manually. This can be done in android applications with the help of broadcast receivers. In this article we will take a look on How to listen for incoming sms messages in android application Implementation We will be creating a simple application in which we will be displaying two text views. First text view is for displaying the heading of our application. Second text view we will be ... Read More

How to launch Google Maps Directions via an intent on Android?

Vaibhav Ahire
Updated on 08-May-2023 17:05:30

1K+ Views

Introduction Many times in android applications the address to the specific store or a location is being displayed in the form of an icon. On clicking on that google map icon the application redirects us to the Google Maps application in which we will get to see the route from users location to the stores location. In this article we will take a look on How to launch Google Maps Directions via an intent on Android. Implementation We will be creating a simple application in which we will be creating a text view for displaying the heading of our application. ... Read More

How to integrate PayPal in an Android app?

Vaibhav Ahire
Updated on 08-May-2023 17:01:54

2K+ Views

Introduction We can get to see different payment gateways used within any android application for collecting payments from the application users for providing the specific services such as Paytm, Razorpay, Paypal and many others. In this article we will take a look on How to integrate PayPal in an android application. Implementation We will be creating a simple application in which we will be creating a text view for displaying the heading of our application. After that we will create an edit text which is used to enter the amount for which the user has to make payment and a ... Read More

How to implement the Drag and Drop functionality over a Recycler View in an Android App ?

Vaibhav Ahire
Updated on 08-May-2023 16:54:17

578 Views

Many times in an android application we can get to see the data is being displayed in the form of a list such as in task tracker application we can get to see different types of tasks arranged in the form of a list in a specific order. Now inside those applications we can change the priority of tasks by simply changing their priority. We will add the task with highest priority at the top. So we can simply drag and drop that task to the top most position. So in this way Drag and Drop functionality is used for ... Read More

How to implement my own URI scheme on Android?

Vaibhav Ahire
Updated on 08-May-2023 16:52:18

1K+ Views

Introduction When we have to connect our android application to other applications or websites we can use URI (Uniform Resource Identifier) to connect. In this article we will take a look on How we can create a URI scheme for our android application. Implementation We will be creating a simple application in which we will be displaying two text views. First text view we will be using to display the heading of our application. We will be using a second text view for displaying the data to be passed through our URL. Step 1 : Creating a new project in ... Read More

Previous 1 ... 6 7 8 9 10 ... 197 Next
Advertisements