# Exit App on Android

**URL:** <https://forums.fusetools.com/t/exit-app-on-android/7361>\
**Category:** How-to Discussions\
**Created:** [August 24, 2018, 3:16pm UTC](https://forums.fusetools.com/t/exit-app-on-android/7361 "2018-08-24T15:16:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrei997](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Andrei997](https://forums.fusetools.com/u/Andrei997)\
**Post date:** [August 24, 2018, 3:16pm UTC](https://forums.fusetools.com/t/exit-app-on-android/7361/1 "2018-08-24T15:16:20Z")

</div>

Hey there, I am looking to close the App on Android via UX or Javascript.  
I am aware of the fuse-homescreen possibility which unfortunately crashes on Android and I want to avoid.

Has anyone found an actual way to exit the Android App ? I have tried to create a .uno file with this method:

```
[Foreign(Language.Java)]
public static extern(Android) void ExitAppFinish()
@{
	android.app.Activity a = @(Activity.Package).@(Activity.Name).GetRootActivity();
	a.finish();
@}

```

But after many tries I have failed. Does anyone know how to make a UNO file with this and access it into Javascript ?

---

<div class="post-metadata">

**Author:** ![Matti\_Tihverainen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/matti_tihverainen/32/684_2.png) [@Matti\_Tihverainen](https://forums.fusetools.com/u/Matti_Tihverainen)\
**Post date:** [August 25, 2018, 11:35am UTC](https://forums.fusetools.com/t/exit-app-on-android/7361/2 "2018-08-25T11:35:42Z")

</div>

Hello! I haven’t had any issues with fuse-homescreen crashing. Does this happen on some particular device/version?

---

<div class="post-metadata">

**Author:** ![Andrei997](https://avatars.discourse-cdn.com/v4/letter/a/a8b319/32.png) [@Andrei997](https://forums.fusetools.com/u/Andrei997)\
**Post date:** [August 25, 2018, 11:54am UTC](https://forums.fusetools.com/t/exit-app-on-android/7361/3 "2018-08-25T11:54:55Z")

</div>

I figured it out, I had a problem with the fusepm package, after i un-installed it an re-installed it seems to work, though the package crashes the android simulator.
