How to send a UDP-Pagakge via Android and AIR 3 - android

i tried to send a udp-package via the datagrasocket-class in adobe air 3!
this worked fine as long as i test the app in flash-builder 4.5.
unfortunately if i test my app on the phone i cant send
any package or better i can't see the sent package on the target-pc. (wireshark)
Does somebody know what goes wrong there !?
thanks in advance!

Adobe Air has a new feature called native extensions that allows you to call classes from the device and utilize them. You could simply use the mobile device's native UDP socket capabilities and I've checked that both iOS and Android have UDP capabilities.

Well i stumbled over the solution!
it is not possible to use DatagramSocket on mobile devices!
see: AIR profiles
cu

An interesting new library has recently surfaced in this area. Uses Native extensions. Looks to support iOS and Android at this time. Promising!
http://blog.aboutme.be/2011/12/14/udp-native-extension-for-air-mobile-now-with-android-support/

Related

How to use the SCIP protocol in ReactNative for Android app running on PHILIPS 10BDL3051T

I am looking into creating an Android app using ReactNative for a PHILIPS 10BDL3051T tablet running Android 4.4
To use the hardware LED strips on the tablet, you need to use the SCIP socket for communication.
I have found this repo in .NET C# where the connection is archived and the ability to set LED colors: https://github.com/aolde/philips-signage-display-sicp
Does anybody have experience with making such an app and is able to provide hints or links?
Or am I forced to create the app with XAMARIN in order to use the NuGet package, if that is even possible?
Thanks a lot in advance

NativeScript (Telerik) and Serial Port on 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.

Is it possible to build a native android-to-android video chat app using webrtc?

I see a lot of tutorials in the Internet teaching about android to browser or browser to browser webrtc application. Is it possible to build a native android-to-android video chat app using webrtc?
Well, for establishing a connection between the devices before the call via peer-to-peer WebRTC solution you need STUN/TURN/ICE servers.
They establish the route for communication between the devices.
Once the route is established the devices communicate directly without participation of a server for passing the media streams.
To make it easier for you, you can look at or try some existing solutions, like ConnectyCube.
They have peer-to-peer WebRTC solution for Android already implemented.
So, maybe there is not need to reinvent the wheel.
There is an official Android sample project AppRTCMobile provided here - https://webrtc.org/native-code/android/. However, the build process is tedious and the total download size exceeds 20 GB. The recommended way is to use the following dependency in your project.
implementation 'org.webrtc:google-webrtc:1.0.+'
However, for video chat functionality you will need to refer AppRTCMobile source code. There is a clone of this project on GitHub updated for Oreo and ready to import in Android Studio. Check out this link.
WebRTC uses ICE protocol for creating connection between two peers. It uses DTLS-SRTP for creating secure data exchange between peers.
Now both ICE protocol and DTLS-SRTP are protocols that can be implemented on any devices no matter what platform. You implement or use existing implementation of
ICE and DTLS-SRTP protocol on your android apps and communicate with each other.
When you read tutorials about implementation of WebRTC for communication between android app and browser, there the android app has the implementation of both ICE and DTLS-SRTP. So this android app can communicate with other android app having similar implementation.
in addition to #tahlil great answer, you can also use a number of open source SDKs out there that already took the burden on bundling the WebRTC libraries and offering simple APIs for you to integrate Real Time Communications in your native app. One example of such SDK is the RestComm Android SDK
See https://github.com/Mobicents/restcomm-android-sdk and http://www.telestax.com/restcomm-client-android-sdk-beta-2-is-out/

Adobe Air with native android access

I have been trying to follow James Ward's instructions in order to access native apis with adobe air. No matter how many times i re read his steps, I cant follow them properly.
I didn't use the eclipse source files offered on his site as I already have an android app using netbeans which accesses and sets up communication with another device via bluetooth.
I also have a previously created air app which read/writes to a socket, displays ui and reponds to button presses.
If i could get the bluetooth-connected socket created in the native app, pass this to the air app and allow the bluetooth communication to be utilised in air it would be a great satisfaction for me as i have been at this for days.
Is this possible and if so can someone help me, i have managed to extract the air apk, get the dex files, but what next??
Regards
You currently cannot access native APIs from Air, but it is currently in the works.

Printing using Flex Burrito in Android,Ipad,Blackberry

I 'm thinking about developing a restaurant application using Flex Burrito.
Is there anyone who can tell me if it possible to print from an Android enabled device to a WIFI printer / kitchen printer? (is it possible to do this also on an IPAD, Blackberry?)
Thanks in advance
Google Cloud Print?
http://code.google.com/intl/de-DE/apis/cloudprint/docs/overview.html
AirPrint for the iPad. However this is currently available only for HP printers. http://www.apple.com/ipad/features/airprint.html. From a Blackberry you need to do it using a custom created app. There are also some 3rd party apps created for the BB. Check http://thinkabdul.com/2007/10/02/free-beamberry-blackberry-suite-to-view-print-documents-via-bluetooth-usb-store-pdf-ms-office-zip-files-on-rim-41/
Hope this helps. If so, +1 :)

Categories

Resources