Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/387.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java android的服务参考?_Java_Android_Vb.net_Service Reference - Fatal编程技术网

Java android的服务参考?

Java android的服务参考?,java,android,vb.net,service-reference,Java,Android,Vb.net,Service Reference,我有一个需要从android应用程序访问的服务。目标只是从文本框中发送一个数字值并返回一个结果字符串 我知道在VB中使用服务引用是可能的,我已经这样做了。以下是示例代码: Private Async Sub Button_Click(sender As Object, e As RoutedEventArgs) Dim service As New ServiceReference2.Service1Client(ServiceReference2.Service1Clien

我有一个需要从android应用程序访问的服务。目标只是从文本框中发送一个数字值并返回一个结果字符串

我知道在VB中使用服务引用是可能的,我已经这样做了。以下是示例代码:

    Private Async Sub Button_Click(sender As Object, e As RoutedEventArgs)
    Dim service As New   ServiceReference2.Service1Client(ServiceReference2.Service1Client.EndpointConfiguration.BasicHttpBinding_IService1)
    Try
        lblReturn.Text = Await service.GetDataAsync(CInt(txtValueSent.Text))
    Catch ex As Exception
        lblReturn.Text = ex.Message
        If Not ex.InnerException.Message Is Nothing Then
            lblReturn.Text = lblReturn.Text + ex.InnerException.Message
        End If
    End Try
End Sub 
经过研究,我似乎找不到任何方法可以像使用Android Studio的Visual Studio那样快速而简单地获得结果

是否有可用的工具以类似的方式工作? 如果没有,建议采用哪种方法来实现相同的结果?
是否有任何有用的链接可以帮助启发我?

。您是否有任何有用的链接可以帮助我搜索?我的朋友没有注意到该链接。谢谢