Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7901541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:14:50+00:00 2026-06-03T09:14:50+00:00

I am currently programming vor Android. I’m using C2DM service to send an notification

  • 0

I am currently programming vor Android. I’m using C2DM service to send an notification to my application.

When I answer the notification I want to make an connection to a server wich send images continiously everytime I send an http get.

Can I do this using an Asynctask with an while(!userDisconnect)? Or could i check when the Asynctask is completed and do it again? I’m not sure, i’m thinking that it will run ery slow with an while loop?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:14:51+00:00Added an answer on June 3, 2026 at 9:14 am

    I’ve found the answer myself:

    private OnClickListener getlistener = new OnClickListener() {
    
    public void onClick(View v) {
        mHandler.removeCallbacks(mUpdateTimeTask);
        mHandler.postDelayed(mUpdateTimeTask, 1000);
    
    }
    };
    
    private Runnable mUpdateTimeTask = new Runnable() {
       public void run() {
          if (response != null)
          {
              getal++;
              response.setText("Hallo" + getal);
              new NetworkTask().execute();
              //network();
           Log.i("Runnable", "OKE");
           mHandler.postAtTime(this, SystemClock.uptimeMillis() + 100);
          }
          else
          {
              Log.i("Runnable", "NULL");
          }
       }
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently programming a Rails application locally using RVM. Now I want a designer
I'm currently programming an application for the Android. Now what I found out is
I am currently programming a ASP.NET MVC3 application, using Entity Framework 4. There are
I am currently programming an application that needs to send an http Post request
I'm currently programming a client application and I'm wondering whether I should use the
im currently reading a book about programming Android and there is a nice little
I'm currently new into client-side programming, especially using the Jquery Ajax method to call
I'm currently programming a Java App where I want to only allow some window
I am currently programming a Visual C# service to receive emails from various sources
I am currently developing a programming language in C, and I want to allow

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.