android
51 Topics- 55Views0likes2Comments
MAUI APP does not run, android-API34 issue ?
Hi everyone, i'm facing a problem using dotnet 8.0 and Maui. I read that an android api is automatically associated to a dotnet version. So for .Net 8.0 the android api is 34.0 I installed the Maui workload and created a new project, then i ran(build) it without any modifications and all the necessay packages installed without issues But when i go to the generated bin folder and run windows app it does'nt even show up, For android part i installed the signed-apk in virtual device and here is what i get : I found somewhere that this was the api 34 issue, i tried to install .Net 7.0-API 33 and .Net 9.0-API 35.0 but facing the same problem. What should i do now... please help me THNKS!!!395Views0likes2CommentsMaui app with multiple Android activities
Really dumb question: How do I create a dot net Maui app with multiple Android activities? I want to create an SMS app, and such an app requires an activity to handle an intent to compose a new sms message. I would like that activity to launch the Maui page used to compose SMS messages, and maybe change the shell navigation tree so that that page is considered the root for that activity. I can't seem to find a simplr description go how to do this.178Views0likes0Commentsbinding property shadows net maui android
Buongiorno a tutti, scusate ma sono molto molto inesperto e non so nemmeno come fare le domande giuste. Volevo chiedere se esiste la possibilità di creare un binding per le proprietà ombra di un controllo (ad esempio un pulsante) Qualcosa che potrebbe assomigliare a questo. Grazie a tutti. Classe: public class Shadows { public string Brush { get; set; } = "Black"; public string Offset { get; set; } = "50,50"; public string Radius { get; set; } = "10"; public string Opacity { get; set; } = "0.7"; } Codice XAML: <Button x:Name="CounterBtn" Text="Click me" SemanticProperties.Hint="Counts the number of times you click" Clicked="OnCounterClicked" BorderColor="DarkBlue" BorderWidth="1" HorizontalOptions="Fill" > <Button.Shadow> <Shadow Brush="{Binding ControlShadow.Brush}" Offset="{Binding ControlShadow.Offset}" Radius="{Binding ControlShadow.Radius}" Opacity="{Binding ControlShadow.Opacity}" /> </Button.Shadow> </Button> Pagina principale: public partial class MainPage : ContentPage { int count = 0; public Shadows ControlShadow { get; set; } public MainPage() { InitializeComponent(); ControlShadow = new Shadows(); BindingContext = this; } } Non funziona come l'ho pubblicato. Grazie molto.134Views0likes0CommentsUnique Device Identifier in MAUI
I am looking for a way to get a device identifier in NET MAUI that is cross platform compliant between Android/iOS/Windows. I originally had this code working in Xamarin Forms with the following: Android Context context = Application.Context; id = Settings.Secure.GetString(context.ContentResolver, Settings.Secure.AndroidId); iOS UIDevice.CurrentDevice.IdentifierForVendor.AsString().Replace("-", ""); Is there anything currently or planned in the future for use in NET MAUI. Thanks In Advance, Stuart Ferguson11KViews3likes1Comment.NET8 MAUI Image "gif" animation Debug vs. Release
Has anyone figured out how to get a MAUI Image "gif" animation to work in Release mode? Using Visual Studio 2022's Android Device Manager, Emulator set to Tablet M-DPI 10.1in - API34, Android 14.0 - API 34, the MAUI Image animation in Debug mode works every single time! Awesome! However, when I switch the Build to Release mode and Deploy to the Emulator, the application responds just fine but I see a Image control presenting a FROZEN "gif" and I don't know how to solve the problem. I experience the same FROZEN "gif" problem if the Emulator is running Pixel 6 Pro Android 14 - API 34. Using the Debug build, Pixel 6 Pro Android 14 - API 34 Emulator shows the Image control animating the "gif" perfectly! However, switching Build to Release mode and Deploying to the Pixel 6 Pro Emulator, again I experience the application responding just fine, but the Image control presents a FROZEN "gif". Here's my XAML definition for my Image element: <Image x:Name="ClintHatGif" Source="clinteastwood.gif" IsAnimationPlaying="True" Aspect="AspectFit" VerticalOptions="Center" HeightRequest="180" /> When I select my Project and visit "Manage NuGet Packages" and select the "Updates" tab, no updates appear. So, I think I've got the latest. Maybe you know of a NuGet Package or a Build Release setting that solves the problem? I'm unsure how to proceed. Thanks for reading this post.370Views0likes0CommentsError when consuming a SOAP service in APP .Net Maui only with Android emulator
I developed a .NET MAUI application to consume a SOAP service. Testing this application on emulators on the same machine, connected to the SOAP provider via VPN, I am successful in the request when using the Windows Machine emulator and not successful when using the Android emulator. What am I doing wrong?441Views0likes0CommentsWebView download in .NET MAUI
Hi everyone, I'm Manuel. I need to create an application which downloads a file from web site. I used a WebViewer and allowed into AndroidManifest.xml external memory read and write. Everything works fine until I press the download button from the website: nothing happens. I simply defined a webview into my MainApp.xaml.cs file (because it must be dynamic) and added into my GridLayout. I tried to print external memory read/write permissions, but it says it's not allowed. Can anyone help me? I'm locked here from weeks and don't know how to solve. Thank you so much439Views0likes0Comments