All Sony questions at Stack Overflow

Below you’ll find all the questions and answers that have been Sony-tagged. If you have a problem while developing, it’s a good idea to check out these threads as a starting point.

Tags used below: All (all questions tagged sony), SmartWatch (tagged sony and sony-smartwatch), SmartEyeglass (sony-smarteyeglass and sony), and Camera (sony and camera). For more information on how to tag questions and what Sony APIs are covered by what tag, see the How to post and tag a question page.

672 Sony related questions
0 votes 1 answer

sony sony-smarteyeglass

method to get raw data of streaming

I want porting my application for android phone what analyze live streaming to smarteyeglass. I use raw data (YUV420SP) onPreviewFrame(byte[] data,Camera camera)/setPreviewCallbackWithBuffer() in andr...

Latest answer by Marlin SONY: Unfortunately is not possible to get the raw data, only JPEG data. What is the reason for wanting raw data instead of JPEG?

0 votes 1 answer

android sony sony-smarteyeglass

Sending camera data with Wi-Fi from SmartEyeGlass to host device

I have an application that scans QR code with SmartEyeGlass.But It goes so slow.I belive thats because the app sending camera data from glass to host device with bluetooth. Is there any way to speed t...

Latest answer by Robert - Sony: Yes you can actually switch the SmartEyeglass in to High Power Mode which will send the images over wifi. To activate High Power Mode you can run this command: utils.setPowerMode(Intents.POWER_MODE_HI...

0 votes 1 answer

sony sony-smarteyeglass

How to change Streaming rate of the camera?

I read in the camera mode documentation of Sony Smartglasses that it has a CAMERA_MODE_JPG_STREAM_LOW_RATE in which camera takes still pictures continuously at 7.5fps. How can I change that to have a...

Latest answer by Marlin SONY: There isn't a way to set a specific frame rate when doing JPEG streaming unfortunately. Did you try just using STILL mode and calling requestCameraCapture() to take pictures in the interval you want?

How do I integrate QR code reading application to Sony SmartEyeGlass?

We are developing an application for Sony SmartEyeGlass. Firstly, we created it with Android Studio and android tablet.Now, we are working with Sample Camera Extension sample to integrate it our Proje...

Latest answer by Robert - Sony: The Sample Camera extension is a great place to start building your QR code reader. In the SampleCameraControl.java there is a function called cameraEventOperation. In this function you will see an ex...

0 votes 2 answers

sony sony-smarteyeglass

Passing image to another layout

I am using Sony Smart eyeglasses sdk for a project. I have two layouts xml file and I am trying to get image from gallery displayed on the imageview of the layout. I have obtained image location as a...

Latest answer by Ahmet SONY: HelloLayouts sample project in SmartEyeglass SDK, shows exactly how to achieve this. You will see a bundle list parameter in showLayout method. You can add your images for different imageViews into th...

0 votes 1 answer

android sony sony-smarteyeglass

How to rotate an ImageView when using SmartEyeGlass SDK?

I am using layout rendering (as opposed to bitmap rendering) in my Smarteyeglass app. How can I rotate an image view, let's say by 45 degrees? I am using the following code to display my layout: Inten...

Accepted answer by Ahmet SONY: Unfortunately, you can not dynamically rotate view elements in the layout. Because layout is rendered and sent to SmartEyeglass once before you use showLayout or sendToHostApp method. If you would lik...

0 votes 1 answer

android sony sony-smarteyeglass

How to get view reference in Sony Smarteyeglass?

I am using layout rendering (as opposed to bitmap rendering) in my Smarteyeglass app. How can I get a reference to the current view? I would like to rotate one ImageView in my layout according to a va...

Accepted answer by Ahmet SONY: Unfortunately, you can not dynamically access to view elements in the layout. Because layout is sent to SmartEyeglass statically once you use the showLayout method or sendToHostApp method. If you woul...

-3 votes 1 answer

sony sony-smarteyeglass

Sony Smart Glasses Mic Input

I have a sony developer kit smart eyeglass and was wondering if there are any tutorials to understand java etc and also I am wanting to use voice input methods to control the menus etc. Am I limited t...

Latest answer by Ahmet SONY: There aren't any tutorials directly on controlling the menu using the microphone. But you can use microphone on SmartEyeglass just like a regular bluetooth headset. You can find a guide about this on...

0 votes 1 answer

sony sony-smarteyeglass

Connecting Sony SmartEyeGlasses with Desktop

Is there a way to connect Sony SmartEyeGlasses directly with a PC using bluetooth? I have to create a Augmented Reality application which cannot use Android Phone or any phone because the application...

Latest answer by Ahmet SONY: There isn't a direct way to connect SmartEyeglass to PC using bluetooth. But as you described, a virtual machine running Android may work. You will need to install SmartConnect and SmartEyeglass apps...

2 votes 3 answers

android sony sony-smartwatch

Sony SmartWatch 3 (SWR50) no longer returns Sensor.TYPE_LINEAR_ACCELERATION

I am writing an application which uses the Sensor.TYPE_LINEAR_ACCELERATION. mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); This was working up until recently howeve...

