When we talk about use the front flash integrated into the screen (The typical "selfie flash" that uses the screen's own light) is actually a mix of two worlds: classic photography with a built-in flash and modern mobile cameras that rely on screen brightness to illuminate the face. Understanding how each works, its limitations, and how to maximize its potential is key to achieving well-lit selfies and portraits in challenging conditions.
Furthermore, behind something that seems as simple as the screen turning white and increasing brightness when you take a photo with the front camera, there are quite a bit of technology and camera settingsAutomatic exposure, white balance, synchronization, flash modes, diffusers, and even how to combine that screen light with other light sources. We'll look at it step by step, but with a practical and realistic approach, whether you're an Android developer or just want to improve your photos with the built-in flash.
What is the integrated front flash on the screen?
The so-called screen flash or front flash is a function that makes the mobile phone's screen act as a direct light source When you use the front camera, instead of an LED flash, the phone increases the screen brightness to maximum and displays a very light color (usually white or warm tones) at the moment of capture.
This system works because in most selfies the user is holding the phone. very close to the faceSo, that front light is bright enough to illuminate your face indoors, at night, or in low-light environments. Many native camera apps, social media apps, and third-party tools This type of flash is included as standard., as collected by the best camera apps for Androidprecisely because the front camera usually lacks a dedicated LED flash.
For the user, the experience is simple: activate or deactivate flash mode and take the shot. On some selfie-oriented devices, such as OPPO F1 PlusThe front camera was one of the main complaints; but for the app developer, implementing this feature well involves control automatic exposure (AE), automatic white balance (AWB) and the exact moment when the screen brightness goes up and down, all coordinated with the image capture.
Correct workflow for on-screen flash (Android Camera2)
If you're programming a camera app on Android and want to offer a stable and high-quality front-facing flash on screenIt's not enough to just blank the screen and shoot. The two pillars are the proper use of the automatic exposure pre-capture sequence and the precise management of the timing of each operation.
At a conceptual level, the workflow can be summarized in a series of linked steps that ensure the camera has adjusted exposure and white balance taking into account the additional light provided by the screen before taking the final photo.
Key steps to capture a photo with screen flash
To properly implement the integrated front-facing flash with Camera2, the typical process involves a series of operations on the user interface and the camera itself. Each one has a direct impact on the consistency and quality of the final image.

1. Interface settings: white overlay and maximum brightness
The first thing the app must do is apply the necessary visual changes so that the screen becomes a uniform light sourceThe most common recommendation, which has also proven to work well in laboratory tests, is to cover the screen with a layer of white paint and turn the brightness up to maximum. This approach is used by some selfie-oriented phones, such as the Zenfone Liveto improve self-portraits in low light conditions.
In practice, this can be resolved by adding a View in full screen with a white background, sufficient elevation to be above all interface elements, and initial visibility set to "invisible". During the shot, the app simply changes its visibility to "visible" so that it functions as a improvised light panel in front of the user.
The color pure white (for example # FFFFFFThis is usually the starting point, but nothing prevents the application from allowing you to choose other tones or shades to better adjust skin tone or achieve a creative effect. The important thing is that this view completely covers the visible area of the app while the screen flash capture is active.
2. Increase screen brightness from the app
The other part of "flash" is to bring the brightness to the maximum possible. On Android, a direct way to do this is by modifying the parameter screenBrightness from the activity window using WindowManager. By adjusting this property, the app can force very high brightness only during the shooting without permanently changing the global system brightness.
By activating screen flash mode, you can save the previous window brightness value, set the appropriate maximum value for illumination, and, after capturing, restore the original valueThis detail prevents the user from being left with a blinding screen after finishing the photo and maintains a pleasant user experience.
3. Configure the automatic exposure mode: CONTROL_AE_MODE_ON_EXTERNAL_FLASH
Once the on-screen light panel is ready, the camera settings come into play. Starting with Android 9 (API level 28), there is a mode CONTROL_AE_MODE_ON_EXTERNAL_FLASH, designed to work with external flashes, but which is very useful when we simulate a front flash through the screen.
Not all devices support this mode, so it is mandatory to check its availability by consulting CameraCharacteristics#CONTROL_AE_AVAILABLE_MODESIf the value appears among the supported modes, the application can activate it; otherwise, it will have to choose another AE scheme or manage the screen flash without that extra help from the API.
It is very important to set the appropriate AE mode in the repeated capture request (the one used for preview), because if it is only applied to an isolated capture, the next repeated request may overwrite the configuration with a default or user-chosen automatic mode, leaving the system without time to perform the calculations specific to that flash mode.
4. Launch the pre-capture sequence (AE pre-capture)
In order for the camera to reliably adjust the exposure and white balance to the new lighting situation (the screen shining brightly to act as a flash), the AE pre-capture triggerThis is done by sending a CaptureRequest with the CONTROL_AE_PRECAPTURE_TRIGGER field set to CONTROL_AE_PRECAPTURE_TRIGGER_START.
Although this trigger is launched in a single request, the process of converging automatic exposure and automatic white balance it is not instantaneousIt is necessary to continue receiving results from repeated captures and to monitor the AE and AWB states through the capture callback to know when they have converged on the new lighting scenario.
5. Wait for the convergence of AE and AWB
One of the most important subtleties is making sure that a new pre-capture sequence Before checking if AE and AWB have converged. Otherwise, the camera might report "converged" based on a previous state, calculated before the screen light was actually turned on, resulting in underexposed photos or photos with strange color casts.
The practical way to handle this is to register a repeated capture callback on the preview request and, within it, query the parameters returned in each frame: states of AE and AWBOnly when both indicate that the measurement is locked or stable, should the app accept the adaptation and proceed to the final capture.
6. Capture the photo with the usual workflow
Once the system has adjusted exposure and white balance taking into account the light coming from the screen, you can use the same photo capture flow as the app without screen flashThis includes building a point capture request, adjusting the focus, exposure, and other parameters according to the needs of the photo mode (portrait, automatic, etc.).
At this point, the white overlay and maximum brightness are still active, so the The user's face is well lit At the precise moment of the shot. The camera receives the request, processes the image, and then the app listens for the return capture to save or display the final photo.
7. Reset AE settings and interface
After receiving confirmation that the capture has been processed, it's time to return to the normal state of the appIf CONTROL_AE_MODE_ON_EXTERNAL_FLASH was activated, you must restore the previous AE mode (e.g., CONTROL_AE_MODE_ON or the one used by the app's standard interface).
Similarly, the white layer that acted as a screen flash should become invisible again, and the brightness of the activity window should be turned off. return to its previous valueIn this way, the preview returns to normal and the user can continue framing or taking another photo without feeling dazzled or finding the interface altered.
Flash state capture and management callbacks
The CaptureCallback is the piece that allows you to orchestrate this entire process without breaking the flow of the preview. It's in this callback that the app can actively wait for AE mode to actually change in the results of repeated capture after setting CONTROL_AE_MODE_ON_EXTERNAL_FLASH.
When the capture result indicates that the returned AE mode matches the requested mode, the app knows that the camera has accepted and applied the change. From that moment on, the app can be safely launched. pre-capture sequence and the rest of the flow, avoiding inconsistent results due to untimely mode changes.
The same callback is reused to monitor the AE and AWB states once the pre-capture trigger has started. Continuously observing the states reported by the camera in each repeated result is the simplest way to have a clean and centralized code to know when the optimal point for firing has been reached.
Configuration of repeated requests to enable and disable AE mode
In practice, the app usually creates a single repeated preview request when the camera starts. It is on this request that it is advisable to set the capture callback that will be used for all status checks (AE, AWB, flash mode, etc.).
When the user wants to activate the screen-integrated front flash, the repeated request is updated to set CONTROL_AE_MODE_ON_EXTERNAL_FLASH (if the device supports it) or the selected alternate AE mode. When the user deactivates the flash, the repeated request is reset to standard auto exposure mode.
This pattern of dynamic update of the repeated request It allows you to keep the code tidy: the preview is always active, the callback is always the same, and the only thing that changes is the camera configuration depending on whether the screen flash is enabled or not.
Common mistakes when implementing screen flash
When the front screen flash is implemented incorrectly, the most common issues are: highly inconsistent results Between different shots, devices, and lighting conditions, a photo taken with one phone might turn out reasonably decent, while on another, under the same conditions, the colors might appear dull or with a blue tint. An example of these differences between devices was seen when... Several selfies taken with the HTC 10's front camera were leaked.
Another typical symptom is that the face becomes overexposed or with harsh shadowsWhile the background appears completely black, or conversely, the face is underexposed and the surroundings are blown out. These flaws are more pronounced in truly low-light scenarios (for example, a very dark room) compared to other situations with softer dimness.
In laboratory settings, where ambient lighting is kept under control (e.g., with constant warm white light sources), it is easy to see how poor implementation fosters cool or blue tints which do not correspond to the actual light. This makes it clear that the problem lies in the screen flash management and not in the physical lighting of the scene.
Results when applying a standard implementation
When the described best practices are followed (white overlay, maximum brightness, correct use of CONTROL_AE_MODE_ON_EXTERNAL_FLASH, AE pre-capture and waiting for AE and AWB convergence), the image quality It improves very noticeably. And, above all, it becomes much more predictable.
On the same devices, with the same scene and the same ambient light conditions, photos with the standard implementation show a more balanced exposureA more natural skin tone and no strong color casts result. This reduces the number of failed shots and ensures the app performs consistently across different phone models.
For the end user, this translates to their screen flash "just working": they can take selfies in tricky conditions without ending up with a whitish face, absurd black backgrounds, or unrealistic skin tones, something that It makes a difference in the perception of quality from a camera app.
Built-in flash, diffusers, and other light sources
Although the focus here is on the on-screen flash, it's impossible to talk about lighting without mentioning the classic built-in flash of cameras and some tricks to soften it. The problem with these built-in front flashes is that they produce a very harsh, frontal, and unflattering light.
A simple and inexpensive way to improve their behavior is to use a diffuserThere are commercial diffusers of many types and colors that soften the glare and make it more pleasant, but in a pinch we can also make a homemade one with any translucent material that lets light through: a a thin handkerchief, a paper napkina bag or a plastic cup fixed in front of the flash.
In practice, the difference between a professional diffuser and a well-placed home diffuser can be less dramatic than it seemsBoth manage to expand the light, reduce the harshness of the shadows and avoid excessive shine on the skin or products.
Add a second light source

Another way to "lend a hand" to the flash, whether built-in or simulated on screen, is to complement the scene with another source of artificial lightThis is especially useful in product or macro photography, where harsh shadows can ruin the details.
We can use continuous LED light panels, a desk lamp, or even the light from a flexible arm lamp. Since the front flash usually comes from the direction of the camera, it's best to position the second light source at a different angle, for example, so that overhead (from above) to fill in shadows and make them softer and more pleasing to the eye.
Flash exposure compensation
In traditional photographic cameras, the flash exposure compensation It's a control independent of the overall exposure compensation button. While the latter affects the automatic metering of the scene as a whole, flash-specific compensation regulates the power at which the flash will jump.
It is especially recommended to use it when the subject appears overexposed or blown out. By slightly reducing the flash power, we can achieve this. reduce the harshness of the shadows and avoid overexposure of the face or main area of interest, better balancing the ambient light with the flash light.
This function is very useful when we use the flash as fill light in full daylightbecause it allows you to adjust how much you want the flash to contribute compared to natural light, instead of letting the flash completely dominate the scene.
Flash synchronization modes
Beyond the typical automatic shooting in TTL mode, many cameras offer various synchronization modes The flash helps to better integrate the subject with the background, especially in night scenes or low light.
The mode of slow synchronization (SLOW) It fires the flash, allowing the camera to use a slower shutter speed than normal, which makes it easier to properly expose the background in dark situations, while the flash takes care of illuminating the subject within the effective distance.
This mode reduces the typical situation of night portraits with the subject well lit but a completely black backgroundThe camera extends the exposure to record the environment, while the flash freezes the protagonist.
First and second curtain
The synchronization modes to the first or second curtain They are based on how the flash relates to the movement of the mechanical shutter, which consists of two curtains. In normal synchronization (first curtain), the flash fires when the first curtain opens, freezing the scene at the beginning of the exposure and allowing, if the shutter speed is slow, a motion trail to be recorded in front of the subject afterward.
In the synchronization to the second curtain (REAR)The camera first lets in light for the programmed time, capturing the subject's movement and generating a trail, and only just before the second curtain closes does the flash fire, freezing the subject at the end of that path.
This way we ensure that the motion trails remain behind the subjectgiving a much more natural and dynamic sense of movement, widely used in creative photography with moving lights, cars, bicycles, etc.
Repeat flash mode
Some cameras include a mode of repeat flash This allows you to obtain multiple exposures with a single shot, without the need for an external studio flash. In this mode, three parameters are configured: the strength of each flash (as a fraction of the maximum power), the number of repetitions, and the frequency in Hz (how many times per second the flash will fire).
During a relatively long exposure (2 or 3 seconds, usually with a tripod), the flash It fires several times While the shutter remains open, a stroboscopic effect is created. In this way, it is possible to record, for example, a flower, an object, or a person in various positions within the frame, giving a sensation of sequential movement very striking.
Light: natural vs artificial and the role of flash
Ultimately, every photograph is writing with lightNatural light comes primarily from the sun, but also from phenomena such as fire, lightning, or the bioluminescence of some living organisms. It has clear advantages: it is free, available daily, and is usually pleasing to the eye.
However, natural light is changeable, unpredictable, and often difficult to control. The intensity of the sun and its color temperature They change constantly, clouds can ruin or save a shot in seconds, and we don't always have enough resources (diffusers, filters, etc.) to tame them.
Artificial light, on the other hand, encompasses any source created by humans: flashes, bulbs, screens, LED panelsetc. Its great advantage is that we can design exactly the lighting environment we want, at the time we want, even recreating a sunny midday in the middle of the night if we have the right equipment.
The downside is that it usually involves economic costs and a certain degree of technical complexityWhether using a built-in flash, an external flash, or a sophisticated studio setup, it's essential to understand how to measure light, combine it with ambient light, and use it creatively to achieve the desired result.
Correct exposure and exposure triangle
Every scene is illuminated by a light that falls on the objects and a light that those objects reflect. reflect backThe camera's internal light meter measures reflected light, which can lead to errors depending on the color and brightness of the scene. For a more reliable reading of the light actually reaching a specific point (for example, a model's face), it's ideal to use a handheld exposure meter that measures the incident light.
Another essential tool for controlling exposure is the histogramThis chart shows how shadows, midtones, and highlights are distributed in the image. Learning to interpret this chart is key to avoiding overexposed or blown-out photos, and is especially useful when working with flash and wanting to ensure that neither the subject nor the background goes out of range.
Light control in photography is achieved through the famous exposure triangleISO, aperture, and shutter speed. Changing one of these parameters requires compensating with one of the other two to maintain the same total amount of light, which is known as the reciprocity law.
For example, if we switch from f/16 to f/4 to increase background blur, we've added 4 stops of light. If we're already at the minimum ISO (100 on most cameras), the only way to maintain the correct exposure will be shorten the shutter speed in 4 steps (for example, from 1/125s to 1/2000s). Mastering these relationships is vital when combining natural light and flash, because a change in shutter speed will primarily affect ambient light, while flash power is controlled independently.
Do I need an external flash if I already have a built-in flash or screen flash?
Before rushing out to buy lighting equipment, it's worth asking yourself what are you going to use it forIf your main focus is landscapes, travel, or nature photography at long distances, an external flash might not be a priority. However, if you're going to be covering events, taking indoor portraits, or need carefully planned lighting setups, a handheld flash is a very worthwhile investment.
Most entry-level cameras come with a built-in flash It serves as an introduction to the world of flash, but quickly falls short in power, control, and light quality. Even so, it's highly recommended to use it extensively and practice with it before moving on to a more advanced external flash, as it will help you better understand how light behaves.
Types of flash and main uses
In photography we can distinguish several types of flash with very specific characteristics and uses, from the tiny built-in flash to the powerful studio flashes, including ring flashes and the classic speedlite.
Built-in or camera flash
It's the small flash that pops up like a "tab" on many DSLRs and entry-level cameras. Its effective range is usually between 2 and 5 metersAnd because it is fixed above the camera, the light always comes from the axis of the lens, causing flat and unflattering shadows.
Furthermore, it is usually powered by the camera's own battery, so accelerates consumptionBecause of these limitations, many manufacturers are abandoning the built-in flash in favor of better performance at high ISOs, allowing photography in low light conditions without needing to use the flash.
Ring flash or macro
The ring flash mounts around the lens and is primarily intended for macro photographyIt illuminates very close subjects with a uniform light and without harsh shadows. It is ideal for flowers, insects, or small objects, and can also be used in portraiture to achieve very even light and that characteristic circular reflection in the eyes.
The risk in portraiture is that the image may appear excessively flat if it is not complemented with other light sources or contrasts, since some of the volume modeling produced by soft shadows is lost.
Handheld flash or speedlite
The handheld flash, also known as speedliteExternal lighting is probably the most versatile option for making the leap to quality external lighting. They are more powerful than integrated lights, and their power is described by the... guide number (NG)The larger it is, the greater the range and lighting capacity of the flash.
It's best to choose one with a reasonable GN (no less than 30 is recommended) and, if possible, from the same brand as your camera to ensure maximum compatibility with automatic and TTL modes. These flashes allow you to work in both TTL mode (the flash calculates the appropriate power based on the measurement it takes "through the lens") as in Manual modewhere we adjust the power ourselves according to the scene.
Mounted on the camera's hot shoe, the speedlite is perfect for events or situations where there isn't time to set up complex lighting setups. Thanks to its tilting head, you can bounce the light off ceilings or walls to ensure it reaches the subject in a well-lit and balanced way. softer and more enveloping to the subject, creating a much more pleasant environment than the direct frontal flash.
The real magic happens when we take it out of the camera and use it as remote flash (strobist)With a wireless trigger on the hot shoe and a receiver on the flash, we place it on a light stand with its ball head and light modifier (umbrella, softbox, etc.) and we have a small portable studio that we can expand by adding more synchronized units.
Studio flash
Studio flashes are designed for indoor use and offer much more power than handheld lights, in addition to a wide variety of accessories for shaping the light (large softboxes, beauty dishes, snoots, etc.). They are usually connected to the electrical grid through generators, which limits mobility but allows for long sessions with very short recycle times.
For someone who is just starting out or who simply wants to supplement the built-in flash or the front-facing flash on their mobile phone screen, a complete studio set is usually excessive in size and costHowever, understanding how they work helps to apply the same principles of direction and light quality in more modest setups.
Basic flash lighting schemes
Regardless of whether the light comes from a studio flash, an off-camera speedlite, or even the mobile phone screen turned into front flashThe classic lighting schemes remain the same and affect the volume, texture, and atmosphere of the photo.
Front lighting, for example, when the source is positioned directly in front of the camera, produces few shadows, reduces texture, and can result in a flat image. This is the typical setup for the built-in flash or screen flash in a selfie.
Side lighting, positioned at approximately 90º to the subject, highlights volumes and creates more dramatic contrasts between light and shadow. This type of lighting RembrandtWith the light source at about 45º, it creates a triangle of light on the shaded cheek and adds depth and character to the portrait.
There are also schemes such as the overhead light (from above), which creates marked vertical shadows; the nadir light (from below), unnatural and more typical of special effects or horror; or the backlightingwhere the light source is positioned behind the subject to isolate them from the background. In this latter case, another front light (whether flash, screen, or reflector) is often needed to fill in the face.
With all of the above in mind, effectively using the built-in front-facing flash means treating it as just another artificial light source, with its advantages (always available, very close to the face, software-controlled) and limitations (almost always frontal, power limited by maximum brightness, reliance on proper use of AE and AWB). Making the most of this tool requires understanding how to coordinate the interface (white balance, maximum brightness), the camera's logic (AE modes, pre-capture, callbacks), and the basic principles of lighting and exposure that also apply to the built-in flash and more advanced external flashes. Share the information and help others learn about the topic.