Adding Smartwatch Java extension to a Phonegap App? - android

I've already built a phonegap application and want to extend its functionality, so that on a SmartWatch users could view text that is generated from an XML file.
There is smartwatch SDK for native android. Its written in Java.
What are the steps necessary to package the SmartWatch functionality that I need into a Phonegap Plugin and what files from the SmartWatch SDK do I need?

You'll need to write a Phonegap plugin, to wrap the native Java calls so that you can access them from Javascript.
http://wiki.phonegap.com/w/page/36752779/PhoneGap%20Plugins
[Improved Answer]
Actually you'll have to write Java code if you want to have an app on the watch itself. Realize that you will have a number of components that need to talk with one another.
Your app using Phonegap with the intent plugin to communicate with the Sony LiveWare manager.
The Sony LiveWare manager which will communicate and deploy custom watch apps to your watch. Watch apps use Sony's Java framework so it appears that 'watch apps' live in both the LiveWare manager and the watch itself.
The custom watch app 'running' on the Smartwatch. The app will know how to display your data and/or respond to touch events.
You may be able to find an existing app which will take intent data and display it on the watch. Then all you have to do is fire off an intent with the info you wish to display on the watch to the LiveWare manager which will route the data appropriately.
If you still want to build a custom app for the watch, you'll have to go down the Java route. They do include a simulator so you don't need a watch to try.

Related

App framework for linking HuggingFace transformers to, using a mobile device (Android)

I'm looking to create an app , using a mobile device (Android), that will accept my HuggingFace api to form a simple ChatBot. The question is simply: what would be the MOST EFFICIENT METHOD to create the base application?
In the past, i have used Termux to write/debug/compile the app on my android phone. However, this app needs to be put together as cleanly as possible, to allow for seamless upgrading, when I get around to embedding it into one of my websites.

Developing app for Amazon Fire TV Stick?

I want to develop application for the Amazon fire stick but I am not aware of it. I am unclear about some points
Can we create a standalone app that can run into the Amazon fire stick without need to Android phone or tablet?
If we can create the standalone app then can we call web-service to retrieve data from the server?
It would be great help if you can help me to clear with these questions.
Can we create a standalone app that can run into the Amazon fire stick without need to Android phone or tablet?
Yes. It is a first-class Android device on its own.
If we can create the standalone app then can we call web-service to retrieve data from the server?
If you hold the INTERNET permission and the device has suitable connectivity, then yes. This is no different than any other Android phone, tablet, TV, or toaster.

For Android and iOS, can I distribute a basic version of my app, and then distribute extensions to it?

If I build an app for iOS and Android and I distribute it. Let's call this the basic version of my app. A year later, if I decide on a change to my app (a new view or feature) but I only want to distribute this to some users, can I list it as a separate app on the app stores as a "extension"? Then when downloaded (by someone who already has the basic app) it simply extends the functionality. If it's downloaded by someone who doesn't have the basic app, it prompts them to download the basic app along with it?
Yes, you certainly can do this. Android platform offers IPC (Interprocess Communication) mechanism via AIDL (in Android every app is run in its own process by default) and it will be probably used to communicate between your apps. To get information about other apps you can use PackageManager.

Integrating Android Wear

If I want to integrate Android Wear into my app, do I need to rewrite the whole app for the Wear Device or can the App on the wear device use the SharedPrefs, functions and so on from the "normal" Device?
Is there a good tutorial for that?
You should consider app for Android Wear device as a separate app (it's inside separate apk bundled in parent apk i.e actual Android app) that communicates with your master Android app on the device. It's run directly on the wearable device and does not have direct access to things like SharedPreferences. Of course you can implement such access using Data Layer API.
I'd recommend you to start from Android Wear official developer guide: https://developer.android.com/training/building-wearables.html

Accessing native API/system from Sencha Touch

Sencha Touch is quite perfect for my project. But in order to call a driver for an hardware barcode scanner on iOS and Android, it would be necessary to have access to the underlying system.
Is that somehow possible with Sencha Touch itself when "transforming" it into a native app (the Sencha SDK allows this)?
I know that it is possible with PhoneGap. But I'm afraid using all these technologies together (PhoneGap + Sencha touch) could make the UI less responsive, but that is a decisive factor in this project.
Edit: in this thread, a user says the following:
"you cannot access the native iOS file system, unless you use Sencha
SDK Tools and native packaging"
So is it possible with Sencha touch?
You have to keep two things separated, are you developing a web app or a native app that has a web app embedded? I.e. are users going to get to the app by navigating to a certain URL or are they going to download it from App Store/Google Play?
For native I would suggest using PhoneGap as the "shell" and use the bar code scan plugin that is available on GitHub
For pure web app development, the only thing I can think of is the Bar code Scanner service from ZXing which requires users to already have the bar code scanner installed (or redirects them to the appropriate store if I remember correctly). In this scenario you are however depending on ZXing to maintain their open service and any changes on their part could have a direct impact on your app.
Hope this helps you!
Edit after comment from OP:
Ah so you need general access to the native environment. As for as I know there isn't a documented way of accessing other native components other than those specified in the Sencha Docs it seems to be on the way according to mitchell at sencha.
The question is really though if Phonegap makes a less responsive app than the Sencha Mobile Packager. Both creates a shell application that invokes a web view and I haven't seen any performance tests between the two.

Categories

Resources