I am new to Android programming. I am developing a wearable application. So far, I have a mobile and wear module. All I want to test is that a button on the handheld app triggers a notification to appear on the wearable device.
To test it, I have both physical devices (Watch and Mobile). I have the LG Watch R and an Android mobile device. I have ADB debugging enabled on both devices. I downloaded the Android Wear app on my handheld and it syncs fine with the watch. I have both devices connected to my laptop through USB.
How do I test the whole project?
Do I have to run the mobile module first and then the wear module? I tried researching Google's examples but they only explain a handheld connected to a wear emulator.
Any help would be hugely appreciated.
It doesn't matter which is loaded on first unless you are debugging. If you're just monitoring Logcat then you can switch between the two devices fairly easily in Android Studio.
You don't need to rebuild each of the separate modules each time either. For example, if you make changes to the handheld module and not the wear module then you only have to build the handheld.
Related
I developed an application in android studio which is run on mobile device. Now i want to run the Same application in smart watch.
Is it possible?
If it is possible than What configuration do i need to change?
Please Help.
I'm building a phone app with direct connection to a wear app running on several wear devices. The wear app will run on several wear devices at the same time and will share data to a single phone app.
I'm following the Android guidelines for co-packaging the wear and phone apps in a single package.
My question: can the wear app be auto-installed on multiple wear devices? If so, can you recommend how? Thanks.
Yes, it's the same as on a single device, basically. The Android Wear app on the user's phone will push your wearable app to all connected devices.
I have my primary phone linked to two or three Wear devices as a matter of course, and apps get pushed to all of them. It's really no different.
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
I am planning a new application that I would like to put on the smartwatch. I would like to have it usable also when there is no phone nearby. The app needs no Internet connection to work, could synchronize data to the phone later and I do not need anything from the phone while the app is running. However I could use the phone no problem to install the app.
I have googled, there are some foggy talks on a web that this is not possible, Android watch must always be connected to the phone for apps to run. How much is it true?
With Android Wear 2.0 it is possible to now develop standalone applications and thus eliminates the need for a mobile 'companion' completely.
Please follow this link for more information: https://developer.android.com/wear/preview/index.html
As I am aware, the current Android Wear version always requires a companion app for installation purposes etc. But with 2.0 this is no longer necessary. It would probably make sense for you to start developing with 2.0 now. That being said, it is still in a development preview and can officially run on only two smart watches (Huawei Watch and LG Watch Urbane 2nd Edition)
Wearable apps are run directly on wearables and don't require presence of a phone except for installation or phone-provided features (voice recognition, SMS, internet connection etc.)
Note that some features are wearable-provided or phone-provided depending on the hardware configuration of the watch/wearable (eg. GPS).
Yes, it is most definitely possible. As long as the wearable app doesn't require any functionality from the phone then it can operate as a standalone device. It will require a companion app on the phone to install the app on the wear device.
There are several wear apps that work without the need to be tethered to the phone, including Google Play music. There is the possibility of designing wear apps for hardware on only a few wear devices - I know that Ghostracer has standalone functionality using GPS, but it requires the wear device to have a GPS chip (it is designed for the Sony SmartWatch 3).
I'm using the RFDuinoTest app to test the module, but it is not getting detected by any of the android devices.
Two of the devices I've tried this on are:
-Samsung Galaxy Grand 2
-Nexus 7 Tablet
I've also tested the module with iphone 5 and it works fine. There aren't any issues in programming it either, and I've tried both with Windows and Mac.
Is there a chance that this is because of some problem with the android devices and not with the module? Or should I just assume that the module is damaged?
To simply test the ability to connect and interact with the rfduino from your mobile device, use a BLE smart device scanner. Try BLE Scanner for Android.
I found myself in the same predicament when attempting to use the RFdunioTest app for Arduino. I do not know why that app does not pick up surrounding rfduinos.