> ## Documentation Index
> Fetch the complete documentation index at: https://devzone.nayax.com/llms.txt
> Use this file to discover all available pages before exploring further.

# TC Service

TC Service allows you to use the Agamento app as a background service. If you want to run your own Android app on the device and perform transactions using Agamento, you can configure Agamento to operate as a TC Service.

Every time your app initiates a transaction, Agamento will be triggered and come into action. The communication between the apps is based on the TweezerComm protocol.

<Frame>
  <img src="https://mintcdn.com/nayax-44d6e37b/gp-udlFbAMEECcYg/images/docs/tc-service/image1.png?fit=max&auto=format&n=gp-udlFbAMEECcYg&q=85&s=cd8983dcd0ab1a9ed72f807353dd92be" width="1126" height="308" data-path="images/docs/tc-service/image1.png" />
</Frame>

## Demo APK

The APK is a demo tool for using the TC service. It includes a basic implementation of how to work with our Agamento app as a service and send TweezerComm requests.

* [Demo .APK file](https://docs-engine.modularity.co.il/_static/TCServiceDemo.apk)

This will help you gain a better understanding of how it works, making it easier for you to implement it.

## Sample Code

Use the code sample below to understand how to integrate with our Agamento app as a service within your APK.

* [TC Service Implementation Sample Code](https://github.com/ModularityLtd/TcsDemo)

The only part you need to adjust in the code is the JSON fields that will be sent in the requests. For example, refer to the `doTransaction` Command function (located in `AgamentoMethods.java`). In that function, you will find where the fields and values for the JSON file are set.

For instance, `put(“currency”,CURRENCY)` is set based on the configured currency at the beginning of the code: `String CURRENCY = “376”`

<Frame>
  <img src="https://mintcdn.com/nayax-44d6e37b/gp-udlFbAMEECcYg/images/docs/tc-service/image2.gif?s=5da76840f010a4cc79e3c9f5bba8c0b6" width="568" height="796" data-path="images/docs/tc-service/image2.gif" />
</Frame>

<Note>
  **TweezerComm Commands**

  The TweezerComm commands should be based on the API and relevant to your specific payment service.
</Note>

## See Also

<Columns cols={2}>
  <Card icon="link" title="Get Started" href="/docs/integrate-pos-device/tweezercomm/tweezercomm-get-started" arrow />

  <Card icon="link" title="Transaction Methods" href="/docs/integrate-pos-device/tweezercomm/global-payment-methods/payment-services-methods-copy-1" arrow />
</Columns>
