Notes for Mango microdisk Development

Source: Internet
Author: User

Due to the needs of course learning, during this period of time, I was studying the development of Windows Phone 7. I found that WP7 development materials in the blog garden have appeared the same in recent times, and many cool people's videos are lacking,ArticleI have learned a lot. Here, I would like to thank the blog for providing us with such a good experience.CommunityThe platform is okay. I will not talk nonsense much. Next I will summarize the recent small project-mango microdisk. I also hope that my friends in the garden will criticize and correct the problem and the technical level and time, there are still many shortcomings. Please click it.

First preview the interface:

 

Key points of the project

1. Rest Service

2. encapsulate the SDK

3. Silverlight Toolkit

4. Independent storage space

5. Multi-task download

Mango micro-disk is developed based on the Rest service of Sina micro-disk, including basic file management, popular resource search and download, and local file management. The Interface Design references the design of UC, which is very simple.

Because the microdisk API is still not complete, it is still difficult to develop it. You need to encapsulate the SDK by yourself. Currently, the official API provided by the microdisk is based on PHP and does not exist. net version, the first task is encapsulation SDK simplified development, micro disk official API: http://vdisk.me/api/doc (first need to register the Development Account, get appkey and appsecret ).

First, we need to understand the rest service. You can refer to the itech article.

Http://www.cnblogs.com/itech/archive/2011/02/23/1962549.html

We can encapsulate the rest service operation class by ourselves, or adopt the mature third (hammock or restsharp). I use hammock. For hammock, we only need the following simple steps:

1. instantiate the restclient object and set the corresponding attributes.

2. instantiate the restrequest object and add the request parameters.

3. asynchronous request

4. Callback Function Processing

The micro-disk API officially provided by Sina microdisk. The official description is based on HTTP and data is returned in JSON format. Therefore, we need to process the returned data. We recommend that you use a third-party class library for a large amount of JSON data, instead of using datacontractjsonserializer (system. runtime. serialization. in the JSON namespace), newtonsoft is strongly recommended. JSON. windowsphone:

The following describes how to encapsulate SDK. SDK in hammock and newtonsoft. JSON.

Wp7.1 mango does not contain many new controls, more practical and comprehensive Silverlight for Windows Phone toolkit and coding4fun tools: http://silverlight.codeplex.com/

And http://coding4fun.codeplex.com/

For more information about Silverlight for Windows Phone toolkit, we recommend that you read Windows Phone toolkit Aug 2011 in depth (English version). This book is a comprehensive introduction. The author is very careful. I hope you will have time to study it. : Http://www.windowsphonegeek.com/WPToolkitBook

Coding4fun online documentation is also good, http://coding4fun.codeplex.com/documentation

These controls play a major role in project development. Of course, I still want to have a deeper understanding and learning, such as how to dynamically load ListBox, when the scroll bar slides to the bottom, it automatically loads the next part of the data. How can we determine whether the scroll bar has slipped to the bottom (there are also a lot of information on the Internet, You can Google it yourself), as well as data caching, one-time loading will definitely affect performance, which will be further studied by me in the future.

In WP7, the concept of independent storage space is well written in this part of the park, so I will not go into details, and my writing level is not high. For more information, see

Multi-task download. I used the thread pool to implement multi-thread download for WP7.

Well, it basically includes these key points. Of course there are many trivial things that are not mentioned. Maybe this note does not contain too manyCodeThis is the first article I have published in the blog for so long. I just want to record the recent development process and summarize it. We will share and discuss technical issues with you later. Thank you for your attention!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.