From ac9901e4087674deb6b18706b888a4c964226620 Mon Sep 17 00:00:00 2001 From: Aniruddhkulkarni <88792744+Aniruddhkulkarni@users.noreply.github.com> Date: Fri, 13 Aug 2021 21:07:50 +0530 Subject: [PATCH 1/2] Update MainActivity.java --- .../ms/appcenter/sampleapp/android/MainActivity.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/ms/appcenter/sampleapp/android/MainActivity.java b/app/src/main/java/ms/appcenter/sampleapp/android/MainActivity.java index eb6fb533..f4dbc2a9 100644 --- a/app/src/main/java/ms/appcenter/sampleapp/android/MainActivity.java +++ b/app/src/main/java/ms/appcenter/sampleapp/android/MainActivity.java @@ -32,10 +32,12 @@ public class MainActivity extends AppCompatActivity { new PushActivity() }; - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_root); + + @Override +protected void onCreate(Bundle savedInstanceState) { + AppCenter.start(getApplication(), "c7f1e2c4-d70e-49cb-9c85-13b0ee3ca0ad", + Analytics.class, Crashes.class); + // Initialize SDK if (!BuildConfig.APPCENTER_APP_SECRET.equals("")) { @@ -98,4 +100,4 @@ public CharSequence getPageTitle(@IntRange(from = 0, to = 6) final int position) return views[position].getClass().getSimpleName().trim().replace("Activity", ""); } } -} \ No newline at end of file +} From 8df03561e44d34d8e0ab46034acb3f45ac8595f4 Mon Sep 17 00:00:00 2001 From: Aniruddhkulkarni <88792744+Aniruddhkulkarni@users.noreply.github.com> Date: Tue, 17 Aug 2021 14:51:24 +0530 Subject: [PATCH 2/2] Update MainActivity.java --- .../main/java/ms/appcenter/sampleapp/android/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/ms/appcenter/sampleapp/android/MainActivity.java b/app/src/main/java/ms/appcenter/sampleapp/android/MainActivity.java index f4dbc2a9..510f0257 100644 --- a/app/src/main/java/ms/appcenter/sampleapp/android/MainActivity.java +++ b/app/src/main/java/ms/appcenter/sampleapp/android/MainActivity.java @@ -35,7 +35,7 @@ public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { - AppCenter.start(getApplication(), "c7f1e2c4-d70e-49cb-9c85-13b0ee3ca0ad", + AppCenter.start(getApplication(), "df99f3f0-3f28-4e2c-b9ee-379290fa7f18", Analytics.class, Crashes.class);