NativeScript (Telerik) and Serial Port on Android - android

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.

Related

Mobile Web App using device bluetooth, is it possible and how?

I'm working on a research project for my company. My goal is to make a mobile web app that uses mobile bluetooth to send data to others mobiles that use the same web app.
I did some research and I found that Chrome for iOS and Android supports an API to use device Buetooth with LE profil: https://developers.google.com/web/updates/2015/07/interact-with-ble-devices-on-the-web?hl=en
If I understood well, it's absolutely not suitable to transfer heavy data. The final goal of my project is to implement something like Hadoop for mobiles phones across a web app: Mobiles will share replicated databases and will perform MapReduce operations on datas.
I'm beginner in development and I don't really know how to find solutions. I think the only solution is to make a native or cordova app.
Do you have some advices on how to perform research on such things when, I guess, nobody did it yet ? Do you have any ideas to achieve this goal ?

How to connect Arduino with Unity3D (using an Android device)?

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.

connection between android and linux over bluetooth

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?

Peer to Peer communication between iOS and Android devices

So I am a relatively new iOS developer but thanks to Stackoverflow, i managed to get peer to peer data communication for my app working without the need of a server using gamekit/GKSessions.
Basically, one iOS device acts as a server and others just connect to it to receive app specific data.
Now, the app is currently being ported on Android and I was wondering if there is a way that I can make an Android device connect to the iOS app and behave the same way as ios app does.
Android developers suggested alljoyn to be an optimum solution for android but that doesn't seem to be available yet for iOS.
Please suggest if you have any ideas on this front.
If there is a solution that involves rework on iOS side as well then I am open to it!
In case, you or others tackling the same question in Jan 2013 needs an answer,
AllJoyn is now ready for iOS too, amongst other platforms.
https://www.alljoyn.org/docs-and-downloads
Venkat i suggest you to read and get some detailed information regarding P2P. This is a Good source, because you might get stuck if both devices are behind multiple Nat. but if your willing to go forward there is always a way. My suggestion would be an Relay, but you need to have a server, but the relay behaves like P2P. Look at the source above to get ideas.
I didn't have time to wait for alljoyn to be launched for iOS and sensing no other feasible solution that would fit on my timeline, I implemented a relay server in between to achieve this.
For others though, iOS binding is now available for alljoyn (www.alljoyn.org).
I haven't tried it yet but the android version of my app works with alljoyn and it works perfectly so I assume it will do the same for iOS as well.
One limitation to be considered using alljoyn is that it cannot communicate between devices that are behind different subnets.
I think there is a limit of max peer to multiple peer connectivity (max 8 peers) derived by IOS and Android, there is no connectivity tested using alljoyn between IOS and Android devices

Cross-platform mobile framework that can access call logs

I've come across a few suggestions of "develop-once, deploy anywhere" mobile frameworks from other SO questions:
http://www.mosync.com
http://rhomobile.com
http://phonegap.com
I was wondering if there are other alternatives to these mobile frameworks. None of them have the ability to access call logs or hook into a phone's call events (I realize those aren't possible on iPhone).
The problem is that the ability you want is pretty specific to the device, so it is unlikely anyone will come up with a framework in the near future that supports it.
That said, PhoneGap supports adding any native code you desire, so you could do the bulk of the app in it and then add native code for the bits that are not supported. It's a lot easier than creating apps from scratch for each platform.
There's Appcelerator Titanium Mobile for Android/iPhone, but I don't know if it can do what you're looking for, either.
The Qt Mobility project is the only one with such functionality i think but i am not sure, more info at http://labs.trolltech.com/page/Projects/QtMobility
more info:
http://qt.nokia.com/developer/new-qt-apis
platforms supported:
http://qt.nokia.com/doc/qtmobility-1.0-tp/index.html#platform-compatability

Categories

Resources