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

  • SEARCH
  • Home
  • 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 4608060
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:47:29+00:00 2026-05-22T00:47:29+00:00

I am building an mobile app ( RSS reader ) for Android with Sencha

  • 0

I am building an mobile app ( RSS reader ) for Android with Sencha touch and PhoneGap. I have created some sort of background service that checks every 12 hours for new posts and update the app. When there is a new post a notification is shown up ( http://developer.android.com/guide/topics/ui/notifiers/notifications.html )

I am using window.setInterval() for this. This seems like a dirty way to do it, but it works.

Whats your opinion about this and is there a better way to get the job done?

  • 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-05-22T00:47:30+00:00Added an answer on May 22, 2026 at 12:47 am

    The only other way, in JS, to do it would be a long poll with an XHR request. The notifications can then be pushed when they show up instead of every 12 hrs. However this probably isn’t a great solution as it will tie up server resources and require a constant connection.

    Because you are also using PhoneGap, you could write a plugin for Android that will implement a JS object with the ability to register callbacks for and call them at a particular time. Or implement the API that @ballmw suggested.

    In the end, setTimeout/setInterval is probably fine if it works properly.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a mobile web app targeting Android users. I need to know what
I'm building an analytics system for a mobile application and have had some difficulty
Building a django app with some mostly static pages at the front of the
I'm building a mobile application in VB.NET (compact framework), and I'm wondering what the
So we are building an application with a UI Layer (web, mobile, Ajax client,
Building the same project (without any changes) produces binary different exe-files: some small regions
When building some of my PHP apps, a lot of the functionality could be
I am building a universal app that uses a UISplitViewController for the iPad, and
I'm building a site on Google App Engine, running python and Django non-rel. Everything
I'm an experienced C/C++/C#/Objective-C desktop,web, and mobile programmer and I've become accustomed to building

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.