I have C# code which will capture the msg from the mobile phone and respond to it. I need to connect this code with jpcap in java in order to capture the packets according to the request from the mobile phone. Can anyone help me with this?
What about using a webservices, also may be wcf rest service something good in this case.
Related
I'm new in Mobile dev. Going to use C#. I'm going to write small android(maybe iOs in the future) app. And I can't figure out what I need to use as web server. I want mobile client to send requests to server and get result from it. Best idea I have - use WCF web service and json.
Is it a good idea?
What can I use except WCF?
What could I read about web servers for mobile application?
P.S. Link for some tutorial will be great.
There are tonnes of tutorials out there on this topic.
I would use socket connections
For C# you can create a TCP Listener using sockets
using System.Net.Sockets;
https://msdn.microsoft.com/en-GB/library/bb397809(v=vs.90).aspx
and like wise for the android
TCP sockets would be an easy implementation.
http://examples.javacodegeeks.com/android/core/socket-core/android-socket-example/
As for Android and connectivity.
the Android developer platform is always a good start.
developer.android.com/training/building-connectivity.html
Or you could create a Rest interface in c#
codeproject.com/Articles/112470/Developing-a-REST-Web-Service-using-C-A-walkthroug
and make a http call in android. depends on your intended application to what will be better for you
Why REST + JSON is preferred over SOAP for mobile web services
http://www.bamboorocketapps.com/rest-json-vs-soap-xml/
I'm trying to write a 3rd party server application for sending and receiving notifications from Android devices using GCM's CCS as outlined here. I'm leveraging PushSharp for handling the sending of notifications from my server app, but I can't seem to find any documentation on how to receive messages at the server level. Is this supported or is there another 3rd party XMPP library for .NET that handles this cleanly?
I dont think you can receive messages at server level, this is not the point in push notifications. if you want to send information to the service from the app, i would suggest writing a webservice. i've implemented this myself, and had to do a little digging to find some code that could communicate with the webservice as it was written in c# and the app was java, but i can paste some code that might help if you think that would help you communicate.
Long story short though, if you want an app to talk to a server, then write a web service. if you want a server to talk to an app, use push notifications.
I have tried to send an sms from C# code using Gmail but I can't find Gmail services for sending sms. I need any way to do that by Gmail or another posiibility. How can I send an sms from C# or VB.NET program to a mobile phone?
You can use the Twilio to Windows Azure Notification Hub service for this.
Its fairly hard to give you an accurate answer as it can depend on where you are and where you want to send SMS's to as some providers only support some countries or have issues sending to certain networks, so make sure you know what your requirements are before choosing a provider.
In the past I've used Clickatel, as they supported the countries and networks I needed, and their API was good enough.
The only other advice I would give is whatever service you end up using pay for it, free services are more trouble than they are worth.
Hope this helps,
Jen
I'm writing a mobile remote program that the mobile's touch screen will be the remoted computer mouse. I'm using android for mobile and C# for server side programming.
Question:
How can I establish a data connection between a mobile phone and
computer that passes mouse position continuously without stopping?
I found 32feet.net that is free class library about Bluetooth but I couldn't solve my problem.
Thank you in advance.
You have to establish a client server connection and send information through a bluetooth socket.
Therefor you need a C# Bluetooth API or if it doesnt exist you write your own with sockets.
What would make your life easier i think is to use Java instead of C# for the server side as android uses Java, thats my opinion.
But i suggest you read more about how the Bluetooth protocol works with android and C#
Here are 2 links that will probably help you get started.
C# and Bluetooth Programming
http://developer.android.com/guide/topics/connectivity/bluetooth.html
I hope that helps you.
I have a C# .NET application listening on a specific port for data (SocketServer).
Using Android, I would like to connect to that SocketServer and send text data to it. I do not know where to get started - sample code would be great.
Take a look at TCP .NET/C# Server with Java client?.
Other than that, you could always recode your server into a REST service, and then anything can communicate with it. But I know this isn't a good answer as I'm sure you don't want to recode the server.