Exception or error: I’m working on a project which receive notification from GCM server. I’ve got the registration ID from GCM server and i send it to my server application which save it in the database. My device receive the message but when I try to send another one, the precedent is replaced. I know …
Tag: c++c++
c# – Making a nav bar disappear in Xamarin.Forms-ThrowExceptions
Exception or error: I’m completely new to Xamarin.Forms and C#, and I’m wondering how I can present a stack of Pages within a NavigationPage, without showing the navigation bar. Here’s my code so far in App.cs: using Xamarin.Forms; namespace Test { public class App { public static Page GetMainPage () { return new NavigationPage (new …
c# – AndroidGameWindow.SetDisplayOrientation NullReferenceException-ThrowExceptions
Exception or error: I developed a game for Android using MonoGame & Xamarin. I incorporated BugSense into it and quickly started getting the following exception stack trace: System.NullReferenceException: Object reference not set to an instance of an object at Microsoft.Xna.Framework.AndroidGameWindow.SetDisplayOrientation (Microsoft.Xna.Framework.DisplayOrientation) <0x001c4> at Microsoft.Xna.Framework.AndroidGameWindow.SetOrientation (Microsoft.Xna.Framework.DisplayOrientation,bool) <0x00097> at Microsoft.Xna.Framework.OrientationListener.OnOrientationChanged (int) <0x001c7> at Android.Views.OrientationEventListener.n_OnOrientationChanged_I (intptr,intptr,int) <0x0003f> at …
c# – Xamarin vs native iOS and Android-ThrowExceptions
Exception or error: Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago. Here I need some developer opinion. I tested xamarin studio to build android and iOS app, …
c# – Prevent Orientation change in Xamarin Android Application-ThrowExceptions
Exception or error: Is it possible to prevent the orientation of an Android application from changing ? I have an application that previews the phone camera and I would like the orientation not to change. I have tried adding this to the manifest but it did not make a difference <application android:label=”TextureViewCameraStream” android:hardwareAccelerated=”true”> </application> <activity …
c# – Get current Activity – Xamarin Android-ThrowExceptions
Exception or error: I am developing an portable App for Android and iOS. My current function is taking a Screenshot and use that image in the code. Therefor I have an Interface in the portable library. public interface IFileSystemService { string GetAppDataFolder(); } I am taking the Screenshot also in the portable Library with the …
c# – Xamarin Android linking cannot access file-ThrowExceptions
Exception or error: I have a Xamarin Android project that I am trying to use Sdk and User Assembly linking with. If I set the Android project to Sdk Assembly Linking only, the APK is created and deployed successfully and works. However, when I set Sdk and User Assembly linking, with no other changes, I …
c# – Keep wifi active in foreground service after phone goes to sleep-ThrowExceptions
Exception or error: I want to receive packets from wifi when my phone is locked. The problem is that when I lock my screen, my foreground service stops receiving packets. I’m using Foreground Service like this: public override StartCommandResult OnStartCommand(Intent intent, StartCommandFlags flags, int startId) { var notification = new Notification.Builder(this) .SetContentTitle(Resources.GetString(Resource.String.app_name)) .SetContentText(Resources.GetString(Resource.String.notification_text)) .SetSmallIcon(Resource.Drawable.ic_stat_name) .SetContentIntent(BuildIntentToShowMainActivity()) …