Project

General

Profile

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

examples / src / main / java / org / distorted / examples / aroundtheworld / AroundTheWorldActivity.java @ 2f20ae3a

1
///////////////////////////////////////////////////////////////////////////////////////////////////
2
// Copyright 2016 Leszek Koltunski                                                               //
3
//                                                                                               //
4
// This file is part of Distorted.                                                               //
5
//                                                                                               //
6
// Distorted is free software: you can redistribute it and/or modify                             //
7
// it under the terms of the GNU General Public License as published by                          //
8
// the Free Software Foundation, either version 2 of the License, or                             //
9
// (at your option) any later version.                                                           //
10
//                                                                                               //
11
// Distorted is distributed in the hope that it will be useful,                                  //
12
// but WITHOUT ANY WARRANTY; without even the implied warranty of                                //
13
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                 //
14
// GNU General Public License for more details.                                                  //
15
//                                                                                               //
16
// You should have received a copy of the GNU General Public License                             //
17
// along with Distorted.  If not, see <http://www.gnu.org/licenses/>.                            //
18
///////////////////////////////////////////////////////////////////////////////////////////////////
19

    
20
package org.distorted.examples.aroundtheworld;
21

    
22
import android.app.Activity;
23
import android.os.Bundle;
24

    
25
import org.distorted.examples.R;
26
import org.distorted.library.Distorted;
27

    
28
///////////////////////////////////////////////////////////////////////////////////////////////////
29

    
30
public class AroundTheWorldActivity extends Activity
31
{
32
///////////////////////////////////////////////////////////////////////////////////////////////////
33
    
34
    @Override
35
    protected void onCreate(Bundle icicle) 
36
      {
37
      super.onCreate(icicle);
38
      setContentView(R.layout.aroundtheworldlayout);
39

    
40
      AroundTheWorldSurfaceView       view = (AroundTheWorldSurfaceView)       this.findViewById(R.id.aroundTheWorldSurfaceView);
41
      AroundTheWorldSurfaceViewPicker pick = (AroundTheWorldSurfaceViewPicker) this.findViewById(R.id.aroundTheWorldSurfaceViewPicker);
42

    
43
      pick.setEffectsManager(view.getManager());
44
      }
45

    
46
///////////////////////////////////////////////////////////////////////////////////////////////////
47
    
48
    @Override
49
    protected void onPause() 
50
      {
51
      AroundTheWorldSurfaceView view = (AroundTheWorldSurfaceView) this.findViewById(R.id.aroundTheWorldSurfaceView);
52
      view.onPause();
53

    
54
      super.onPause();
55
      }
56

    
57
///////////////////////////////////////////////////////////////////////////////////////////////////
58
    
59
    @Override
60
    protected void onResume() 
61
      {
62
      super.onResume();
63

    
64
      AroundTheWorldSurfaceView view = (AroundTheWorldSurfaceView) this.findViewById(R.id.aroundTheWorldSurfaceView);
65
      view.onResume();
66
      }
67
 
68
///////////////////////////////////////////////////////////////////////////////////////////////////
69
    
70
    @Override
71
    protected void onDestroy() 
72
      {
73
      Distorted.onDestroy();  
74
      super.onDestroy();
75
      }
76
}
(1-1/6)