Accepted answer by Marlin SONY: Sounds strange that it would just stop working all of a sudden. Did you install any firmware updates recently? Have you tried power cycling the watch? Have you tried doing a factory reset?

0 votes 1 answer

sony sony-smartwatch

Sony Smartband 2 Beat-To-Beat RR intervals data

Is it possible to access the raw beat-to-beat RR intervals data from Sony Smartband 2 API? If not, are there any other commercial wearable devices that can provide access to this data? Any help would...

Accepted answer by Robert - Sony: Not sure about other wearable devices, but the Smartband 2 does not have a direct way to access it's data. The only data available is what you can pull from partner API's. Here is an article that goes...

0 votes 1 answer

sony sony-smartwatch

Sony, sony-smartwatch

I have a One Question: I newly starting developing for Sony Smart Watch 3. I established all environment setup for developing but I can't able to connect my sony smart watch 3 with nexus 7 tablet. So...

Latest answer by Frank im Wald: Hard to tell from the little information you're providing. But sometimes it helps to reset the smartwatch to its factory settings. Find 'Reset Device' in the settings menu tap to confirm Also don't fo...

Control App Sony Smartwatch2

Hello I am developing an app for the Sony Smartwatch 2 and I have a couple of questions: First: is it possible to Launch the "app on the watch" using the app on my phone? I mean I want to be able to c...

Latest answer by Robert - Sony: If you want to start the SmartWatch 2 you can do it using this code: Intent i1 = new Intent("com.sonyericsson.extras.aef.control.START_REQUEST"); i1.putExtra("aea_package_name", "com.youpackage.name"...

Send a vibration to a SmartWatch 2 App

I've been trying for a while and I can't send a vibration to my SmartWatch 2. I'm just editing one of the sample codes, so it would be relatively easy. This is the code fragment: // Show something Tex...

Latest answer by Marlin SONY: The code looks correct to me. Only possibilities I can think of here are: The startVibrator method is not being called. Are you sure it's going into the "if" statement? The vibration on your watch is...

0 votes 2 answers

camera sony

Connecting to Multiple Cameras via Sony Remote Camera API

Using Sony Remote Camera SDK 2.1.2 I am not using any mobile devices to talk to my Sony cameras I am using a Ubuntu, C++ and a router to access my Sony cameras My Sony cameras WORK for one API call,...

Latest answer by Simon Wood: Not a direct answer for you, but if you'd like to play I had attempted detecting multiple cameras (but don't have appropriate hardware to test) in this project: https://github.com/Bloodevil/sony_camer...

0 votes 1 answer

camera sony sony-camera-api

In what states does Sony A6300 support setPostviewImageSize?

