# ApplicationErrorReport.RunningServiceInfo

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# RunningServiceInfo

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/app/ApplicationErrorReport.RunningServiceInfo "View this page in Java")  

```
open class RunningServiceInfo
```

|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                                 ||
| ↳ | [android.app.ApplicationErrorReport.RunningServiceInfo](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.RunningServiceInfo#) |

Describes a running service report.

## Summary

|                                                                                                                                                         Public constructors                                                                                                                                                          ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [RunningServiceInfo](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.RunningServiceInfo#RunningServiceInfo())`()` Create an uninitialized instance of RunningServiceInfo.                                                                                                                       |
| [RunningServiceInfo](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.RunningServiceInfo#RunningServiceInfo(android.os.Parcel))`(`in:` `[Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#)!`)` Create an instance of RunningServiceInfo initialized from a Parcel. |

|                                                                                                                                                                                                                                        Public methods                                                                                                                                                                                                                                        ||
|----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [dump](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.RunningServiceInfo#dump(android.util.Printer,%20kotlin.String))`(`pw:` `[Printer](https://developer.android.com/reference/kotlin/android/util/Printer.html#)!`, `prefix:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Dump a BatteryInfo instance to a Printer.         |
| open[Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [writeToParcel](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.RunningServiceInfo#writeToParcel(android.os.Parcel,%20kotlin.Int))`(`dest:` `[Parcel](https://developer.android.com/reference/kotlin/android/os/Parcel.html#)!`, `flags:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Save a RunningServiceInfo instance to a parcel. |

|                                                                                                                                            Properties                                                                                                                                            ||
|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)      | [durationMillis](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.RunningServiceInfo#durationMillis:kotlin.Long) Duration in milliseconds that the service has been running. |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [serviceDetails](https://developer.android.com/reference/kotlin/android/app/ApplicationErrorReport.RunningServiceInfo#serviceDetails:kotlin.String) Dump of debug information about the service.              |

## Public constructors

### RunningServiceInfo

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
RunningServiceInfo()
```

Create an uninitialized instance of RunningServiceInfo.  

### RunningServiceInfo

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
RunningServiceInfo(in: Parcel!)
```

Create an instance of RunningServiceInfo initialized from a Parcel.

## Public methods

### dump

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun dump(
    pw: Printer!, 
    prefix: String!
): Unit
```

Dump a BatteryInfo instance to a Printer.  

### writeToParcel

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun writeToParcel(
    dest: Parcel!, 
    flags: Int
): Unit
```

Save a RunningServiceInfo instance to a parcel.

## Properties

### durationMillis

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var durationMillis: Long
```

Duration in milliseconds that the service has been running.  

### serviceDetails

Added in[API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var serviceDetails: String!
```

Dump of debug information about the service.