Click here to Skip to main content
15,867,453 members
Home / Discussions / Android
   

Android

 
QuestionAndroid studio ListView Pin
Shuhrat Rahimov16-Oct-20 19:28
Shuhrat Rahimov16-Oct-20 19:28 
AnswerRe: Android studio ListView Pin
OriginalGriff16-Oct-20 20:21
mveOriginalGriff16-Oct-20 20:21 
AnswerRe: Android studio ListView Pin
Richard MacCutchan16-Oct-20 21:54
mveRichard MacCutchan16-Oct-20 21:54 
Questionandroid put loading message when load another acitvity Pin
GongTji17-Sep-20 1:29
GongTji17-Sep-20 1:29 
QuestionRe: android put loading message when load another acitvity Pin
David Crow17-Sep-20 4:36
David Crow17-Sep-20 4:36 
AnswerRe: android put loading message when load another acitvity Pin
GongTji20-Sep-20 0:27
GongTji20-Sep-20 0:27 
GeneralRe: android put loading message when load another acitvity Pin
David Crow20-Sep-20 4:45
David Crow20-Sep-20 4:45 
QuestionHiring Programmer for Android apps. Pin
User 149000167-Sep-20 19:56
User 149000167-Sep-20 19:56 
AnswerRe: Hiring Programmer for Android apps. Pin
OriginalGriff7-Sep-20 19:59
mveOriginalGriff7-Sep-20 19:59 
GeneralRe: Hiring Programmer for Android apps. Pin
User 149000168-Sep-20 15:23
User 149000168-Sep-20 15:23 
GeneralRe: Hiring Programmer for Android apps. Pin
Richard MacCutchan8-Sep-20 21:36
mveRichard MacCutchan8-Sep-20 21:36 
GeneralRe: Hiring Programmer for Android apps. Pin
User 1490001610-Sep-20 8:18
User 1490001610-Sep-20 8:18 
GeneralRe: Hiring Programmer for Android apps. Pin
Richard MacCutchan10-Sep-20 9:19
mveRichard MacCutchan10-Sep-20 9:19 
GeneralRe: Hiring Programmer for Android apps. Pin
klindouchous30-Dec-20 7:14
klindouchous30-Dec-20 7:14 
GeneralRe: Hiring Programmer for Android apps. Pin
thinkstartpl27-Apr-21 2:50
professionalthinkstartpl27-Apr-21 2:50 
AnswerRe: The popular and free movie viewing app for android? Pin
Richard MacCutchan8-Aug-20 23:06
mveRichard MacCutchan8-Aug-20 23:06 
QuestionXamarin Forms App Calling Web API Pin Pin
Kevin Marois20-Jul-20 7:26
professionalKevin Marois20-Jul-20 7:26 
'm learning Xamaring Forms. I want to test connecting to a Web API. I have a an Asp.Net Framework Web API running and I can connect to to it.
However, in my Xamarin Forms page, when I call it, the call to GetAsync never returns:
public class MainPageViewModel : _ViewModelBase
{
    private string url = "<a href="https://localhost:44340/api/Test/GetAll"><a href="https://localhost:44340/api/Test/GetAll">https://localhost:44340/api/Test/GetAll</a></a>";
    public List<TestDataEntity> Items { get; set; }
    public MainPageViewModel()
    {
        GetData();
    }
    private async Task GetData()
    {
        try
        {
            HttpClient client = new HttpClient();
            HttpResponseMessage response = await client.GetAsync(url);  // <====== NEVER RETURNS

            if (response.IsSuccessStatusCode)
            {
                string content = await response.Content.ReadAsStringAsync();
                Items = JsonConvert.DeserializeObject<List<TestDataEntity>>(content);
            }
        }
        catch (Exception e)
        {
            throw;
        }
    }
}
I can paste the URL into a browser and see the JSON results. If the WebAPI is NOT running the GetAsync throws.

Anyone have any thoughts on this?
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.

AnswerRe: Xamarin Forms App Calling Web API Pin Pin
Richard Deeming20-Jul-20 21:38
mveRichard Deeming20-Jul-20 21:38 
GeneralRe: Xamarin Forms App Calling Web API Pin Pin
Kevin Marois21-Jul-20 6:22
professionalKevin Marois21-Jul-20 6:22 
GeneralRe: Xamarin Forms App Calling Web API Pin Pin
Richard Deeming21-Jul-20 6:56
mveRichard Deeming21-Jul-20 6:56 
GeneralRe: Xamarin Forms App Calling Web API Pin Pin
Kevin Marois21-Jul-20 6:58
professionalKevin Marois21-Jul-20 6:58 
GeneralRe: Xamarin Forms App Calling Web API Pin Pin
Richard Deeming21-Jul-20 23:17
mveRichard Deeming21-Jul-20 23:17 
GeneralRe: Xamarin Forms App Calling Web API Pin Pin
Kevin Marois22-Jul-20 6:45
professionalKevin Marois22-Jul-20 6:45 
GeneralRe: Xamarin Forms App Calling Web API Pin Pin
Richard Deeming22-Jul-20 7:30
mveRichard Deeming22-Jul-20 7:30 
GeneralRe: Xamarin Forms App Calling Web API Pin Pin
Kevin Marois22-Jul-20 7:36
professionalKevin Marois22-Jul-20 7:36 

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.