Commit ab5cd59 1 parent 41aabbd commit ab5cd59 Copy full SHA for ab5cd59
File tree 3 files changed +22
-3
lines changed
java/com/nearit/ui_bindings_sample
3 files changed +22
-3
lines changed Original file line number Diff line number Diff line change 8
8
android : label =" @string/app_name"
9
9
android : roundIcon =" @mipmap/ic_launcher_round"
10
10
android : supportsRtl =" true"
11
- android : theme =" @style/AppTheme" >
11
+ android : theme =" @style/AppTheme"
12
+ android : name =" .MyApplication" >
12
13
<activity android : name =" com.nearit.ui_bindings_sample.MainActivity" >
13
14
<intent-filter >
14
15
<action android : name =" android.intent.action.MAIN" />
Original file line number Diff line number Diff line change 1
1
package com .nearit .ui_bindings_sample ;
2
2
3
- import android .support .v7 .app .AppCompatActivity ;
4
3
import android .os .Bundle ;
4
+ import android .support .v7 .app .AppCompatActivity ;
5
5
6
6
public class MainActivity extends AppCompatActivity {
7
7
8
8
@ Override
9
9
protected void onCreate (Bundle savedInstanceState ) {
10
10
super .onCreate (savedInstanceState );
11
11
setContentView (R .layout .activity_main );
12
-
13
12
}
14
13
}
Original file line number Diff line number Diff line change
1
+ package com .nearit .ui_bindings_sample ;
2
+
3
+ import android .app .Application ;
4
+
5
+ import com .nearit .ui_bindings .NearITUIBindings ;
6
+
7
+ import it .near .sdk .NearItManager ;
8
+
9
+ public class MyApplication extends Application {
10
+
11
+ @ Override
12
+ public void onCreate () {
13
+ super .onCreate ();
14
+
15
+ NearItManager .init (this , getString (R .string .near_api_key ));
16
+
17
+ NearITUIBindings .init (this );
18
+ }
19
+ }
You can’t perform that action at this time.
0 commit comments