---
title: "Is it possible to use or add a fragment without using a user interface?"  
description: "Is it possible to use or add a fragment without using a user interface?"  
author: "Linnea Ellery"  
published: 2018-01-10  
canonical: https://answers.mindstick.com/qa/32832/is-it-possible-to-use-or-add-a-fragment-without-using-a-user-interface  
category: "technology"  
tags: ["android"]  
reading_time: 1 minute  

---

# Is it possible to use or add a fragment without using a user interface?

Is it possible to use or [add](https://yourviews.mindstick.com/story/4599/8-skills-to-add-to-your-resume-for-career-growth) a [fragment](https://www.mindstick.com/forum/34147/what-is-fragment-life-cycle-in-android) without using a [user interface](https://www.mindstick.com/blog/302016/what-is-user-interface-and-what-are-its-benefits)?

## Answers

### Answer by Prateek sharma

**yes,** it is possible to add fragment without a [user](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server) [interface](https://www.mindstick.com/articles/1731/interface-in-java). This can be done when the user wants to create a background behaviour for an activity. you can do this by simply using the method **add(Fragment, string)** from an activity.


---

Original Source: https://answers.mindstick.com/qa/32832/is-it-possible-to-use-or-add-a-fragment-without-using-a-user-interface

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
