windows phone supported capturing formats - windows-phone

I'm working on a project for windows phone and I need to encode PCM to G.711.So I need device to capture audio with these features: 16 bits, 8000 sample/s.
capturesource.AudioCaptureDevice.SupportedFormats
returns a list of different supported capture formats.When I run a Silverlight app on my pc this code returns 10 different formats which include the mentioned format I need.However as I use the code for windows phone app and I run it on windows emulator it only returns 6 format which doesn't include appropriate format for my purpose.
But my questions are:
Is the presented supportedformats property using windows phone emulator is as same as that of real windows phone device or it can be different?
Is there a way to change the capturing features of device?

Related

Rtklib: use rtklib in an android which supports raw measurements to get accurate positions

I am working on a project where I obtain raw gps measurements in a supported Android phone and use rtklib's Android port that is rtk-gps to correct this data with correction from a dgps base station.
So my question is - is this achievable using rtklib? Also I see that rtklib gui expect rinex format so do I need to convert the raw data i get from mobile to rinex format and feed to rtklib library?
Should be possible with Android 10 or later where GNSS duty cycle can be disabled - http://www.pilablu.de/apps/gps/precise-gps-en

What are the equivalents of intents in Windowsphone 8 application development?

I thought of an app to upload photos when they are taken. How do I notify my app when a photo has been taken in wp8 programmatically? Are there anything similar to intents in android? In android, I would listen for an intent when a photo has been taken and get that photo. In my windows phone 8 application. how do I get the system to notify my application when the photo has been taken and process it?
There is a specific API since Windows Phone 8 that allows auto-uploading photos for third-party apps: Auto-upload apps for Windows Phone 8 (MSDN)
Maybe this is not exactly what you are looking for since the agent will only launch under certain conditions and not immediately when a new photo is taken. For example, Wi-Fi and an external power source are required, in order to reduce the battery drain.
However that's the only viable solution for auto-uploading photos in a background task.

CoreBluetooth - get all devices connected to Bluetooth peripheral

Is there a way how to get list of all devices connected to the Bluetooth peripheral?
I want to connect to iBeacon and check if another iPhone is connected to it.
No, two reasons why not:
iBeacons are not connected to the iOS device, iBeacons are broadcast only and no back communication exist from the phone to the beacon.
Knowing details of other BT 4.0 Centrals connected to a Peripheral are not in line with the the privacy features of Bluetooth 4.0. iOS and other Centrals are are using resolvable private addresses, in order to avoid situation like you are describing.
#barbazoo is correct that you cannot do exactly what you are asking because iBeacons only transmit data -- they have no idea what devices see them.
You can accomplish something similar, however, if you have an app running on each of the iOS devices you mention, and you have a server where you can build a web service. The web service would expose two methods:
reportIBeaconVisible(iBeaconProximityUUID, iBeaconMajor, iBeaconMinor, myPhoneAdvertisingId)
queryVisiblePhones(iBeaconProximityUUID, iBeaconMajor, iBeaconMinor)
The app would report each iBeacon it sees using the first method, passing the iBeacon's identifiers, along with the phone's advertising identifier to the server.
The app could then use the second method to ask the server what other phones have seen the exact same iBeacon, which would return a list of phone advertising identifiers.
You'd have to have logic on the phone to only report data to the server at a reasonable frequency. You'd also need code on the server to automatically delete phone records in the list if the phones haven't reported seeing a beacon in a certain time interval.

Windows 8 Preview Samples

I have downloaded the Metro Style Application Sample that is available on the Microsoft Web Site. There are lots of examples that shows how you can interact with the hardware device (sensors,gps,etc). I have of course downloaded the Windows 8 Developer preview to execute those examples. My question is : how can I test those samples that uses the device hardware (gps, accelerometer) or that accesses to the phone features (sms,etc) using the emulator?
At the moment there are not devices that support windows 8 (the first phone will probably come out this autumn) ?
I'd like to start to develop some metro style applications to be ready when windows 8 store will be online but using just the emulator is a big limitation isn't it?
Yes and no. There are slate devices that can run the Windows 8 Dev Preview just fine.
If you are unable to get one of these, one option is to create your own interfaces for all the devices. Underneath you can have two implementations.
First one, you connect to the actual underlying devices via the Windows 8 APIs. Sure you won't be able to test these until you have a device but such is life.
The second implementation can be a dummy one. For example, you can have a thread running and every 2-3 seconds publishing some GPS event.
That way you at least have some dummy device data coming in that you can test with for the time being.

MC75 using symbol.imaging.device libraries for program

UPDATE:
I found another library in the Windows Mobile - CameraCaptureDialog - this did the job - never did figure out the zero length available devices...
Hi all,
I have a .net application running on a symbol mc75 (motorola) using the scanner. I am now trying to add functionality for the camera and I am running into issues.
To find the 'devices' you are supposed to use the library's 'available devices' function.
With the barcode it is symbol.barcode.devices.availabledevices and it returns two items (you can scan from the scanner or using the camera device)
However, when I do the camera library it does not find any devices - symbol.imaging.devices.availabledevices returns 0
I can take a picture using the software on the mc75, so I know the functionality is there, I just can't figure out how to get to it programmatically....
Does anyone have any ideas?
Thanks for any help!
I had the same problem - Symbol.Imaging.Devices.Availabledevices returned zero devices but I could use the scanner without problems.
When I installed the Imager API Support v1.00 For Color Camera, Symbol.Imaging.Devices.Availabledevices returned 1 device and I could use Imager from Symbol.Imaging to take photos.