# Just another HickUp, porting to AS

**URL:** https://discourse.processing.org/t/just-another-hickup-porting-to-as/11361
**Category:** Processing for Android
**Created:** [May 18, 2019, 4:27pm UTC](https://discourse.processing.org/t/just-another-hickup-porting-to-as/11361 "2019-05-18T16:27:01Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lve0200](https://avatars.discourse-cdn.com/v4/letter/l/aeb1de/32.png) [@lve0200](https://discourse.processing.org/u/lve0200)
#### Post date: [May 18, 2019, 4:27pm UTC](https://discourse.processing.org/t/just-another-hickup-porting-to-as/11361/1 "2019-05-18T16:27:01Z")

</div>

Hi,  
my App is organised in 10 tabs, which are in Processing logically seen as 1 big source file. I put the tab w/ setup() and draw() per cut&paste into the AS main activity, but what about all the other tabs? How can I import these “tabs” into AS.  
New WHAT? File, Java, Java Class, Module, Singleton …? and where in the hierarchy?

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/f/fb1adac2b43efa05c6d9576ebef49e88b5ab24c3.png)

AS seems also not being able to resolve the conversion functions, as following:

```auto
        if (select ==0) qnh = int(et);
        else VOR_freq = float(et);

```

I get the “Unexpected Token” and “Not a statement” error ; int and float are red underlined in all occurrences( and there are a lot).

Have a nice weekend  
hk

---

<div class="post-metadata">

### Author: ![akenaton](https://avatars.discourse-cdn.com/v4/letter/a/a88e4f/32.png) [@akenaton](https://discourse.processing.org/u/akenaton)
#### Post date: [May 19, 2019, 11:08am UTC](https://discourse.processing.org/t/just-another-hickup-porting-to-as/11361/2 "2019-05-19T11:08:03Z")

</div>

@lve0200 ===  
instead of cut/copy try to export your app from P5 to android, then import the result to AS (“import from existing code”)  
As for the other question that is normal:

```auto
if (select ==0) qnh = Integer.parseInt(et);
        else VOR_freq = Float.parseFloat(et);

```

---

<div class="post-metadata">

### Author: ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)
#### Post date: [May 20, 2019, 5:51am UTC](https://discourse.processing.org/t/just-another-hickup-porting-to-as/11361/3 "2019-05-20T05:51:47Z")

</div>

You can explore [this recent post](https://github.com/processing/processing-android/issues/530) that describes what akenaton said.

To get an insight of what Processing Android mode does to your sketches, you can explore [Lifecycle of a Processing sketch](https://github.com/processing/processing-android/wiki/Lifecycle-of-a-Processing-sketch) which you might already be aware of. For the folder structure, you can study the templates [here](https://github.com/codeanticode/processing-android-3.0-samples). Alternatively, after you export your Android sketch in processing, you can explore the structure of the generated “android” folder within your current sketch folder.

Kf
