Synchronizing between PC app and Android app - c#

I have encountered a difficulty while trying to figure out how certain aspect of my program will work:
(There is no code written at the moment, only concept).
I have a PC application which I want to build with C#.
In addition I have few android devices with my java application on it, which will be dependent on the PC application but will have its own functionality.
The android application will have to read data from the PC application and vice versa as well.
At first I thought creating a server which all applications will read from.
But now I'm thinking maybe there is a easier, less complex way (since I have no idea about accessing to servers and I'll have to learn the entire thing) - creating a network and shared folders - now the PC application will save his data at the shared folders and the android application will read the data from the shared folder, every 5 minutes or something like that or create a listener that will update the application upon any change made by the PC application.
The android application will have to do the same, save his data at the shared folders and let the PC read from the shared folder.
Basically, this is my idea, now my question are:
What do you think about the implementation of the idea?
Is it possible to access shared network folder with android device?
Is it possible to add android device to home network?
The combination of C# PC application and java will be alright?
Thanks in advance.

Answer of your questions :
This idea in implementable surely
I do not know for sure , but it should be .
Yup , it's very much possible using a WiFi connection.
This will not a problem as you have to use Webservice/Socket Programming (i will prefer for socket) where multiple platform is not a problem at all :)
Happy coding :)

Related

Sharing files over wifi between two windows devices with a uwp app

I'm looking for a way to share files (say a text file) between two devices,
I'm making a UWP application and would like to know any frameworks that may help me achieve that
You can use DataTransferManager to share files between different computers. Of course, this requires the device to turn on the "near sharing" feature. It works through Bluetooth.
If you want to share data via WIFI, then Wi-Fi Direct can help you. This is an example of a program provided by Microsoft.
Best regards.

Database connection with c# computer program and java android application

Ok im working on something and i have one question if this is even possible. I am doing 2 applications. One will be on the computer and the other will be on android device. On the computer user will input some data that will be stored in the database. The database will be local at my computer. Is there anyway that i connect to the same database with my mobile phone if it is on the same wifi, and store some information to that database from the mobile phone?
And what should i use? sqllite or MySql. Is it better to write the android application in java or in c# with the xamarine?
Thank you
Is there anyway that i connect to the same database with my mobile phone if it is on the same wifi, and store some information to that database from the mobile phone?
Yes it is. If database is available trough the network you can establish the connection.
Depends on what you're trying to accomplish, I would rather create the data service (using WCF for example) that would expose interface for both desktop and android applications. In this way you will have unified model for working with database. But you can work with database directly as well. There should be plenty of example of how to do that.
sqllite or MySql
You can work with any of them, it is more task specific then technology specific question. IMO, SqlLite might be a bit easier to use though
Is it better to write the android application in java or in c# with the xamarine?
Doesn't really matter. I would say if there is no specific reason why you want to chose xamarin, go with java.
There is wide range of posibilities. You can use SQL, NoSQL, plain text.. whatever you want. Xamarin Forms can be a good starting point especially using MVVM. With the same logic you can code both the desktop app and the mobile app. Try Catalog, http://catdb.eu. It does the same as you trying to achive.
For Xamarin.Forms there is a good reference book. It is pretty good. https://developer.xamarin.com/guides/xamarin-forms/creating-mobile-apps-xamarin-forms/

Communicate between local applications/Notify Running application

I have a C# Console Application which communicates trough its Input and Output with another application. This isn't a thing that can be changed so thats the given part of the problem.
The other part is that I need a way to communicate with this Console Application. Google says WCF, REST and stuff like that but this to me seams a little bit overkill cause I only need to communicate locally to the Console Application.
I also tought of communicating trough a file with that application but than I would have to check the file in an interval for changes right? Also I'm not sure if this is performance wise the best solution? Also i would have a delay, befor the notification happens depending on the interval.
So what would be a neat way to communicate between to local applications?
To achieve this use need to implement socket communication in your application. Below link will give you an idea on how sockets works in c#
http://csharp.net-informations.com/communications/csharp-socket-programming.htm

Small server application

I'm interested in programming a small server app that I can use to convert an old laptop into a home server. I don't think it needs to be too complex, I just want to be able to download my music and such onto other devices. My questions are:
Could I do something like this in C#?
Is it possible to set it up in a way that I can connect my mobile devices to transfer pictures and music?
Are there any references that might help me with this? (Books, articles, etc.)?
I'm fresh out of school so my experience is minimal, so I'm sorry if these questions seem obvious. Also, my mobile devices are all Android, two of my PCs run Windows 10, and the one I want to act as the server runs Windows 7, but I can upgrade that if it will simplify things. Again, sorry if the questions are a little basic and thanks for taking the time to read.

How to create a launcher application for two Air desktop aplications

I know that my question is very general and I don't expect very detailed answer either, just a lead would be great.
Here is what I want to achieve.
I have build two desktop applications using Adobe Air from Flash AS3 files. Both applications are parts of the same project. They're displaying over two screens, each app on one screen, and whatever you do in one it reflects the other, because they are communication each other through local connection class (AS3).
In fact those two applications are One Multi-screen Application. However to install them on the desktop computer you have to first install one Air app and after that the second Air app. The procedure with launching the apps is the same. You have to click on one icon for the first app to open , and than you click on the other icon for the second app to open, and only then you have whole application up and working.
So I'm looking for some solution which would allowed me to "pack" two installation Air files into one package. The user would have to click only on one "instal.exe" icon to fire up installation of those two air apps.
Maybe it needs to be use some external small C++ scrip, or application launcher - I have no Idea
Pease help me with this case, as I couldn't find it anywhere. I would be very grateful even far the smallest lead.
Thanks in advance
Not real sure but could this help ?
http://www.adobe.com/devnet/air/articles/air3-install-and-deployment-options.html
Depending how large / complicated your applications are maybe you could redactor it into one application and use Native window to then launch two windows each one containing the separate app logic.
This may even offer advantages over using the local connection class, and of course help ease development and maintenance of two separate apps.

Categories

Resources