Microsoft Band tiles - tiles

When I create a new tile (TileManager.AddTileAsync) that tile does not appear in the Microsoft Health app on the phone.
Additionally, if I loop through all the tiles in the tiles collection (using TileManager.GetTilesAsync() that new tile is the only one that is returned -- the default tiles provided with the band are not returned. Am I correct in assuming that it is up to the app I create to provide a storage mechanism and tile management for these tiles? Where to store it? In isolated storage on the phone?

Assuming you have the latest version of the Microsoft Health application, all custom Tiles added to the Band should be listed as a "Third Party Tile" on the Manage Tiles page of the application. This ensures that Tiles can be removed from a Band even when the application that added the Tile has been uninstalled. When called by an application, IBandTileManager.GetTilesAsync() will enumerate only Tiles that have previously been added by that application. That is, applications will only see its own Tiles and no others, nor will it see the built-in Tiles.
If the application uses a fixed number of custom Tiles I would recommend that each custom Tile use a fixed (i.e. static) Tile ID (as opposed to generating a unique GUID when adding the Tile to the Band). This ensures that application can identify each of its Tiles without using any other storage mechanism and regardless of the phone with which the Band happens to be paired.
If the application generates a dynamic number of Tiles, then obviously it must store a map between a particular Tile (ID) and the entity represented by that Tile.

Related

Get a collection of detected objects from PredictionClient

Am using google cloud automl java sdk. I have created my own trained model. Is there any way that I can get access to the collection of detected objects in an image so that I can draw bounding boxes around them. Right now I get only the detected labels.
This is not currently supported. Its a known feature request, so stayed tuned

Hide layers vs adding layers (WMS or WMTS)

I am creating a web map that will contain at the moment 12 layers (different layers from the same WMS or WMTS service.
Of those layers, only up to 3-4 at a time will be shown, the others will not be visible unless the user enables them.
The question is: would it be better to
1. include all the hidden layers in the mapLayers array with visible set to false and use setVisible to show/hide layers or
2. removing/adding a layer every time a user disables a layer/enables another?
My concerns are mainly from a performance perspective but explanations about other motivations are also welcome.
I have tried taking a snapshot with the profiler in Chrome dev tools and it looks like the size of it is not related to the presence/absence of the hidden layers.

How to render and retrieve image data on Google Project Tango?

I'd like to render the live image data on a GL surface (as shown in various Project Tango samples), and at the same time record (encode) it via a MediaCodec.
(On an Android Lollipop device, I've accomplished that using the camera2 interface and multiple surface targets, which works fine, but thus far Tango is pre-Lollipop...)
From other answers, it appears that you have to use the C API to access the image data.
The C API provides two camera frame functions -- TangoService_connectTextureId() and TangoService_connectOnFrameAvailable(). However, the documentation states "Use either TangoService_connectTextureId() or TangoService_connectOnFrameAvailable() but not both."
Why not both?
How do I best render and retrieve the image data?
The Pythagoras release now allows for simultaneous use of color and color texture callbacks now. That said, you want to use the connectOnFrameAvailable if you want to process the image, you'd end up doing extra unnecessary work if you try and peel it out of the texture.

Interactive Maps in Wp7

I'm curious if I can do following this in wp7.
I want to do some basic things in park like:
Pan, zoom,
display POI layer.
Route from current location to park attractions,
concession stands,
misting stations,
bathrooms, etc.
Display additional info.
like height requirments and thrill levels when tapping on a ride
location.
Is it possible?
I think pan is not possible available. you have to set the zoom level explicitly or via the map's zoom button. There are a few Bing Maps API you can tap on for POI data. you should look at the following services
Route Service - Allows you to calculate location from one point to another http://msdn.microsoft.com/en-us/library/cc966826.aspx
Search Service - Allows you to do location searches eg. find nearby restaurants, petrol stations etc.
Other useful services
Geocode Service - Allows you to resolve address using coordinates and vice versa
Imagery Service - Gives you access to image data to build maps

Creating custom GPS maps for WP7

So basically I am trying to create a custom GPS map for my WP7 application. I did find a great website with step by step instructions.
But in this example they used a program called OziExplorer. I tried to get this program and now i have 3versions of it. which are(I don't know which to use):
oziexplorer 3d
oziexplorer ce
oziexplorer pc
What i figured was that oziexplorer can only be used for windows pocket pc meaning winmo6.5 so i dont know if this is compatible with WP7.
I did find another website where an actual wp7 app has been released that allows a user to take a picture of a map and calibrate it with 2 points of location and the image can then be used as a gps map.
If anyone could possibly point me in the right direction as to how to begin creating a custom map to use in a wp7 app I would be ever so grateful. The map is supposed to be a map of a park.
Thanks in advance for everyones help and sorry if i sound like a noob..its just google has finally failed me..
Regards
shan
One approach I've seen for making map tiles is to use Microsoft MapCruncher - see http://research.microsoft.com/en-us/um/redmond/projects/mapcruncher/ and http://www.bdcc.co.uk/GoogleCrunch/Crunch.htm - this enables you to build custom tiles for an overlay.
This blog - http://dotnetbyexample.blogspot.com/2010/10/showing-open-source-maps-on-windows.html - tells you how to show custom tiles within the Bing Maps Silverlight viewer.
I would guess (don't know) that OziExplorer tiles could be used in this way - you just need to find a way to map the tile co-ordinates to a custom tile layer.
Another option for you is to use OpenStreetMap data:
You can use CloudMade's services - www.cloudmade.com - to produce map tiles with customised look-and-feel.
You can produce your own tiles using MapNik - but (as I'm sure you are already aware) the processing and storage size needed for map tiles is large

Resources