Project

General

Profile

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

examples / src / main / java / org / distorted / examples / sink / SinkActivity.java @ 5068fa06

1

    
2
package org.distorted.examples.sink;
3

    
4
import org.distorted.library.Distorted;
5

    
6
import android.app.Activity;
7
import android.os.Bundle;
8

    
9
///////////////////////////////////////////////////////////////////////////////////////////////////
10

    
11
public class SinkActivity extends Activity 
12
{
13
    private SinkSurfaceView mView;
14

    
15
///////////////////////////////////////////////////////////////////////////////////////////////////
16
    
17
    @Override
18
    protected void onCreate(Bundle icicle) 
19
      {
20
      super.onCreate(icicle);
21
      mView = new SinkSurfaceView(this);
22
      setContentView(mView);
23
      }
24

    
25
///////////////////////////////////////////////////////////////////////////////////////////////////
26
    
27
    @Override
28
    protected void onPause() 
29
      {
30
      mView.onPause();  
31
      super.onPause();
32
      }
33

    
34
///////////////////////////////////////////////////////////////////////////////////////////////////
35
    
36
    @Override
37
    protected void onResume() 
38
      {
39
      super.onResume();
40
      mView.onResume();
41
      }
42
 
43
///////////////////////////////////////////////////////////////////////////////////////////////////
44
    
45
    @Override
46
    protected void onDestroy() 
47
      {
48
      Distorted.onDestroy();  
49
      super.onDestroy();
50
      }    
51
}
(1-1/3)