Logo

dev-resources.site

for different kinds of informations.

Single vs. Multi Page Android App

Published at
11/15/2022
Categories
xamarinforms
Author
steve_groner
Categories
1 categories in total
xamarinforms
open
Author
12 person written this
steve_groner
open
Single vs. Multi Page Android App

I wrote an App that was a single page using MVVM and I was just using a frame to hide/unhide areas. This is a location tracking app. When it was a single page when minimized or the screen was locked tracking and everything worked perfect.

I then found some issues with modifying map features when the frame it was in wasnt visible so I needed to change it to a multipage app.

For some reason now, when I go from Page 1 to the actual map page the map gets displayed, but as soon as the screen locks or the app is moved to background, the OnDisappearing event on the map page is fired.

I can stop it by changing the MainActivity from inheriting global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity to inheriting FormsApplicationActivity but that seems to create additional issues

I can also stop it by loading the map page (page 2) as a PushModalAsync page. This way caused the app to crash alot.

changing the page inheritance works better, but it seems like it cannot fire messages using message center that I have in the onAppearing event of the mapPage.xaml.cs file.

Any thoughts on how to keep the app running, and updating in the background in a multi page environment?

xamarinforms Article's
30 articles in total
Favicon
hi , this isan exampel post
Favicon
Por onde anda o WPF?
Favicon
Modern Home, Filter, and Details Screens for .NET MAUI + MVVM 🎨
Favicon
Modern Inbox and Chat Screens for .NET MAUI + MVVM 🚀
Favicon
Modern Startup Screens for .NET MAUI + MVVM Architecture
Favicon
UI components for MAUI apps
Favicon
De Xamarin.Forms a .NET MAUI: Uma Evolução Que Transcende Limites
Favicon
Building Multi-Page Applications with Xamarin Forms - Tips and Tricks
Favicon
MATADORBET FAST GİRİŞ
Favicon
Is it possible to reference Xamarin Forms from Win UI 3 project?
Favicon
Desvendando o Futuro do Desenvolvimento de Aplicativos com .NET MAUI
Favicon
Migrating UWP to Windows App SDK (WinUI 3) with Xamarin Forms Integration
Favicon
.NET MAUI BorderLessEntry for all platforms
Favicon
Understanding Cross-Platform Development with Xamarin
Favicon
C# Expired Package
Favicon
How to verify OTP in Android without SMS read permission using Xamarin.Forms?
Favicon
I’ve had enough. Bye, Xamarin!
Favicon
بهترین آموزش .NET MAUI فارسی
Favicon
معرفی وب سایت برنامه نویسی کدسل
Favicon
Demystifying MAUI Localization: A Comprehensive Guide for Developers 🌐📚
Favicon
🔒 Introducing Serial Log and Metro Log: Simplifying Your Logging Experience In .NET MAUI! 📝🚇
Favicon
How to Build Mobile Check Capture App with Xamarin.Forms and Dynamsoft Document SDK
Favicon
Incredible App Themes for Xamarin.Forms
Favicon
10 Benefits of Using Xamarin App Development
Favicon
Send emails, with html template, from Xamarin.Forms
Favicon
Just launched my mental health app
Favicon
Migrando Mitawi a .NET MAUI
Favicon
How to Build Mobile Document Scanning App with Xamarin.Forms for Android and iOS
Favicon
Single vs. Multi Page Android App
Favicon
Jenkins with Xamarin.Forms

Featured ones: