0% found this document useful (0 votes)
9 views1 page

Android Canvas Drawing Example

The document contains a Java class for an Android application, specifically the MainActivity2 class. It initializes a custom canvas object and retrieves an integer array from the intent's extras. The canvas is then set as the content view for the activity.

Uploaded by

ortega21pcvgjo
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Android Canvas Drawing Example

The document contains a Java class for an Android application, specifically the MainActivity2 class. It initializes a custom canvas object and retrieves an integer array from the intent's extras. The canvas is then set as the content view for the activity.

Uploaded by

ortega21pcvgjo
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

//Main 2

package [Link];

import static [Link];

import [Link];
import [Link];
import [Link];

import [Link];

public class MainActivity2 extends AppCompatActivity {


lienzo micanvas;
Bundle recibir;
@Override
protected void onCreate(Bundle savedInstanceState) {
[Link](savedInstanceState);
recibir = getIntent().getExtras();
[Link] = [Link]("key");
micanvas = new lienzo(this);
setContentView(micanvas);

}
}

You might also like