How to build a dynamic tile in a Mango App - tiles

I'm building a WP7 (Mango) app that reads data from a SQL Server local database that contains events happened on a certain date. I would like to implement a live tile that shows the number of events happened on the current date and, when clicked, goes to the details page (not the home page).
I've read that it can be done using secondary tiles, I would like to know if I can do it using the "primary" live tile of the app.

You can update secondary and primary tiles in the same way.
There is an example on how to do this at http://msdn.microsoft.com/en-us/library/ff431744(v=vs.92).aspx#BKMK_PushAndTiles

Related

Is there a way to know if the windows screen display is updated/changed

We have a requirement to check any customer is using the application. On the client system our application will run in full screen mode. Based on the user activity the display will be updated.But the problem is I dont have any access to the source code of the application. So I am thinking if I can get any general events from windows when the screen is updated. If the screen is updating then I can consider that some customer is using the application
I am thinking of other approach is to get the screenshots in different intervals and compare. If both the images are matched then assuming it to be in idle mode or else some user activity is going on. If Ican get display update events then that will be easy for to handle.
Please let me know if you have any other approaches

React Native - Image picker with images from online?

I am currently using Google Places API on react native to get an array of photo URLs from a specific site. However, I would like my user to pick the ones that they want us to save in our servers (multiple images), and also set as primary picture for their profile.
I've been looking through many image picker libraries on React Native but all of them focus on getting data from the device, which is perfect, but not what I am looking for.
I would like to know if anyone has found any library like react-native-image-crop-picker that lets the user select multiple images from an array of image urls that I pass.

Google apps script rendering a chart through an UI, how to display the chart

I have created a UI web app in google apps script which access a database in a spreadsheet, manipulates the data and then puts it into a chart. Now my problem is that I get get the chart to be displayed back into the Ui. I don't even know if that is a possibility, but something along those lines. This is what i have tried thus far:
First I created a chart in the doGet function and then tried to
access and edit after i took in some info from the user. The problem
was that when i .build() the chart it become a generic object and
cannot be edited.
Second I tried to .add the chart to the Ui after
taking in info, but i could not get the ui to update. again i don't
know the right way to do this.
Let me know if you need any additional info.
Here's a great recent blog post from Google on coding up dashboards in Apps Script complete with a new charts dashboard tutorial on the developer site. It strikes me that it may be suitable for you as it lets you prepare the data but then you can allow the user to interact with the UI via the chart controls and you don't have to wire up so much in "native" uiApp yourself.
Let us know how you go.
You have to recreate your chart completely, i.e. every time your spreadsheet is changed (for instance new row is inserted), you have to take data from it, build a new chart, delete old one and place the new chart instead of the deleted one.

organizing iOS app that gets data from server?

I am making an app that uses http requests to display images of documents. It will open up on a main page with options of documents and once you click on a document it will read images from the server (note there are like 200 images) and you can flip through the pages. My question: how do a create an app that will get a bunch of images from the server without having to create a bunch of individual Xcode pages? And it has to be able to do it with multiple books based on which one you click. And it should be able to handle the addition of documents to the server.
Thank you so much in advance!
if i understand your question, by 'create page in xcode' you mean in 'interface builder'.
if you have much images you have to load, create and display them programmatically not with interface builder, and take care to load them asynchronously to not freeze your app ( the responde of how you do is in your other question about cacheing images ;) ).

Is it possible to merge the difference images using < canvas >

I am working on developing an AJAX based application similar to VNC .. I am able to reproduce keyboard and mouse interaction from the browser to the remote machine. But when it comes to display part .. I am relying on page refresh that rederes latest captured desktop image.
I wanted to improve the display aspects by using AJAX requests to get delta of current image capture and the previously rendered image from the server .. and try to merge the delta content received in JAVA script using < canvas > to rebuild the display. If able to do so my application will be highly usable.
I would appreciate if experts would comment on feasibility and practicality of the approach.
Regards,
Parag
That should be possible. E.g. by fetching new images from the server represented as data URLs together with coordinates of where to place them using drawImage().

Resources