Skip to content

Commit ea7e6f1

Browse files
committed
Adding an application class to hold the OpenCV results for other activities to access, fixes cesine#14
1 parent 4256bc9 commit ea7e6f1

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

android/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323

2424
<application
25+
android:name="AndroidOpenCVforHackathonsApp"
2526
android:icon="@drawable/ic_launcher"
2627
android:label="@string/app_name" >
2728
<activity
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package com.androidmontreal.opencv;
2+
3+
import android.app.Application;
4+
5+
public class AndroidOpenCVforHackathonsApp extends Application {
6+
public String lastMessage;
7+
8+
@Override
9+
public void onCreate() {
10+
// TODO Auto-generated method stub
11+
super.onCreate();
12+
lastMessage="No message";
13+
}
14+
15+
public String getLastMessage(){
16+
return this.lastMessage;
17+
}
18+
public void setLastMessage( String lastMessage){
19+
this.lastMessage = lastMessage;
20+
}
21+
}

0 commit comments

Comments
 (0)