# Multiple "activities" from PDE

**URL:** https://discourse.processing.org/t/multiple-activities-from-pde/6328
**Category:** Processing for Android
**Created:** [December 5, 2018, 2:36pm UTC](https://discourse.processing.org/t/multiple-activities-from-pde/6328 "2018-12-05T14:36:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![derekkinsman](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/derekkinsman/32/2655_2.png) [@derekkinsman](https://discourse.processing.org/u/derekkinsman)
#### Post date: [December 5, 2018, 2:36pm UTC](https://discourse.processing.org/t/multiple-activities-from-pde/6328/1 "2018-12-05T14:36:44Z")

</div>

I suspect I already know the answer to this (that being “no, use android studio”), but was just wondering if the PDE can handle multiple activities.

Basically I have three or four different screens (data isn’t being sent between screens/activities), all of which can be done completely in Processing. But I feel like to be able to tie them together I need to move up to AS.

Thanks in advance,  
newb.

---

<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: [December 5, 2018, 6:34pm UTC](https://discourse.processing.org/t/multiple-activities-from-pde/6328/2 "2018-12-05T18:34:46Z")

</div>

@derekkinsmann===  
short answer: use AS, forget P5  
not so short: you can create an activity but you cannot use P5 with it and have to code with android native  
another one: you can also create another fragment and use P5 with it…

---

<div class="post-metadata">

### Author: ![derekkinsman](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/derekkinsman/32/2655_2.png) [@derekkinsman](https://discourse.processing.org/u/derekkinsman)
#### Post date: [December 5, 2018, 7:29pm UTC](https://discourse.processing.org/t/multiple-activities-from-pde/6328/3 "2018-12-05T19:29:48Z")

</div>

That’s what I assumed. Thanks for the confirmation, @akenaton.

---

<div class="post-metadata">

### Author: ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)
#### Post date: [August 29, 2019, 10:50pm UTC](https://discourse.processing.org/t/multiple-activities-from-pde/6328/5 "2019-08-29T22:50:21Z")

</div>

Hi.  
What do you have on your screen?  
I use views like textview, listview, seekbar, button, webview etc programmaticaly. I set them in onStart(), make them invisible, and call them back with runnables. You could set up a canvas to paint on, but why would you do that? To have different screens I use boolean flags in “if blocks” within the draw() function and switch them on and off with buttons.