I'm calling setPostviewImageSize with size Original on the camera API of my Sony A6300. No matter what I do (ie. do startRec first, or change the order of this so it is after other calls), I always ge...

Latest answer by xaphod: After testing the A6300 further, I needed to wait with setPostviewImageSize for at least 4 seconds even after the camera says it is IDLE and ready and doing nothing Not cool, Sony...

0 votes 1 answer

camera sony

How I can set auto-ISO by Sony Remote Camera API?

How I can set auto-ISO by Sony Remote Camera API? I'm able to set any specific value, but what about "auto"? Since PlayMemories-Home app does it, there is a way, but it's not documented. Thanks, Oleg.

Latest answer by Simon Wood: Did you check/get 'available' (vs 'supported') values? Sometimes I have seen that some values are only usable if the camera is in a particular mode. You might try changing the shooting mode and see if...

0 votes 1 answer

api sdk camera sony

Controlling Sony A7RII with USB (NOT over WIFI)

In a project I'm developing I need to control Sony A7RII camera over USB. I saw that the SDK only supports Wifi but I decided to write this question anyway. Is there a way, official or not, to control...

Accepted answer by Robert - Sony: Unfortunately the only way you can control the camera right now is over WiFi. Here is a link to some answers of other common questions if it is helpful: https://developer.sony.com/develop/cameras/faq/

0 votes 3 answers

python camera sony sony-camera-api

Sony Camera Remote API, Liveview streaming slow

I'm using trying to stream live view of a SONY FDR-X1000V camera on desktop. I use python to call the API and download the package and use opencv to decode jpeg. When I run it, it can hardly catch one...

Accepted answer by Jason: The answer from @Simon Wood and @Robert - Sony are all very useful! I made two mistakes in my code. One is the payload size is 3 bytes instead of 4 bytes. Another is that I assumed the byte order is l...

Get Lifelog API result

I'm trying to use the Lifelog's API and i wrote this portion of code: . . . //MAIN ACTIVITY private void scaricaDati(){ token = spref.getString("access_token"); Log.i(TAG, "(scaricaDati) token = " + t...

Latest answer by Robert - Sony: I believe the answer may be that you are using JSONObjectRequest instead of StringRequest. JsonObjectRequest overrides the getBody() method so your getParam() method never runs. You can read more abou...

0 votes 1 answer

sony sony-lifelog-api

ssl peer unverified exception LIFElog api

I am getting ssl peer unverified error while fetching AccessToken from lifelog api. I am able to get the auth_code from the callback URL, but when I am trying to get Access_Token it is giving me SSL p...

Latest answer by Robert - Sony: Is there any chance you are using HttpClient to connect to Lifelog? This problem has appeared before because of the use of HttpClient. It looks like Google has removed support for this call in Android...

0 votes 1 answer

sony sony-lifelog-api

Can I access Lifelog APIs from my android application

When ever I tried to authorize my android application. But It gives me Unauthorized user error.. Can i access lifelog data on my android application using these lifelog REST API's? could some one sugg...

Latest answer by Robert - Sony: What steps have you tried to retrieve data from the API? Are you following the instructions from the Lifelog Authorization page? https://developer.sony.com/develop/services/lifelog-api/authentication...

1 vote 1 answer

sony sony-lifelog-api

Can I access lifelog API (java) and collect data (in background) every hour

My need is to get data of say 10 lifelog users (example my project teammates ) I want to analyse their data and do some scoring to create fitness competition within my team. If I have all these life l...

Latest answer by Robert - Sony: Actually the way to get the data from your teammates is by authenticating them with your app: https://developer.sony.com/develop/services/lifelog-api/authentication/ Once they have authenticated with...

0 votes 1 answer

sony sony-lifelog-api

Lifelog API Explorer: Authorization request could not be completed

