Click here to Skip to main content
15,918,808 members
Home / Discussions / Android
   

Android

 
AnswerRe: Getting illegal character error when write a value like "Amit 😀 " using XMlSerilizer. Pin
Richard MacCutchan4-Sep-15 21:42
mveRichard MacCutchan4-Sep-15 21:42 
GeneralRe: Getting illegal character error when write a value like "Amit 😀 " using XMlSerilizer. Pin
amit_834-Sep-15 23:21
professionalamit_834-Sep-15 23:21 
GeneralRe: Getting illegal character error when write a value like "Amit 😀 " using XMlSerilizer. Pin
Richard MacCutchan5-Sep-15 0:40
mveRichard MacCutchan5-Sep-15 0:40 
AnswerRe: Getting illegal character error when write a value like "Amit 😀 " using XMlSerilizer. Pin
Kornfeld Eliyahu Peter5-Sep-15 20:30
professionalKornfeld Eliyahu Peter5-Sep-15 20:30 
AnswerRe: Getting illegal character error when write a value like "Amit 😀 " using XMlSerilizer. Pin
amit_839-Sep-15 20:40
professionalamit_839-Sep-15 20:40 
Questionandroid Pin
Member 119531794-Sep-15 18:44
Member 119531794-Sep-15 18:44 
AnswerRe: android Pin
Richard MacCutchan4-Sep-15 21:41
mveRichard MacCutchan4-Sep-15 21:41 
QuestionRe: android Pin
David Crow6-Sep-15 14:02
David Crow6-Sep-15 14:02 
Questionandroid Pin
Member 119536642-Sep-15 4:19
Member 119536642-Sep-15 4:19 
AnswerRe: android Pin
Richard MacCutchan2-Sep-15 5:39
mveRichard MacCutchan2-Sep-15 5:39 
Questionandroid Pin
Member 119536642-Sep-15 4:17
Member 119536642-Sep-15 4:17 
AnswerRe: android Pin
David Crow2-Sep-15 6:05
David Crow2-Sep-15 6:05 
QuestionHow to Parsing kSoap response Pin
kk5552-Sep-15 3:21
kk5552-Sep-15 3:21 
QuestionRe: How to Parsing kSoap response Pin
David Crow2-Sep-15 6:07
David Crow2-Sep-15 6:07 
QuestionHow to parse result returned from `ls -l` in Android Pin
Mukhtar Oyelayo1-Sep-15 3:49
Mukhtar Oyelayo1-Sep-15 3:49 
QuestionRe: How to parse result returned from `ls -l` in Android Pin
David Crow2-Sep-15 6:04
David Crow2-Sep-15 6:04 
AnswerRe: How to parse result returned from `ls -l` in Android Pin
Richard MacCutchan2-Sep-15 6:36
mveRichard MacCutchan2-Sep-15 6:36 
QuestionHelp urgently needed on Http Injection in Android Pin
Mukhtar Oyelayo28-Aug-15 19:52
Mukhtar Oyelayo28-Aug-15 19:52 
AnswerRe: Help urgently needed on Http Injection in Android Pin
Richard MacCutchan28-Aug-15 22:40
mveRichard MacCutchan28-Aug-15 22:40 
GeneralRe: Help urgently needed on Http Injection in Android Pin
Mukhtar Oyelayo29-Aug-15 11:57
Mukhtar Oyelayo29-Aug-15 11:57 
GeneralRe: Help urgently needed on Http Injection in Android Pin
Richard MacCutchan29-Aug-15 21:27
mveRichard MacCutchan29-Aug-15 21:27 
QuestionMonodroid AsyncTask OnProgressUpdate Not Working Pin
Member 1113168818-Aug-15 6:17
Member 1113168818-Aug-15 6:17 
I am trying to create my first asynctask. In asynctask, after calling PublishProgress in DoInBackground , OnProgressUpdate must execute. But unfortunately it is not working in my code...

Can anybody please tell me what is wrong with my code?

Thanks in advance.



C#
using System;
using Android.App;
using Android.Content;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;

namespace AndroidApplication1
{
[Activity(Label = "AndroidApplication1", MainLauncher = true, Icon = "@drawable/icon")]
public class Activity1 : Activity
{
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
SetContentView(Resource.Layout.Main);
Button btn = FindViewById(Resource.Id.MyButton);
btn.Click += new EventHandler(btn_click);

    }

    void btn_click(object sender, EventArgs e)
    {
        new AsyncTest().Execute();
    }

 }




public class AsyncTest : AsyncTask
{
    int Progress;

    protected override void OnPreExecute()
    {
        Console.WriteLine("Pre Execute");
    }

    protected void OnProgressUpdate()
    {
        Console.WriteLine("Progress Update");
    }

    protected override Java.Lang.Object DoInBackground(params Java.Lang.Object[] @params)
    {

        while (Progress <10)
        {
            Console.WriteLine("Do in background");
            Progress++;
            PublishProgress(Progress);
            System.Threading.Thread.Sleep(10);
        }
        return null;
    }


    protected override void OnPostExecute(Java.Lang.Object result)
    {
        Console.WriteLine("Post Execute");
    }


}
}

SuggestionRe: Monodroid AsyncTask OnProgressUpdate Not Working Pin
David Crow20-Aug-15 5:52
David Crow20-Aug-15 5:52 
QuestionHow to store large data in an Android application Pin
jasonalien18-Aug-15 3:13
jasonalien18-Aug-15 3:13 
AnswerRe: How to store large data in an Android application Pin
Afzaal Ahmad Zeeshan18-Aug-15 4:47
professionalAfzaal Ahmad Zeeshan18-Aug-15 4:47 

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.