Click here to Skip to main content
14,300,394 members
   

Mobile

 
GeneralRe: WP7? Pin
littleGreenDude18-Mar-15 12:52
memberlittleGreenDude18-Mar-15 12:52 
QuestionI need the android game source code Pin
YASEEN AHMAD11-Feb-15 19:02
memberYASEEN AHMAD11-Feb-15 19:02 
GeneralRe: I need the android game source code Pin
Kornfeld Eliyahu Peter11-Feb-15 19:37
mveKornfeld Eliyahu Peter11-Feb-15 19:37 
AnswerRe: I need the android game source code Pin
ZurdoDev16-Feb-15 2:49
professionalZurdoDev16-Feb-15 2:49 
QuestionWhy would Microsoft not support all options to setsockopt? Pin
charlieg3-Feb-15 12:38
membercharlieg3-Feb-15 12:38 
AnswerRe: Why would Microsoft not support all options to setsockopt? Pin
digimanus18-Aug-15 1:32
memberdigimanus18-Aug-15 1:32 
QuestionHow to create a video in C# (.net 3.5) on a motorola MC75A Pin
volontier27-Jan-15 22:03
membervolontier27-Jan-15 22:03 
QuestionProblem fetching page in Windows Phone 8.1, VB.NET Pin
BlackChart3-Jan-15 10:57
memberBlackChart3-Jan-15 10:57 
I'm trying to make a small app to fetch some numbers from my smarthome webpage.

When trying the query in a browser like Chrome (uri: http://smarthome.trab.dk/wpf/getData.php?g=power) everything works.

In the app, it just stalls - no exceptions or errors but no data either.

The module is like this:
Public uriString As String = "http://smarthome.trab.dk"

Public Async Function getData(ByVal gType As String) As Tasks.Task(Of String)
    Try
        Dim Resp As String = Nothing

        Using httpClient As New HttpClient
            httpClient.BaseAddress = New Uri(uriString)
            httpClient.Timeout = TimeSpan.FromSeconds(10)

            Dim response As HttpResponseMessage = Await httpClient.GetAsync("/wpf/getData.php?g=" + gType.ToLower)

            Resp = Await response.Content.ReadAsStringAsync
        End Using

        Return Resp
    Catch webEx As HttpRequestException
        MessageBox.Show(webEx.Message)
    Catch ex As Exception
        MessageBox.Show(ex.Message)
    End Try
End Function

Public Function ACount() As String
    Dim resp As String = getData("power").Result

    Return "Actual: " + resp
End Function


Can anyone see what the problem is?
Regards,
Morten Trab

AnswerRe: Problem fetching page in Windows Phone 8.1, VB.NET Pin
David C# Hobbyist.3-Jan-15 13:10
professionalDavid C# Hobbyist.3-Jan-15 13:10 
GeneralRe: Problem fetching page in Windows Phone 8.1, VB.NET Pin
BlackChart4-Jan-15 4:49
memberBlackChart4-Jan-15 4:49 
GeneralRe: Problem fetching page in Windows Phone 8.1, VB.NET Pin
David C# Hobbyist.5-Jan-15 13:04
professionalDavid C# Hobbyist.5-Jan-15 13:04 
GeneralRe: Problem fetching page in Windows Phone 8.1, VB.NET Pin
BlackChart6-Jan-15 7:36
memberBlackChart6-Jan-15 7:36 
GeneralRe: Problem fetching page in Windows Phone 8.1, VB.NET Pin
BlackChart6-Jan-15 7:44
memberBlackChart6-Jan-15 7:44 
GeneralRe: Problem fetching page in Windows Phone 8.1, VB.NET Pin
David C# Hobbyist.6-Jan-15 13:05
professionalDavid C# Hobbyist.6-Jan-15 13:05 
QuestionXmpp library for Windows phone Pin
mahesharya16-Dec-14 3:46
membermahesharya16-Dec-14 3:46 
AnswerRe: Xmpp library for Windows phone Pin
pixcraft15-Jan-15 23:30
memberpixcraft15-Jan-15 23:30 
QuestionHello Doug, I am getting issue in firmware update in GPS Y modem file write using C# Pin
bhalaniabhishek10-Dec-14 8:39
memberbhalaniabhishek10-Dec-14 8:39 
SuggestionRe: Hello Doug, I am getting issue in firmware update in GPS Y modem file write using C# Pin
Richard MacCutchan10-Dec-14 22:14
protectorRichard MacCutchan10-Dec-14 22:14 
GeneralRe: Hello Doug, I am getting issue in firmware update in GPS Y modem file write using C# Pin
den2k8810-Dec-14 22:39
professionalden2k8810-Dec-14 22:39 
GeneralRe: Hello Doug, I am getting issue in firmware update in GPS Y modem file write using C# Pin
bhalaniabhishek11-Dec-14 9:21
memberbhalaniabhishek11-Dec-14 9:21 
GeneralAnyone is interested in remote game development? Pin
Member 112856834-Dec-14 20:07
memberMember 112856834-Dec-14 20:07 
GeneralRe: Anyone is interested in remote game development? Pin
Richard MacCutchan4-Dec-14 21:30
protectorRichard MacCutchan4-Dec-14 21:30 
JokeRe: Anyone is interested in remote game development? Pin
Aavishkar Jugwanth16-Feb-15 1:44
memberAavishkar Jugwanth16-Feb-15 1:44 
Questionabout IOS8 self signed code and xamarin Pin
AhmedOsamaMoh16-Nov-14 19:59
memberAhmedOsamaMoh16-Nov-14 19:59 
QuestionAndroid Pin
RohithNampally16-Nov-14 7:02
memberRohithNampally16-Nov-14 7:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.