Processing on Tablet - processing

Can I somehow make my processing sketches work on some Tablet PCs or Smartphones?
For example on a Windows Surface Tablet or on a Windows Phone or an Android device? I guess it is harder for iOS devices.
If yes, could I even put the touchscreen to good use?

For Android, it's easy. See: Processing wiki page for Android.
For iOS, it's more difficult due to Apple's security settings. However, I did find this: iProcessing.
For Windows, I found this app: ProcessingJS Reader.
And finally yes, you can use the touchscreen.

Related

Is it possible to use the ML Kit SDK on Wear OS?

I am wondering if anyone knows if it is possible to use the ML Kit SDK on Wear OS devices? I know Wear OS is based on Android, and I've seen references online to Firebase notifications working on Wear OS.
I have googled combinations of the terms "ML Kit", "Firebase ML Kit" and "Wear OS" but not found any definitive answers.
I don't have code on hand, but I am wondering would it even be possible to import/use the SDK on Wear OS apps in the first place.
Expected results would be being able to instantiate and use some of the machine learning models from the ML Kit API on a Wear OS watch.
Battery usage and efficiency are secondary at the moment, I'm just wondering if it is possible at all.
I have never tied it but I think it is possible. In the end, the Andorid Wear 2.0 (WearOS) is just another regular Android and it supplies direct internet access from the device.
I was able to succesfully use RenderScript on Wear devices but on the other hand I've faced an issue that Google Awareness API was not available on Wear. THis seem not to be the expected state.
Probably in the end you will need to do feasibility study on your own.
You can try to use some android MLKit sample and simply run it on Wear device.

Adobe AIR on Mac - Access Bluetooth data

I am exploring some ideas and trying to make three different applications talking each other via bluetooth.
Two of them would run on Android phones, while the third would run on a MacMini. I can use Bluetooth on the Android phones almost without problems by using native extensions, but I am a bit confused about how to access it on the Mac Mini.
Any research about native extension leads me to mobile related links.
Any idea on how I could send and receive data to/from bluetooth on osX?
Is native extensions the way to go? And in case that was the way, do you know if there is any Native Extension available that I can use? Writing one on my own can be a bit overwhelming...
Yes, you'll need a native extension to access Bluetooth on the Mac.
The process should be more or less the same as on mobile, except of course the Mac extension will need to be built to target OS X instead of Android. A quick Google search turned up this article which might help get you headed in the right direction:
How to Create an Adobe AIR Native Extension for Mac OSX
Library FPBluetooth.ane supported platforms iOS+OSX.

Can I make Windows 8 Applcations with AS3

Hey guys just had a quick question. Is it possible to make Windows 8 or 8.1 Applications using Flash CS6 and Flash Develop as a external coding program basically Action Script 3.
Flash apps run on the flash player, so if an operating system supports the flash player, the application will run fine.
AIR allows you to create desktop applications that have expanded capabilities such as local file management. AIR is cross platform, so you can develop for Windows, OSX, iOS, and Android.
However, you are somewhat limited to what the AIR framework exposes to you, so you likely won't be able to utilize some aspects of the OS that you could in making a C++ Windows application.
So, yes it's doable, however what you would specifically like to do, might or might not be something that AIR or Flash provides.
If you mean native windows 8 applications (using the UI/live tiles), like you would publish for Android or iOS with Flash CS6 or CC, no.

Testing a web app for macs - is IPad ok?

Many of my clients use Macs and I'm getting weekly emails about bugs in my web-app software that are Mac only issues.
I have a limited budget so I'm hesitating going out any buying a $1,200 Mac for testing.
Would an iPad work?
Or would that not be the same kind of browser rendering as a Mac Book?
can I recommend a $700 mac then?
The biggest benefit is, that with virtual machines, you can now create a testing environment for nearly every system you wish to be a client on
The iPad Safari is more based on the iPhone mobile safari rather than the desktop Safari. You may have better luck getting a Mac Mini, or searching eBay for a used Mac.
Uhm… why has nobody mentioned yet, that Apple distributes Safari for Windows? For free.
You are not very specific about the kinds of problems your uses report. I would be very interested in which of those are not testable with Safari on Windows!
There are better ways to mimic common mac browsers than buying common mac hardware. Look into browser emulation products like browsercam.
Since no one said it directly yet, iPad does not render exactly the same as Safari on 10.6, nor can interactions be tested because one is gesture and touch based and the other is keyboard and mouse. You're cheapest option is the $700 Mac Mini plugged in to your existing input devices.
Unfortunately, because apple forbids the virtualization of it's OS (PDF:Section 2.A), you can't find anyone who will take browser shots in any reasonable amount of time. Of course, screen shots will only really help you if it's a rendering bug. If it's interaction, $700 isn't all that much more than $500, plus, you get a Mac! ;)

Smartphone for use with the NXT

Greetings.
I will be getting a new smartphone for work. It needs to work with Telus, so the iPhone, and Android-based phones are out. The available phones appear to be include a number of BlackBerries, HTC phones, Motorola phones, as well as LG, Samsung, and ZTE phones.
I have a LEGO Mindstorms NXT robot, and would like a phone for which I could potentially write a program that would communicate with it over bluetooth. (LEGO does provide a cellphone app but it only works with some Nokia, Sony Ericson, and BenQ-Siemens phones).
From my research thus far, it sounds like many phones support J2ME and that I could install NetBeans to develop for it. (I haven't programmed in Java in years.) Unfortunately, it sounds like even if the phone does have bluetooth capabilities, they aren't necessarily accessible from J2ME.
Lastly, I'd rather like to develop from my Mac. (I could boot into another OS or fire up a VM, but I'd prefer not to.) NetBean's IDE download page says, "Java ME is only available for Windows and Linux." There appear to be workarounds -- is it a pleasant environment to work in?
So, my question is, does anyone know if any of these phones are, um, pleasant to develop a simple bluetooth application for, preferably from the Mac?
- Edit -
It turns out that my contract has not expired, and I've replaced my partially functional phone with a Treo 700 we had around. I appreciate all the answers. I started setting up a J2ME environment (until I learned that I may as well set up a Palm environment, and have started on that.) When I do get a new phone, though, I was sure be looking at the S60 phones -- heck, it might even trump an iPhone or Android phone, at least for ease of creating hobby applications.
You may be interested in this application NXT Director. The author says it has been tested with the following models of Palm based devices, Treo 650, LifeDrive, Zire72, SONY TH55/E and Tungsten series. It may also work with your 700.
Nokia ported python to the S60 smartphone platform. That means you can just write python scripts with your favorite text editor and then run them on any of these phones. The python port includes APIs for the camera, bluetooth, SMS, dialing, sounds, text to speech synthesis, location services...
I found it very easy to install the python interpreter and console on my phone and immediately start running scripts, no other tools required. If you have a strong thumb and like a challenge then you can even write the scripts directly on your phone :-)
If you want to run an S60 phone emulation on your PC then you will need windows and even then it is complicated to set up. For small hobby projects you can live without the emulator though.
You can try following combination for J2ME development on Mac OS X
Eclipse - http://www.eclipse.org/
EclipseME - http://eclipseme.org/
MPowerPlayer - http://mpowerplayer.com/sdk

Resources