I have a question regarding the possibility of creating a winforms application in C#, which is able to detect incoming calls on an iphone.
Here is the scenario:
the iphone is connected to the computer via a usb cable.
whenever the phone rings I would like to be able to do the following:
Retrive the phone number.
Use the phone number in the winforms application, to search xml filer.
Answer the phone via the application and play an automated voice message.
Is this even possible in C#? If so how could this be done and are there any libraries designed for interacting with an iphone using C#??
Thanks and regards.
Anders
There are no SDK's that allow you to develop .NET apps that interact externally with the iPhone.
If you want to write an iPhone app, but are intimidated by the learning curve you could check out MonoTouch. It allows you to write iPhone\Android apps using C#.
Related
I'm implementing a game in Unity and I have a problem that I need advise for. I want to connect a tablet and a computer. The scene that is on the computer is supposed so send an event once an object is collected so that a special scene can be shown on the tablet. So based on what is happening on the computer there is a different scene shown on the tablet.
I only have no idea how to achieve that.
First, you need to create 2 different applications (for desktop and mobile). Second, you need to determine what protocol you want to connect desktop app and mobile app. The easiest way to implement this I think by using WebSocket/internet but not HTTP. Yes, you need to write code for the backend so it likes creating 3 different apps. But you can use firebase to simplify this process.
I recommended you use firestore from firebase. Connect booth app to firestore. When desktop app sends data to firestore, firebase will automatically notify mobile app and send that data. But you need to figure out yourself how to pair a desktop app and a mobile app otherwise, your firestore will receive data from all connected desktop app and send the same data to all connected mobile app.
This tutorial to use firestore:
https://www.youtube.com/watch?v=b5h1bVGhuRk
But before that, you need to add firebase to your project before you add firestore:
https://firebase.google.com/docs/unity/setup
You can use any wireless protocol available. You can even use Bluetooth if you want your app offline. But I don't know how to use Bluetooth...
I want to make a program that transmits strings from an Android device, to the web or directly to my PC.
Do note that the android and windows device are connected to the same wifi if this makes a difference. The problem here is that I do not know how to send strings from one device to another. I am thinking of doing it in a txt file and then reading it with the program on my PC (Which I have already tested), but I don't know how to transmit it.
Yes, you can share a data from cross platform devices. There are many methods to do it. I would personally recommend using Web APIs using asp.net core, the consume that Web API in your android application, it can be in Xamarin, and for Desktop you can used HttpClient package to consume either in WPF or Winform.
I'm trying to develop a windows app that communicate with bluetooth device.
Now I have one bluetooth-usb dongle for my windows desktop and bluetooth BLE device.
I want to develop the app using C# and Visual Studio in Windows 10.
But I can't find official documents and APIs at all. There's no C# API about BLE in windows? If it is, How can I develop a C# App using BLE?
The Microsoft Bluetooth team did a Build talk which includes BLE sample apps for GATT Server, Beacons, and Pairing. You can find the GitHub repo here.
A Build talk about Beacons and reading from a GATT Server can be found here.
There is a BLE example included in the Universal Windows sample programs provided by Microsoft. It is called BluetoothGattHeartRate.
Not that this is the end all, but it does get you going. It would be nice, given the whole IOT push if they had a Windows Bluetooth developer example that made configuring, and all the features really simple...
I am developing a survey designer application in .NET C# which exports the surveys to a file which is sent to android devices. The android device will parse the survey file and show it in the survey mobile app.
Now, I want the user to be able to preview in the .NET application, so they can have an idea of how the survey will look in the android device by displaying the application in an android emulator. Furthermore, I want the emulator to be shown inside a windows form or panel.
My question is: is it possible to show the android emulator inside a winform application and is it possible to communicate with it? In other words, is there any APIs or extensions for Android Emulator in .NET framework?
I have searched the internet for the topic but most results talk about communicating with the emulator via TCP port and launching the application by creating a new process in the .NET app.
It is important to me to be able to display the emulator inside my application since I do not want to deploy multiple applications to my clients.
You can access a Hyper-V instance programmatically using its WMI provider. The Hyper-V instance can run without visible window to the user, and you can send mouse clicks & keyboard input, then take a screenshot.
But, it seems to be infinitely easier and lighter to just replicate the layout logic from the Android app in your C# app. If you went with the Android Emulator route, you're hosting a minimum 512 MB process and all the CPU & GPU usage involved.
As a minor project in my degree I would like to communicate mobile and pc .I am interested to communicate through bluetooth is it possible to do so in c#?
If possible please provide me list of application or hardware i would requiere in order to do so.
thanks in advance
If (and it's a big if based on the lack of information in your question) you mean "How do I write an app on my PC, using C#, that can communicate with a Windows Mobile device that is connected to my PC via ActiveSync or WMDC" then the answer is RAPI. A free, open-source managed wrapper for it is here.
Yes its possible if its with windows mobile phone or pocket pc with bluetooth. You need a bluetooth enabled computer and mobile phone. For dev you need to download the windows mobile 6 sdk.
Then developing of the communication between desktop app and mobile phone app, you can use the 32feet.Net is open source.
When you download it and installs (well it unpacks to program files folder) you will have the dll that you make reference to in Visual Studio. Also you will get some sample apps. One of them is a Bluetooth Chat that works in Desktop, Pocket PC and SmartPhone.
Another option you could use is set up a web service that acts like an intermediary between the device and your machine. One huge benefit of this is that no longer are you bound by the distance requirements of bluetooth.
Of course if you're trying to build some sort of proximity service (do z when item x is 3 meters from item y) then bluetooth is probably the way to go.