如果soemone知道我需要使用哪些API,如果我想创建一个导入器,就像facebook中的导入器一样.导入用户及其电子邮件.
我创建了一个自定义对话框,并且我插入了两个按钮,一个叫做send,另一个是取消.
我想知道在按下取消时热关闭对话框?
我试图找到列表视图的id,但它只是这样输入不起作用:this.view =(ListView)findViewById(R.id.list); R.id.list - >不工作,因为它无法使用我自己的自定义列表找到id Iam.
<ListView
android:id="@+id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
Run Code Online (Sandbox Code Playgroud) 如何从WCF服务返回某种列表,这是我的WCF服务中的方法.
我的界面:
[OperationContract]
[WebInvoke(Method = "GET",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Wrapped,
UriTemplate = "Locations")]
IList<Location> GetLocations();
public IList<Location> GetLocations()
{
Pazar.Data.Repositories.LocationRepository locRepository =
new Pazar.Data.Repositories.LocationRepository();
return locRepository.GetRootLocations().ToList<Location>();
}
Run Code Online (Sandbox Code Playgroud)
这就是我的GetRootLocations样子,它返回IQueryable,我想知道我是否可以IQueryable从我的WCF服务返回?
public IQueryable<Location> GetRootLocations()
{
IQueryable<Location> locations = GetAll().Where(p => !p.ID_Parent.HasValue).OrderBy(p => p.Sequence);
return locations;
}
Run Code Online (Sandbox Code Playgroud) 如果有可能知道我从哪个家长来自孩子那么我可以知道,所以我可以根据父母的活动来做不同的事情.
这就是Iam对孩子的看法.但是我不知道如何在孩子中处理这个以检查谁是父母.
public void chooseLocation(View v){
Intent i = new Intent();
i.setClass(InsertAd.this, Location.class);
startActivityForResult(i, REQ_CODE_SELECT_LOCATION);
}
Run Code Online (Sandbox Code Playgroud)
以上代码用于其中一个父母,是否有某种方式我可以使用"EQ_CODE_SELECT_LOCATION"?
我还想知道如何将数据发送到子活动?