I'd like to use the lifelog api for my own webapplication to store my own data and adapt it to my needs. I tried looking into it but unfortunately I'm not able to get the api explorer (to see how it w...

Accepted answer by Robert - Sony: Unfortunately the API Explorer is not working correctly right now. The team is working to fix the issue. In the meantime you can try postman to play around with the API. https://www.getpostman.com/ He...

0 votes 1 answer

sony sony-smarteyeglass

method to get raw data of streaming

I want porting my application for android phone what analyze live streaming to smarteyeglass. I use raw data (YUV420SP) onPreviewFrame(byte[] data,Camera camera)/setPreviewCallbackWithBuffer() in andr...

Latest answer by Marlin SONY: Unfortunately is not possible to get the raw data, only JPEG data. What is the reason for wanting raw data instead of JPEG?

0 votes 1 answer

android sony sony-smarteyeglass

Sending camera data with Wi-Fi from SmartEyeGlass to host device

I have an application that scans QR code with SmartEyeGlass.But It goes so slow.I belive thats because the app sending camera data from glass to host device with bluetooth. Is there any way to speed t...

Latest answer by Robert - Sony: Yes you can actually switch the SmartEyeglass in to High Power Mode which will send the images over wifi. To activate High Power Mode you can run this command: utils.setPowerMode(Intents.POWER_MODE_HI...

0 votes 1 answer

sony sony-smarteyeglass

How to change Streaming rate of the camera?

I read in the camera mode documentation of Sony Smartglasses that it has a CAMERA_MODE_JPG_STREAM_LOW_RATE in which camera takes still pictures continuously at 7.5fps. How can I change that to have a...

Latest answer by Marlin SONY: There isn't a way to set a specific frame rate when doing JPEG streaming unfortunately. Did you try just using STILL mode and calling requestCameraCapture() to take pictures in the interval you want?

How do I integrate QR code reading application to Sony SmartEyeGlass?

We are developing an application for Sony SmartEyeGlass. Firstly, we created it with Android Studio and android tablet.Now, we are working with Sample Camera Extension sample to integrate it our Proje...

Latest answer by Robert - Sony: The Sample Camera extension is a great place to start building your QR code reader. In the SampleCameraControl.java there is a function called cameraEventOperation. In this function you will see an ex...

0 votes 2 answers

sony sony-smarteyeglass

Passing image to another layout

I am using Sony Smart eyeglasses sdk for a project. I have two layouts xml file and I am trying to get image from gallery displayed on the imageview of the layout. I have obtained image location as a...

Latest answer by Ahmet SONY: HelloLayouts sample project in SmartEyeglass SDK, shows exactly how to achieve this. You will see a bundle list parameter in showLayout method. You can add your images for different imageViews into th...

0 votes 1 answer

android sony sony-smarteyeglass

How to rotate an ImageView when using SmartEyeGlass SDK?

I am using layout rendering (as opposed to bitmap rendering) in my Smarteyeglass app. How can I rotate an image view, let's say by 45 degrees? I am using the following code to display my layout: Inten...

Accepted answer by Ahmet SONY: Unfortunately, you can not dynamically rotate view elements in the layout. Because layout is rendered and sent to SmartEyeglass once before you use showLayout or sendToHostApp method. If you would lik...

0 votes 1 answer

android sony sony-smarteyeglass

How to get view reference in Sony Smarteyeglass?

I am using layout rendering (as opposed to bitmap rendering) in my Smarteyeglass app. How can I get a reference to the current view? I would like to rotate one ImageView in my layout according to a va...

Accepted answer by Ahmet SONY: Unfortunately, you can not dynamically access to view elements in the layout. Because layout is sent to SmartEyeglass statically once you use the showLayout method or sendToHostApp method. If you woul...

-3 votes 1 answer

sony sony-smarteyeglass

Sony Smart Glasses Mic Input

I have a sony developer kit smart eyeglass and was wondering if there are any tutorials to understand java etc and also I am wanting to use voice input methods to control the menus etc. Am I limited t...

Latest answer by Ahmet SONY: There aren't any tutorials directly on controlling the menu using the microphone. But you can use microphone on SmartEyeglass just like a regular bluetooth headset. You can find a guide about this on...

0 votes 1 answer

sony sony-smarteyeglass

Connecting Sony SmartEyeGlasses with Desktop

Is there a way to connect Sony SmartEyeGlasses directly with a PC using bluetooth? I have to create a Augmented Reality application which cannot use Android Phone or any phone because the application...

Latest answer by Ahmet SONY: There isn't a direct way to connect SmartEyeglass to PC using bluetooth. But as you described, a virtual machine running Android may work. You will need to install SmartConnect and SmartEyeglass apps...

2 votes 3 answers

android sony sony-smartwatch

Sony SmartWatch 3 (SWR50) no longer returns Sensor.TYPE_LINEAR_ACCELERATION

I am writing an application which uses the Sensor.TYPE_LINEAR_ACCELERATION. mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); This was working up until recently howeve...

Accepted answer by Marlin SONY: Sounds strange that it would just stop working all of a sudden. Did you install any firmware updates recently? Have you tried power cycling the watch? Have you tried doing a factory reset?

0 votes 1 answer

sony sony-smartwatch

Sony Smartband 2 Beat-To-Beat RR intervals data

Is it possible to access the raw beat-to-beat RR intervals data from Sony Smartband 2 API? If not, are there any other commercial wearable devices that can provide access to this data? Any help would...

Accepted answer by Robert - Sony: Not sure about other wearable devices, but the Smartband 2 does not have a direct way to access it's data. The only data available is what you can pull from partner API's. Here is an article that goes...

0 votes 1 answer

sony sony-smartwatch

Sony, sony-smartwatch

I have a One Question: I newly starting developing for Sony Smart Watch 3. I established all environment setup for developing but I can't able to connect my sony smart watch 3 with nexus 7 tablet. So...

Latest answer by Frank im Wald: Hard to tell from the little information you're providing. But sometimes it helps to reset the smartwatch to its factory settings. Find 'Reset Device' in the settings menu tap to confirm Also don't fo...

Control App Sony Smartwatch2

Hello I am developing an app for the Sony Smartwatch 2 and I have a couple of questions: First: is it possible to Launch the "app on the watch" using the app on my phone? I mean I want to be able to c...

Latest answer by Robert - Sony: If you want to start the SmartWatch 2 you can do it using this code: Intent i1 = new Intent("com.sonyericsson.extras.aef.control.START_REQUEST"); i1.putExtra("aea_package_name", "com.youpackage.name"...

Send a vibration to a SmartWatch 2 App

I've been trying for a while and I can't send a vibration to my SmartWatch 2. I'm just editing one of the sample codes, so it would be relatively easy. This is the code fragment: // Show something Tex...

Latest answer by Marlin SONY: The code looks correct to me. Only possibilities I can think of here are: The startVibrator method is not being called. Are you sure it's going into the "if" statement? The vibration on your watch is...

0 votes 2 answers

camera sony

Connecting to Multiple Cameras via Sony Remote Camera API

Using Sony Remote Camera SDK 2.1.2 I am not using any mobile devices to talk to my Sony cameras I am using a Ubuntu, C++ and a router to access my Sony cameras My Sony cameras WORK for one API call,...

Latest answer by Simon Wood: Not a direct answer for you, but if you'd like to play I had attempted detecting multiple cameras (but don't have appropriate hardware to test) in this project: https://github.com/Bloodevil/sony_camer...

0 votes 1 answer

camera sony sony-camera-api

In what states does Sony A6300 support setPostviewImageSize?

I'm calling setPostviewImageSize with size Original on the camera API of my Sony A6300. No matter what I do (ie. do startRec first, or change the order of this so it is after other calls), I always ge...

Latest answer by xaphod: After testing the A6300 further, I needed to wait with setPostviewImageSize for at least 4 seconds even after the camera says it is IDLE and ready and doing nothing Not cool, Sony...

0 votes 1 answer

camera sony

How I can set auto-ISO by Sony Remote Camera API?

How I can set auto-ISO by Sony Remote Camera API? I'm able to set any specific value, but what about "auto"? Since PlayMemories-Home app does it, there is a way, but it's not documented. Thanks, Oleg.

Latest answer by Simon Wood: Did you check/get 'available' (vs 'supported') values? Sometimes I have seen that some values are only usable if the camera is in a particular mode. You might try changing the shooting mode and see if...

0 votes 1 answer

api sdk camera sony

Controlling Sony A7RII with USB (NOT over WIFI)

In a project I'm developing I need to control Sony A7RII camera over USB. I saw that the SDK only supports Wifi but I decided to write this question anyway. Is there a way, official or not, to control...

Accepted answer by Robert - Sony: Unfortunately the only way you can control the camera right now is over WiFi. Here is a link to some answers of other common questions if it is helpful: https://developer.sony.com/develop/cameras/faq/

0 votes 3 answers

python camera sony sony-camera-api

Sony Camera Remote API, Liveview streaming slow

I'm using trying to stream live view of a SONY FDR-X1000V camera on desktop. I use python to call the API and download the package and use opencv to decode jpeg. When I run it, it can hardly catch one...

Accepted answer by Jason: The answer from @Simon Wood and @Robert - Sony are all very useful! I made two mistakes in my code. One is the payload size is 3 bytes instead of 4 bytes. Another is that I assumed the byte order is l...

Get Lifelog API result

I'm trying to use the Lifelog's API and i wrote this portion of code: . . . //MAIN ACTIVITY private void scaricaDati(){ token = spref.getString("access_token"); Log.i(TAG, "(scaricaDati) token = " + t...

Latest answer by Robert - Sony: I believe the answer may be that you are using JSONObjectRequest instead of StringRequest. JsonObjectRequest overrides the getBody() method so your getParam() method never runs. You can read more abou...

0 votes 1 answer

sony sony-lifelog-api

ssl peer unverified exception LIFElog api

I am getting ssl peer unverified error while fetching AccessToken from lifelog api. I am able to get the auth_code from the callback URL, but when I am trying to get Access_Token it is giving me SSL p...

Latest answer by Robert - Sony: Is there any chance you are using HttpClient to connect to Lifelog? This problem has appeared before because of the use of HttpClient. It looks like Google has removed support for this call in Android...

0 votes 1 answer

sony sony-lifelog-api

Can I access Lifelog APIs from my android application

When ever I tried to authorize my android application. But It gives me Unauthorized user error.. Can i access lifelog data on my android application using these lifelog REST API's? could some one sugg...

Latest answer by Robert - Sony: What steps have you tried to retrieve data from the API? Are you following the instructions from the Lifelog Authorization page? https://developer.sony.com/develop/services/lifelog-api/authentication...

1 vote 1 answer

sony sony-lifelog-api

Can I access lifelog API (java) and collect data (in background) every hour

My need is to get data of say 10 lifelog users (example my project teammates ) I want to analyse their data and do some scoring to create fitness competition within my team. If I have all these life l...

Latest answer by Robert - Sony: Actually the way to get the data from your teammates is by authenticating them with your app: https://developer.sony.com/develop/services/lifelog-api/authentication/ Once they have authenticated with...

0 votes 1 answer

sony sony-lifelog-api

Lifelog API Explorer: Authorization request could not be completed

I'd like to use the lifelog api for my own webapplication to store my own data and adapt it to my needs. I tried looking into it but unfortunately I'm not able to get the api explorer (to see how it w...

Accepted answer by Robert - Sony: Unfortunately the API Explorer is not working correctly right now. The team is working to fix the issue. In the meantime you can try postman to play around with the API. https://www.getpostman.com/ He...