Start MonoTouch / MonoDevelop debugger when launch app on device? - xamarin.ios

In MonoTouch, is there a way to automatically connect to debugger when I launch my app on device via device touch (vs. have debugger launch it for me)? I want to debug launch from push notification alert touch with app completely quit.

Currently this is not possible, and it is not planned for the future either.
Feel free to file an enhancement request if you wish though, explaining your use case: http://bugzilla.xamarin.com, we might decide otherwise one day.

Related

How to turn off windows alert notification sound everytime nodemon restarts

I am building a node application using nodemon to run the application. However, whenever i make changes to my code, windows alert sound (same sound as the battery low alert sound) keeps on beeping which is very annoying. I need your help to turn it off.
I am using windows 10 pro
The application involves usage of node fs function.

Android Studio "Run" not timeout only for pixel/nexus devices

I've been testing my app on several AVDs and only recently (after attempting to integrate Google's billing system), the "Run" window only shows the following:
11/24 16:31:18: Launching 'xxx' on Nexus 5X API 27.
App restart successful without requiring a re-install.
$ adb shell am start -n "xxxx.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Timed out waiting for process (xxx) to appear on Nexus_5X_API_27 [emulator-5554].
I've tested on Pixel 4, Pixel 3a and Nexus 5X (all these are with Play Store in them) and they all timed out. If i run the same app on other AVDs without Play Store, the Run window works fine.
Any idea how to fix this? I'm trying to troubleshoot the billing process for my app.
The solution for me was setting the Graphics option on the Android Virtual Device to Software instead of Automatic or Hardware.
I believe this was the solution because I am working on a windows machine that did not have a dedicated graphics card.
Note : Clone your device before adding it. Then you'll be able to edit it.

Is there any emulator for Amazon fire stick?

If i develop an app for amazon fire stick but I don't have a Fire stick so how can I check my app?
Is there any emulator for Amazon fire stick ?
When you use regular Android Emulator it's not acting as real firestick device. You will get some new issues with your app when running on Fire OS. So better to use real device and connect that through adb.
See this post on the Amazon Developer docs for some pointers on how to get it working in the emulator. There are some limitations, and from experience I'd probably recommend getting one to work with if you're going to be doing much work with it
Yes, you can create an Android TV emulator and run your app inside it. Follow these steps here: https://developer.amazon.com/docs/fire-app-builder/use-an-android-tv-emulator.html

xamarin.forms know memory usage both for android and ios

I am trying to develop android and iOS application using xamarin.forms. And already completed the main part that includes Canvas drawing. For that, I have used Skiasharp, to perform operations on bitmap images.
Now, in android,
1. If I try to dispose bitmaps that I initialized before I get SIGSEGV fatal error. (I think this issue is not OS specific)
2. When I continuously run my app for 20-22 minutes, app crashes suddenly.
And in iOS,
my iphone gets hanged when I run my app for long time. And it doesn't start until I uninstall app from iFunBox in my pc.
I wanted to ask if there are ways in xamarin.forms or in native projects to find out where my memory is leaking.
How can I know how much memory of RAM is actually being used at the moment ?
Thank you
For Android, you can use the Android Debug Monitor tool. This is a tool that is installed as part of the Android SDK.
Below is the URL for more information:
https://www.codeproject.com/Articles/798462/Diagnosing-Memory-Usage-in-a-Xamarin-Android-Appli
For iOS, you can try to use the native XCode Instrument.
Below is the URL for more information:
https://developer.xamarin.com/guides/ios/deployment,_testing,_and_metrics/using_instruments_to_detect_native_leaks_using_markheap/
Also, Below is a useful article that talk about Xamarin.Forms Memory management.
Hopefully it will be helpful.
https://igorelikblog.wordpress.com/2016/07/08/xamarin-form-memory-management/

How to make my windows7 based application run or set notification on windows8.1

all
I'm working on my windows7 pc with Visual Studio 2013. Windows8 sdk is installed.
I do not want to change a lot to port my project to a windows-store based program but I want my program can send notification while my windows8.1 tablet pc is sleeping.
I don't need my app actually running after entering sleep. I just want to setup an alarm-like (with defined alarming time) notification when I push some button in my app, before entering sleep mode.
Alternatively, I want my app keep playing sound in sleep mode (and the app is still running without rendering)
Is there a workaround without changing too much codes?
P.S. My project uses qt.
P.S.2 I can remote debug on my windows8.1 tablet but it is difficult to code on that tablet..

Resources