语言

Menu
Sites
Language
SAP Tizen Native Android-Tizen

Hi guys,

I wanted to create an app that will send data from android to tizen and vice versa. I also downloaded the samples from this link http://developer.samsung.com/sample-app/list.do?pi=1&ps=10&pb=Y&ct=CT030000&sc but it seems its not working. I tried all the samples but still no luck. here are the steps that i did. 

-Download the file example Security Native Provider(Tizen)_Consumer(Android)
-I open the Consumer(Android) using android studio and build the APK
-install the APK to my android phone
-Open the Provider(Tizen) and install it to my Samsung Gear S3
-test the tool

 

Please someone help me, Thanks

 

 

响应

16 回复
Damian

Hi Mick,

Did you connect gear with smartphone via Gear Manager?

 

Mick Caberos

Hi Damian, i didnt. do i need to connect first the smarthpone to gear manager? then next step is i need to connect the smart phone to the gear? thanks

Mick Caberos

I also have a follow up question. is the samsung gear and gear manager the same? because i cant find gear manager on play store.

Armaan-Ul- Islam

Android Mobile & Tizen Wearable needs to be Connected via a bridge first, Which is "Samsung Gear" app.

"Samsung Gear" app was formerly known as Samsung Gear Manager, They are same.

Once your gear & mobile is paired via "Samsung Gear" then you can use SAP.  You can also check this sample which I created to integrate step count.

How to integrate Samsung Gear Steps in android Application?

 

Damian

Hi Mick,

Yes you should connect your gear with smartphone via https://play.google.com/store/apps/details?id=com.samsung.android.app.watchmanager

 

Mick Caberos

Hi guys thanks for the reply and sorry for the late reply. its working now when i use the sample. but im having a problem when i creating new app. from the scratch. i copied the code from sample message of tizen to my tizen app wearer that i created from the scratch and i copied the android sample message code to my android app and change the path like serviceImpl="com.samsung.android.sdk.accessory.example.hellomessage.provider.ProviderService" to my own project path but still not working i try to change the id="/sample/hellomessage" of tizen and android xml to id="/sample/myowntizen" still not working just a response "no peer found" 

my question is:

-is the serviceImpl="com.samsung.android.sdk.accessory.example.hellomessage.provider.ProviderService" from xml  android is constant path? even i have my own path in android?
- is the id="/sample/hellomessage" from xml android also constant? i try to change it from android and tizen but still not working just a toast from watch device "no peer found"

 

i also copy the permission from android manifest and i saw this while copying it but the code below i cant find it on the sample android file like this on below:

<receiver android:name="com.samsung.android.sdk.accessory.RegisterUponInstallReceiver">
            <intent-filter>
                <action android:name="com.samsung.accessory.action.REGISTER_AGENT" />
            </intent-filter>
        </receiver>
        <receiver android:name="com.samsung.android.sdk.accessory.MessageReceiver">
            <intent-filter>
                <action android:name="com.samsung.accessory.action.MESSAGE_RECEIVED" />
            </intent-filter>
        </receiver>

 

thanks.

 

 

 

Mick Caberos

do i need to follow the path in the sample? or some instructions that i need to do? thanks guys

Armaan-Ul- Islam

You may follow the Programming Guide to Create new app from Scratch.

http://developer.samsung.com/galaxy/accessory/guide

 

Check the Page 13~14 for Development Environment of Accessory SDK.

 

Mick Caberos

Hi Armann i already did this. im changing the Id in Android manifest and tizen id XML for exampl id="/tizen/appcustom" its not working just responding peer not found

Armaan-Ul- Islam

Have you declared the service Class ?

According to Programming Guide : Section 3.3.1 (Page 20)

 

"Communicating with the remote Peer Agent needs the declaration of a service in the AndroidManifest.xml . This ensures that the application is derived from the class SAAgent ."
 

<application>
...
<service android:name="the class name that extends SAAgent" />
...
</application>

 

#  Go to Java File > Right click on Class Name (that  extends SAAgent) > Copy Reference > Then Paste on "service android:name=..."

 

Ignore the response If you have already considered this step.

Mick Caberos

Yes, i did it and its working but my problem is when im changing the id="/sample/hellomessage" of android and tizen xml file. example i change it to id="/sample/messagesampletizen" its not working its says the cant find peer. my question is the id="/sample/hellomessage"  a constant? the dont need to be change when using sap? or theres another instructions need to do when changing the ID. i already change the id the same.

Armaan-Ul- Islam

To Clarify that, you might check the other Samples within Accessory SDK Pack. For Example: FileTransfer, Gallery, etc...

Don Frederick

The "Samsung Gear" app serves as a bridge between redactle unlimited Android Mobile and Tizen Wearable devices.

Dan Loan

Ensure that you are using the correct versions of the SDK for both Android and Tizen. Sometimes, compatibility issues arise if the versions are not aligned properly.

spear

Did you connect gear with smartphone via Gear Manager?