Can you access the bluetooth API of android via adobe air for mobile?
There is indeed a Native Process API:
http://tv.adobe.com/watch/adc-presents/invoke-native-process-in-adobe-air-2/
however, unfortunately, it doesn't look like it will allow you to do want you want.
I am not a Adobe AIR developer, but from what I know it is runtime for developing rich Internet applications that should run out of browser on your target device. So by default shouldn't be interested in accessing platform dependent resources and APIs. Even so, there is a possibility called native process API and here there is an example article, probably if you digg you'll find more information about it.
Create native installers allowing you to launch and communicate with native processes using standard input and output. Using the native process API, communicate with native libraries built using Java™ and .NET and native applications such as grep for file searching. You can also create operating system–specific installers (native installers). Applications that use the native process API must be deployed using a native installer.
Second step it would be for you document yourself, about the Bluetooth API of Android. They use BlueZ, so you could use the C API, or if your needs are not soffisticated you could use the Java API.
The actual response is yes, you can.
Related
I created Apps Script and published it to be accessible via API.
Now I want to call it from iOS and Android Apps.
But I see the following message on https://developers.google.com/gsuite/guides/mobile
Note: It is highly recommended to call G Suite APIs from a server environment rather than a mobile environment.
What is the best way to do it?
I am looking for a Multi-platform mobile app development framework.
Key features i require are:
Support for Background Services for synchronization
Database support
Which frameworks are better suite for these?
My research comparing React Native and Xamarin so far says that react native used more often in industry and has more developer support available but officially they only have 'headless-js-android' for Android for running services. Xamarin on the other hand has the support for running services on both platforms.
I need some guidance from someone who has worked with both technologies.
Thanks.
The following is a list of multi-platform mobile apps development frameworks:
Adobe PhoneGap: https://phonegap.com/
Appcelerator Titanium: http://www.appcelerator.com
Sencha Touch: http://www.sencha.com/products/touch
Ionic: https://ionicframework.com/
Sinpalm: http://www.simpalm.com/services/sencha-touch-development-developer
Check them out and let me know which one got your attention.
This is an oversimplification on the way they work:
They allow you to create a user interface with HTML5 and JavaScript.
Then, via JavaScript injection, they provide you with a standard API framework.
This JS API framework is a common interface to both Android and iOS. Therefore, you only focus on coding against the JavaScript API framework. Behind the scenes, they have libraries that will execute this API in the respective device.
Most of them allow you to use the database and other features provided by the respective OS (Android/iOS). You only need to check which supports the feature you need better.
I am planning how to build a web app using PhoneGap for a client, which will present an original web application that's already been built (using Symfony2 and Bootstrap). The client has requested that the app should create events/notifications to the users phone via the calendar, and allow the user to take a photo of something using the app which is then uploaded to the web application.
However, I'm not sure that this is possible using mobile web app's built with something like PhoneGap. There isn't a budget available to build native apps, so PhoneGap (or equivelent) is the only option available to me at the moment.
The client has requested that it works on iPhone/iPad, Android and Windows Phones. I would assume (but I'm not sure at the moment) they would also want it to work on BlackBerry 7/10 devices also. So, is it possible to build an app using PhoneGap that can intergrate with the users calendar and camera?
Short answer, yes. AFAIK, phonegap is a wrapper so the web app UI that you build (using js, css and html) has access to native phone function such as GPS, camera, even notification.
as to mentioned in here,
PhoneGap provides an application programming interface (API) that
enables you to access native operating system functionality using
JavaScript. You build your application logic using JavaScript, and the
PhoneGap API handles communication with the native operating system.
You can dip your toe and begin to get used to their APi collection from their website:
http://docs.phonegap.com/en/3.4.0/index.html
I have developed one web application that runs under all browser via applet (core is written in c).
Now, I planned to develop the same application for android, but android does not support Java Applets, I want to invoke my application via browser so I have to call my application using like applet or ActiveX but both are not supported by Android, do you have any idea on how to do this?
I'm affraid you are on your own here. If you like to have at least some compatibility with different android devices and versions your options are
native android app ( better in java, not in NDK - full access to platform features, compatibility depends on your skill)
crossplatform javascript in browser ( limited access to android features and hardware,
slow loading and compatibilitz depends on skill of cross platform toolkit provider )
supporting execution of arbitrary binary code in browser is security nightmare and is not going to happen on most browser under android
Android browsers do not support applets. I believe no mobile browsers do. Unlike iOS or Windows Phone, Android does have a Java VM, but it is neither binary nor API compatible with Sun's.
For example, Android introduces a completely different layout model and a different set of UI widgets.
So, you have no choice but to write an Android app from scratch. Luckily, Android uses standard JNI, therefore you have a good chance to reuse your C code (you will need to compile it with Android NDK).
Android uses a sophisticated mechanism of cross application interaction, known as Intents. These allow an installed app to register to handle certain kinds of URLs. That's how a link in Android browser can invoke the YouTube app to play a video full screen. Your web page can use a similar mechanism to switch from browser to your dedicated app, and return to the original web page can also be handled naturally.
Note also that your app can use Web view to display HTML pages - either local content installed as part of the app, or dynamic content retrieved from arbitrary Web site. This view uses the full browser engine, including javascript, and can interact with your Java code, but not with the same API as javascript interacts with applets.
Write native application based on your code or make your app more server side or webapp and drop applet
The Google Market offers an application purporting to run J2ME MIDP applications on the Nexus One.
I have tried this application but it only appears to run MIDP applications that are downloaded from particular web sites; it does not seem capable of picking up a MIDP application that is stored on the SD card in the phone.
I have suggested to the developers that they might like to add such functionality, but they have not been particularly responsive to my messages.
So I would like to build my own MIDP runner for Android and would like to see if I can find a pointer as to where to start, or even whether this is possible.
The MIDP application in question was supplied on CD along with a security camera system and permits remote viewing and remote control over the security system.
Clearly it wasn't built with the Android platform in mind. However, if it is possible somehow to run MIDP applications on Android (perhaps by creating some kind of sandbox environment for example) then I'd be quite keen to develop it.
MicroEmulator is a Java implementation of Java ME. You could try porting this to Android. The UI part should be re-written, as MicroEmulator is based on Java SE components that aren't available in Android. Also hardware access won't be possible. Device vendors implement J2ME APIs (camera API for example) and bundle them with the core J2ME. This won't be easy for you to do. You will need to study the JSR specification and implement it in Android.
You can use App Runner to port MIDP apps to Android.