Project

General

Profile

Download (1.26 KB) Statistics
| Branch: | Revision:

examples / src / main / java / org / distorted / examples / plainmonalisa / PlainMonaLisaActivity.java @ 862fcd79

1 862fcd79 Leszek Koltunski
package org.distorted.examples.plainmonalisa;
2
3
import org.distorted.library.Distorted;
4
5
import android.app.Activity;
6
import android.os.Bundle;
7
8
///////////////////////////////////////////////////////////////////////////////////////////////////
9
10
public class PlainMonaLisaActivity extends Activity
11
{
12
    private PlainMonaLisaSurfaceView mView;
13
14
///////////////////////////////////////////////////////////////////////////////////////////////////
15
    
16
    @Override
17
    protected void onCreate(Bundle icicle) 
18
      {
19
      super.onCreate(icicle);
20
      mView = new PlainMonaLisaSurfaceView(this);
21
      setContentView(mView);
22
      }
23
24
///////////////////////////////////////////////////////////////////////////////////////////////////
25
    
26
    @Override
27
    protected void onPause() 
28
      {
29
      mView.onPause();
30
      super.onPause();
31
      }
32
33
///////////////////////////////////////////////////////////////////////////////////////////////////
34
    
35
    @Override
36
    protected void onResume() 
37
      {
38
      super.onResume();
39
      mView.onResume();
40
      }
41
    
42
///////////////////////////////////////////////////////////////////////////////////////////////////
43
    
44
    @Override
45
    protected void onDestroy() 
46
      {
47
      Distorted.onDestroy();  
48
      super.onDestroy();
49
      }
50
    
51
}