Mobile app development notes

Source: Internet
Author: User
Mobile development platforms:
1. Window Mobile, which is more convenient to use. NET Compact framework2.0;
Use vs 2008 for development and desktop ProgramDevelopment is similar.

2. For platforms other than Windows Mobile, it is convenient to develop with j2s and has a wide range of applicability.

Call the. NET web service by using j2ec2.
When the Web service returns a class, a class can be automatically generated when a proxy is generated.

Failed to return byte [] Because the byte [] data returned by. NET is base64-encoded
Directly enable the Web service to convert byte [] to a bit base64 string, and then decode the base64 string on the price j2_client.
In this way, the server-side statistical charts and other images can be displayed on the client.

Return string [] [] call failure

The returned XML is parsed by a jsr-172, which can return the. NET dataset. The Web Service uses dataset. getxml ()
The string that dataset converts to XML, and the client parses XML in the form of sax.

After the returned XML is parsed, it can be displayed as tableitem. The interface is not very nice and simple.
Tableitem can only display values in the string [] [] mode and cannot be dynamically increased. You must first construct data in the string [] []
Then bind to the interface

The Web service can be normally called on the simulator. Because the Local Web Service is used at the beginning, the default
The URL is localhost. Although the server address of the wsclient production proxy is modified
Localhost, so it cannot be accessed on the mobile phone, and the ioexception-34 exception is prompted. Later, I directly modified the proxy text.
The server address in the device, and the mobile phone can access the Web Service normally.

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.