Packaging Wear 2 application - android

I am new to application development for Android Wear. My company needs to deploy to the customer our Android Wear application without using Play Store.
I have read this
https://developer.android.com/training/wearables/apps/packaging.html
but I don't understand if it is possible to use the embedded method like wear 1.x on wear 2. I tried the embedded method but when I install the phone application and if I check the log of wear I can see this message:
I/PackageChangesService: App is not installed
Before posting this thread I read on Stack Overflow many possible solution for this, like using the same name space, same permission on phone and wear etc. But I can't find a solution that works.
So on an Android Wear 2 smartwatch it is not possible to use the packaging method?

From this article,
A Wear 2.0 user must visit the Play Store on their watch to install apps. There is no auto-install like on Wear 1.X. Wear 2.0 apps
get full network access and can be installed completely separately
from the handheld app so the focus is much more on standalone Wear
apps than the handheld centric 1.X Wear apps.

Related

Do standalone Android Wear 1.x apps require a companion app?

I have an Android Wear app (a watchface) that was originally created before Wear 2.0, so it is embedded in a phone APK. I am working on porting it to 2.0, and keeping it backwards compatible. It is standalone and requires zero connection to a phone.
I understand that for Wear 2.0, the only thing needing to be published for a standalone app is the Wear APK. I have been reading through Google's documents and recommendations for moving 1.x apps to Multi-APK instead of embedded. They are a bit vague, however, on if a standalone Wear 1.x app even needs a companion app. I'm asking about this because it seems strange that we would need a dummy app on the phone that does literally nothing, if the Wear app is now its own APK.
From my understanding, that is the case, unfortunately. Since there is no Play Store app on Wear 1.0 watches, it's not possible to install the standalone app directly. So a user needs to install the companion app on the phone, and Play Services should install the Wear app if there is a Wear 1.0 watch connected.

How to disable dummy companion app (only wear part should be extracted to wear)

I have developed an android wear application and generated a signed mobile apk with a wear apk embedded in it. Currently it's under alpha testing.
Once after installing the app, the phone app is getting installed on the phone and the wear app is getting pushed to the wear device.
Phone app is a dummy app with only hello world text, I have created this dummy phone app with the purpose to push the wear app to android wear.
Now the question is after installing the app, how can I extract only the wear apk to android wear without installing the dummy phone app on phone?
Because it might not be a good experience for an user to see a helloworld text in the phone app.
Three-part answer:
First, with the arrival of Wear 2.0, "companion" apps will no longer be needed for distribution. Full details here: https://developer.android.com/training/wearables/apps/packaging.html
Second, while you're still supporting Wear 1.x, you could do something useful with your companion app's launcher Activity - even if it's only displaying some text like To use this app's functionality, run it on your watch. Because there will always be some less-knowledgeable users who expect to run an app from the launcher, and need some hand-holding.
Third: why do you even have an Activity with the launcher intent at all? Why not simply remove it from your package, or at least your manifest?

How to sync data with android wear 2.0 (standalone apk)

I want to publish android wear2.0(standalone) apk to the playstore.My phone app is already published on the playstore with wear1.0.4 embedded apk.
Right now I am running wear2.0 apk on emulator for testing.
But I have no clue how to sync it with my android phone(without using bluetooth) or an iphone.
Please guide me.
The same way as Wear 1.0. The way I've been publishing the phone app and the wear app is that my wear app's version code is one higher than the phone app but since it differentiates by feature (watch), both are on the Play store simultaneously. The embedded apk for wear 1.0 goes to the watch with the phone app but wear 2.0 watches show a notification for the user to download your (wear 2.0) app from the watch play store.
As long as the package names are the same, you can sync data using the Data APIs. Less recommended but since the watch has Internet now, you can even sync in other ways.

Tizen Wearable background app

I am wondering if it is possible to run an tizen wearable app in background. I need to run an app in background. I am using several sensors and I need to save these data continuously.
another thing Can we get the sensor in Samsung Gear S2 data such as Heart Rate directly from an android app directly without any widget on the Gear S2.
I appreciate any help or suggestion.
Thanks,
I'm also new on this and I'm starting with Samsung Gear S2.
When I read your post, I thought I read somewhere that Gear S2 would only run web app, yet, I opened the Tizen IDE, used a sample native app, and installed it an ran on Gear S2, so, I would say that you probably can do it. I would just explore the native sample apps for start, you'll have to develop in c/c++ and as you might know, you'll need to instal the Tizen IDE and the Samsung Extension SDK (http://developer.samsung.com/technical-doc/view.do?v=T000000248)
hope it helps.
It wasn't possible in the first Tizen version that supported wearable (2.2) but became possible later (2.3) when native and hybrid apps were added to the wearable profile.
Not sure how running Android apps on Tizen is really implemented, but I'd expect the chances of Anrdoid apps getting access to device information (sensor and other) is fairly unlikely, as those come through Tizen-specific APIs with also Tizen-specific privilege requirements - the mapping would be complex, but who knows, someone may have managed it. You don't need a widget for that though, the same device information API (and more) is available through native apps.
Yes it is possible to create wearable background app but only with Tizen 2.3 & above and only in Native app versions not in Web apps.
If you want to build app in web version then u can write your service in native and UI in web app and make the app as hybrid app.
Follow the guide in link below to pack a hybrid app:
Tizen Hybrid App Packaging guide

Is it possible to run an app for device in Android Wear(Moto 360)?

I am trying to develop an app for a device in android wear. But when I give command to open the app, it only opens in the device.
Is it possible to run an app for device in Android Wear(Moto 360)?
I never tried this before, only heard it from Google developers via youtube. I hope you find this usfull.
Does your app really support Android Wear ? You have to optimize you app to run on Android Wear.
How to install wearable apps:
https://developer.android.com/training/wearables/apps/packaging.html
How to developer wearable apps:
https://www.youtube.com/watch?v=jbSwhmquRb0
Check this out:
https://www.android.com/wear/check/
Official Google docs about wear designing:
https://developer.android.com/distribute/essentials/quality/wear.html

Categories

Resources