Note that there are some explanatory texts on larger screens.

plurals
  1. POWhere can a stale binary hide when developing an android app?
    primarykey
    data
    text
    <p><em>Guess I found it myself: Apparently the else-if block was detected as unreachable code and not compiled into the binary. At least that is my conclusion for now. It's almost 7am. Will further investigate after a little nap.</em></p> <p>I'm totally lost and lost a day already on digging really deep.</p> <p>I have an android app. At some point, my changes could not be debugged anymore. It seamed to be running stale code. I've done all the obvious (Refresh, project clean), less obvious (eclipse -clean, fresh checkout of my project) and last thing I did was:</p> <ul> <li>download eclipse</li> <li>install mercurial and adt</li> <li>install android sdk</li> <li>checkout my project to a virgin workspace</li> <li>run the app in a newly created virtual device</li> </ul> <p>guess what, it still behaves as follows:</p> <p>When I put a breakpoint at "// breakpoint" pressing F6 (Step Over) I can step through "// 1" and "// 2" although after //1, //2 should be unreachable. Also the debugger knows nothing about the variables in the else-if block while I'm at //1</p> <pre><code>} else if (column == 4) { // breakpoint TextView cardSetLabel = (TextView) view; String name = cursor.getString(cardSetColumnIndex); name = name.substring(0, Math.min(15, name.length() - 1)); cardSetLabel.setText(name); // 1 return true; } return false; // 2 </code></pre> <p>Actually even if I delete the whole surrounding code block, the stuff that it does still remains intact. This is voodoo, sorry. At least deleting the whole Activity results in the Activity being gone at run time, so the theory of stuff being stale is not really an option.</p> <p>Please, any help appreciated :(</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload