mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
Updated Android (markdown)
parent
36af6c7583
commit
2065508340
22
Android.md
22
Android.md
@ -134,3 +134,25 @@ public class EbitenGLSurfaceView extends GLSurfaceView {
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Note that `Seq.setContext` must be called when the activity is created.
|
||||
|
||||
```java
|
||||
// ...
|
||||
|
||||
import go.Seq;
|
||||
|
||||
public class MainActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_main);
|
||||
Seq.setContext(getApplicationContext());
|
||||
}
|
||||
|
||||
// ...
|
||||
|
||||
}
|
||||
```
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user