# Android\_101: How to open a window

**URL:** <https://discourse.processing.org/t/android-101-how-to-open-a-window/27607>\
**Category:** Processing for Android\
**Created:** [February 5, 2021, 3:18pm UTC](https://discourse.processing.org/t/android-101-how-to-open-a-window/27607 "2021-02-05T15:18:18Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [February 5, 2021, 3:18pm UTC](https://discourse.processing.org/t/android-101-how-to-open-a-window/27607/1 "2021-02-05T15:18:18Z")

</div>

This basic demo should open a window on an Android device. Buttons will be added in a future demo. Reference: [https://processing.org/reference/](https://processing.org/reference/)

```auto
color BLUE = color(64,124,188);
    
void setup() {
  fullScreen();
  orientation(LANDSCAPE);
  background(BLUE);
}

void draw() {
  
}

```

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [February 8, 2021, 7:36pm UTC](https://discourse.processing.org/t/android-101-how-to-open-a-window/27607/2 "2021-02-08T19:36:38Z")

</div>

ok done …

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [February 9, 2021, 1:08am UTC](https://discourse.processing.org/t/android-101-how-to-open-a-window/27607/3 "2021-02-09T01:08:39Z")

</div>

@jafal  
Comment edited.

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [February 9, 2021, 1:10am UTC](https://discourse.processing.org/t/android-101-how-to-open-a-window/27607/4 "2021-02-09T01:10:56Z")

</div>

ok done …

---

<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:** [February 17, 2021, 3:52pm UTC](https://discourse.processing.org/t/android-101-how-to-open-a-window/27607/5 "2021-02-17T15:52:24Z")

</div>

@svan === and so what is the question?

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [February 17, 2021, 8:10pm UTC](https://discourse.processing.org/t/android-101-how-to-open-a-window/27607/6 "2021-02-17T20:10:24Z")

</div>

There is no question. It is a simple demo that shows how to open a window on an Android device. I was concerned that some may not know how to do this. I’m getting ready to post several more demos that illustrate basic code. This seems to be the primary list for Processing with Android mode and personally I prefer it over larger, more complicated ides. Therefore I’m willing to donate code and participate in discussions (which seem to be lessened with Noel’s departure).

---

<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:** [February 18, 2021, 6:30pm UTC](https://discourse.processing.org/t/android-101-how-to-open-a-window/27607/7 "2021-02-18T18:30:35Z")

</div>

@svan === ok but there are “basic” examples for android in the android P5 reference which people have to read and i think that we have here to answer questions concerning problems which are not solved by the existing doc; that s why i was absolutely convinced that the idea from Noel (A github repo for this kind of things) was and is an excellent one.

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [February 18, 2021, 9:54pm UTC](https://discourse.processing.org/t/android-101-how-to-open-a-window/27607/8 "2021-02-18T21:54:32Z")

</div>

1. I’m not sure everyone reads the P5 reference, but they might search the list.
2. I have demos that are far more complicated that I’m getting ready to post.
3. I agree that the code repository is a good idea. However, the url is not widely published and currently I don’t even know where it is located.
4. Who controls the repository and who decides what is posted there?
5. Is Noel still involved and actively maintaining it?
6. The list is for more than just asking questions in my opinion, but I’m certainly not going to post code if it’s not wanted.

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [February 18, 2021, 10:45pm UTC](https://discourse.processing.org/t/android-101-how-to-open-a-window/27607/9 "2021-02-18T22:45:12Z")

</div>

Hi @svan ,

Note that your code is not specific to Android but it’s a simple sketch structure that can also work on Processing Java.

The nice point about Processing and all the variants is that the API (the functions and how it works) is similar between Java, Python, JavaScript and Android of course. 😉

> [@svan](#):
>
> I’m not sure everyone reads the P5 reference

They should do so!! I think that the Processing website and The Coding Train’s video are the first links people look at when learning Processing and the forum comes after when they have issues 😁

I agree with @akenaton that a repository on GitHub is more adapted for this and you can create your own (and then share it on the forum) !
