Android app stops receiving input

You must Login before you can answer or comment on any questions.

I have recently created a very simple flash-card type app. There is a single tab with 1 large and 4 small imageViews. Clicking on image views plays sounds, and changes the image shown in the respective image views.

The problem is that after a seemingly random number of clicks (usually between 5 and 10), clicking on the imageViews no longer gets any response. The app is not frozen, as I added a second tab which contains a button with an identical click event listener to one of the imageViews and it still works and updates the imageVeiws on the main tab. But returning to the main tab, the imageViews still will not accept input.

Is this a common problem with a common solution? I did not think it necessary to provide my code, but am happy to do so.

Cheers AP

— asked 2 years ago by Andrew Parker
2 Comments
  • Andrew

    No, it's not a common problem.

    In order for someone to help you with this, you need to create a usecase. A usecase is a self-contained piece of code that demonstrates your issue in the least possible number of lines that also runs without modification when pasted into an empty app.js. Some advantages of providing a usecase are:

    • it is much kinder to those wishing to help you, because they won't have to spend considerable time replicating your issue on their systems
    • you will likely receive more accurate answers, as people will be running exactly the same code as you
    • you will gain a much greater knowledge of how Titanium works
    • the process of creating a usecase can often simplify the problem and consequently reveal the answer

    You can read more about this subject in the official documentation, under the section Creating Good Use-cases.

    Note that, if the code is long, you may want to create a Git Gist or pastebin rather than paste the code here directly.

    — commented 2 years ago by Paul Dowsett

  • Be sure that you're not ratcheting up event listeners for the clicks and sounds and make sure you remove them when not needed.

    — commented 2 years ago by Kosso .

Your Answer

Think you can help? Login to answer this question!