Category: Android app develoment
-
How to show date picker in Flutter? -Flutter showDatePicker function
The showDatePicker() function in Flutter displays a dialog with a Material Design date picker. Let’s see how we can use this function. How to show date picker in flutter? You call the showDatePicker() function like this – Let’s know about the initialDate parameter. When you open a dialogue to select a date in an app, […]
-
Video player in Flutter – Flutter video_player plugin
In this post, you will learn to create a video player app using a flutter plugin called video_player. This plugin makes it very simple to create a video player. From the official doc: A Flutter plugin for iOS, Android and Web for playing back video on a Widget surface. How to use video_player in flutter? […]
-
How to pick image from gallery in Flutter? – image_picker
In this post, you will learn how to pick an image from the gallery in a flutter app. You will also learn how to open the camera from a flutter app to capture a photo and show it in the app. I will use a plugin called image_picker to pick an image from the gallery […]
-
url_launcher in Flutter.
Many times, an app wants to launch another app present on the user’s device to accomplish a task. For example, if your app has a “contact us” option, then you might give your app users options like email, text message, or call to contact. Then in this scenario, your app can simply launch an app […]
-
Add fragment programmatically in android
In this post, we will learn to add a fragment to an activity dynamically. And if you want to learn about adding a fragment via XML then, here’s the link to my post on adding a fragment to an activity via XML – https://developerxon.com/2022/06/24/how-to-add-a-fragment-to-an-activity-via-xml/ How to add fragment dynamically in android? First, create a new […]
-
How to add a fragment to an activity? -via XML
You know that, in android, an activity has a lifecycle associated with them, activities receive their own input events. Like an activity, a fragment too has a lifecycle associated with them and receives its own input events. So, You can call a fragment a sub-activity. You can add a fragment to the activity or, remove […]
-
Send data to another activity – Android?
In this post, we will learn to pass data from one activity to another activity. How to pass data from one activity to another in android? Passing data between activities in Android require you to use the Intent class. Using the putExtra method of the Intent class you can send data from one activity to […]