我有一个Android应用程序在三星Captivate i897和HTC Sensation 4G上运行没有问题,但当我在HTC Desire X(Stock ROM)上运行时,它将此消息写入LogCat:
Error opening frame buffer errno=13 (Permission denied)
Run Code Online (Sandbox Code Playgroud)
并且AsyncTask不执行.
我使用内存中的一些图像.一切顺利,可能有什么问题?
我有2个班:
public class testClass1
{
public string Name { get; set; }
public testClass2 testClass2Object { get; set; }
}
public class testClass2
{
public testClass2() { }
public testClass2(int i) { TestProperty = i; }
public int TestProperty { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
我想用以下方法返回第一类的对象webMethod:
[WebMethod]
public testClass1 testMethod()
{
testClass1 test = new testClass1();
test.Name = "stackoverflow";
test.testClass2Object = new testClass2(2);
return test;
}
Run Code Online (Sandbox Code Playgroud)
但我没有testClass2从testClass1对象获得属性的值.
我试过[Serializable]
[XmlInclude(typeof(testClass2))]注释但没有改变.有什么建议?