# Porting sketch to Android Studio - Problem with request permission

**URL:** https://discourse.processing.org/t/porting-sketch-to-android-studio-problem-with-request-permission/3454
**Category:** Processing for Android
**Created:** [September 11, 2018, 9:18am UTC](https://discourse.processing.org/t/porting-sketch-to-android-studio-problem-with-request-permission/3454 "2018-09-11T09:18:05Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![sensn](https://avatars.discourse-cdn.com/v4/letter/s/848f3c/32.png) [@sensn](https://discourse.processing.org/u/sensn)
#### Post date: [September 11, 2018, 10:48am UTC](https://discourse.processing.org/t/porting-sketch-to-android-studio-problem-with-request-permission/3454/5 "2018-09-11T10:48:34Z")

</div>

OK,

act.requestPermissions( new String[]{Manifest.permission.WRITE\_EXTERNAL\_STORAGE}, 10);

works as far as it is now asking for permission. still no file written by Table class.

Hm, maybe i got another mistake in my code. testing…

thanks a lot

act = this.getActivity(); I missed that one.

---

_[View the full topic](https://discourse.processing.org/t/porting-sketch-to-android-studio-problem-with-request-permission/3454)._
