I just recently started learning Xamarin and faced such a challenge. I need that when minimizing, closing, and even when the user clears memory, my application starts and remains in the background all the time. I'm trying to create a service, but I don't fully understand how to implement everything. Is it even possible to implement this in Xamarin? Thanks in advance.
Related
I’m currently developing a timer app for android and iOS. I really care more about iOS for the time being, and even after following Xamarin’s documentation on backgrounding, using messaging center calls to the appDelegate.cs class and then launching a background task with the platform specific code, I’m still having my app terminated.
Is there any way to put an iOS app as a foreground service, like on android. Or is a background service still the way to go? I am trying to allow the user to set a timer up to 23 hours in advance and show count down.
To those interested, another strategy I found was just setting a notification to go off, regardless of if the app is running or not. Then, you can just handle persistence instead of trying to make the app keep running!
Good luck to everyone!
I´ve got no code to show, I just wanted to know if you guys could guide me so I can begin my research to start my project. Well, imagine you have a videogame or an app on your computer. How could I control some components that belong to the app from another device. I mean, I want to create an app for mobile devices that allow me to control some components from a specific computer app. My app would be created on Unity. Thank you.
You can achieve this by creating an app on your PC that receives messages from an app on your phone, then uses windows API hooks to fake key presses.
It's a really big and broad question you've asked, so it is hard to add too much more unless you are very specific.
I’ve written an App that uses NSURLSessionUploadTask to upload data to a web service. This is first written to the file system and then handed off to iOS so that the upload will happen in the background.
I need to do something similar with Android, however I’m not sure what the best solution is. I’ve come across android-upload-service on github (https://github.com/gotev/android-upload-service), however I can’t find an example for Xamarin Forms -has anyone used this? I’ve also seen FileUploaderPlugin on github (https://github.com/CrossGeeks/FileUploaderPlugin), however this doesn’t seem to support background processing?
I have a question about Xamarin Studio. I am building a application that connects with a server to get data from the server. I've made a function for the connection.
Also i've made a second view that opens when the user presses a button. When the view loads i would like to call my connect function to get all the data.
So i would like to know if there is a Load event in Xamarin studio.
This is the function i am looking for:
http://msdn.microsoft.com/en-us/library/system.windows.forms.form.load(v=vs.110).aspx
Thanks in advance
There are several. One of them is ViewDidLoad, which runs after a View has loaded. Xamarin is not a direct port of Windows Forms, which means MSDN will be of little help - you need to learn how iOS works.
However, there is Xamarin Forms, which is a cross-platform UI toolkit that may be the right choice for you. It abstracts away the need for knowing iOS or Android UI details. You may think of it as "Windows Forms for iOS/Android/Phone". Even if you're only ever targetting iOS, Xamarin Forms can help you build an UI.
In this specific case, the "Hello, iOS" Xamarin quickstart tutorial has a good example of responding to events such as a view loading.
Is there a way to make Windows Mobile not use the main phone app? I have my own phone app that I want to handle phone transactions for a business device.
My app works fine (detects the call and can hang up), but the main phone app still wants to allow the user to answer a call normally. I can try to hide the incoming call window or programmatically press the ignore key, but that is a bit clunky.
Basically, I need a way to make the built in phone app not know about incoming calls.
Any advice would be appreciated!
In case it matters I am using a Symbol MC70 running Windows Mobile 5.
Thanks!
EDIT: Thanks to djhowell's answer to this question I now know that the offending app is cprog.exe. But apparently it is hard to kill because services.exe keeps bringing it back.
First of all, you should not do it. Replacing system dialer will create you more troubles than you can expect.
If you still want to do it, there is no nice way to do it, even if you opt to use RIL directly. So, there is a trick in which you create a dummy cprog.exe (which does absolutely nothing), and put in the root folder . After the phone boots, that program will be started instead of the native one that is located in the \Windows folder. Then no program will be listening for incoming calls.
I would recommend asking Symbol (actually Motorola), they may have insight into your problem. I work with MC3090's and they were helpful before.