I want to make a simple messaging application for android and ios that uses RMI/TCP Connection. I've created such a thing before using Java RMI but I'm aware android os doesn't come with the native rmi library but I can use lipe. That said, even if I am able to create a local network based app for android it would be useless for my purposes if ios isn't able to join this network. I've looked through several threads but I have not been able to find a recent solution that would work for both. I'm doing this for a very niche use case I understand that otherwise such an endeavor would seem fruitless.
Related
I have found this interesting Project in the Internet and my first question is how to access the data (which is connected via Bluetooth to Android) from within Unity3D.
https://pauldyan.wordpress.com/2016/01/24/my-vr-bike/
I have seen that there is an "asset" for Bluetooth but is there a direct way or a way without the Need of buying that asset?
Regards
Kev
You could, but it would involve writing your own library for both Android and iOS.
I really don't recommend going this route. You would have to write hooks for every single native iOS and Android Bluetooth function. Both operating systems would need hundreds of lines of code and several days of testing to get going.
I'd recommend just buying it. The asset is 10 dollars, which is worth the time saved.
I need to utilize both a barcode scanner and a USB port on something handheld. I figure a small Android Tablet is my best option.
I've spent some time researching and I cannot find anyone who has implemented a NativeScript App w/ Serial Port communication on Android.
I am concerned this means it is not possible, or prohibited for some reason.
I have the Serial Communication functional right now using Nodejs and the serialport module via NPM.
Does anyone know if this module will work in a NativeScript app?
I am going to attempt to make this work over the weekend, but before I waste a lot of time I figured I would ask in case this is simply not possible -- I've chased simple bugs for days so I could waste a long time on something that's not possible. :)
Thanks for your help!
Anything you can do with a pure Java-only app (or Swift/Object C for iOS) you can do with NativeScript as you can access all the underlining APIs. This is one of (if not the) key differences between NativeScript and other technologies. See the NativeScript docs.
Most probably, you'll want to use some third party code to communicate with the serial device (such as usb-serial-for-android). Here's a great blog post on how to use third party code in your NativeScript app.
I wrote the android application for bluetoothchat program and it worked perfectly between two individual android devices.
However, the problem is that I don't know how to build up some specific program for allowing the connection between Linux(Ubuntu 14.04) and android.
The application for android is basically using the sample code Google provides, which uses the UUID, bluetooth socket, insecure serial communication.
Here, what am I going to do with making these connection possible?
I googled some possible answers, for example using PyBlueZ, but does it really work for my problem? I mean, the language for android is basically on Java and PyBlueZ is literally on Python, so is there any conflict?
What could be the best and simplest answer for my problem?
I'm a new to android so I don't know a lot of things you can do with a android application.
My main question is: Can you host an android application on a server then call it from another application when requested?
Can anyone recommend tutorial or an article about android application communicating with servers.
Or is there another way to store and use large databases that aren't stored in app itself?
An Android App can use any means available via TCP or UDP to communicate over the internet. HTTP is also built-in. Other/higher layer protocols (SOAP, ...) may need additional libraries to be added to your App, of which there are many readily available to choose from.
The point is: Almost any kind of client/server communcation can be implemented in an Android App; select one that fits your purpose and chances are that there is already a library available for it.
Running an actual Android App (.apk) on a server does not make any sense.
Not sure if this is the correct Stack Exchange website but here goes..
A client has asked me to look into the possibility of having a iOS or Android App for typing in information storing that in a SQLLite database and then syncing up with the main desktop application when plugged in by cable or something other syncing technology.
The desktop application is a Windows one written currently in Delphi 7.
Are there any API's to sync data from a SQLLite database on iOS/Android that Delphi can use?
If not, then would it be better if the desktop application was written in C# as its a newer language that can consume the API's easier?
For unidirectional sync (device to desktop), I would start with a simple web service (HTTP based). The new Web Sockets standard, also based on HTTP, is a little more complicated, but would allow for bidirectional communication.
The devices can HTTP POST database changes to the server, and the desktop client can pull new data (using HTTP GET) or receive push notifications, for example using a Web Sockets client.
For desktop to device you could also check out Apple Push Notifications and the corresponding Android technology.
For high availability I recommend a cloud-based solution like Amazon Elastic Compute Cloud (EC2), Google App Engine (GAE) or Azure.
This question is rather broad, there are many things you could do here. There aare so many technologies to use it's blinding.
The prevailing technique for transferring information from mobile devices is REST (over http).
You could also whip something up rather swiftly in node.js or WFC to create a service to collect information from the mobile devices.
I'm not sure about Delphi libraries available but perhaps by including REST in your search term you may have more luck. You may want to take a look at https://stackoverflow.com/questions/3959851/using-rest-with-delphi for a start.
The mobile side may be more tricky. If you are developing for multiple devices you may wish to explore the cross platform developer framework by PhoneGap as there seems to be a few projects that aim to sync local databases to the cloud. How you tie these together will be an interesting task.
Good luck!!!