Android Build Quirks

Discussion in 'Java' started by Lawrence D'Oliveiro, Mar 25, 2011.

  1. Every time I add a new resource to an Android project (layout, string etc),
    it seems to misbehave and invoke the wrong resources. After I do an ant
    clean and rebuild and reinstall, it works fine.

    I think what’s happening is that compiled classes are being included that
    were built against the old version of R.java. What should happen if
    resources change, is that R.java should be the the first thing regenerated,
    before any Java source files are compiled. That will then trigger the
    recompiling of all the necessary sources.
     
    Lawrence D'Oliveiro, Mar 25, 2011
    #1
    1. Advertisements

  2. On 25/03/2011 04:54, Lawrence D'Oliveiro wrote:
    > Every time I add a new resource to an Android project (layout, string etc),
    > it seems to misbehave and invoke the wrong resources. After I do an ant
    > clean and rebuild and reinstall, it works fine.
    >
    > I think what’s happening is that compiled classes are being included that
    > were built against the old version of R.java. What should happen if
    > resources change, is that R.java should be the the first thing regenerated,
    > before any Java source files are compiled. That will then trigger the
    > recompiling of all the necessary sources.


    There are oddities.
    And the emulator is not to be trusted 100%, esp not with networking
    stuff. I have spent days trying to find a bug that wasn't there when the
    s/w was debugged on a real machine

    --
    Dirk

    http://www.neopax.com/technomage/ - My new book - Magick and Technology
     
    Dirk Bruere at NeoPax, Mar 31, 2011
    #2
    1. Advertisements

  3. In message <>, Dirk Bruere at NeoPax wrote:

    > And the emulator is not to be trusted 100%, esp not with networking
    > stuff.


    Hmmm ... the emulator is the only way I can test networking stuff at the
    moment.

    Must try and see if I can get my old Asus Eee 701 to act as an access
    point...
     
    Lawrence D'Oliveiro, Mar 31, 2011
    #3
  4. On 31/03/2011 04:03, Lawrence D'Oliveiro wrote:
    > In message<>, Dirk Bruere at NeoPax wrote:
    >
    >> And the emulator is not to be trusted 100%, esp not with networking
    >> stuff.

    >
    > Hmmm ... the emulator is the only way I can test networking stuff at the
    > moment.
    >
    > Must try and see if I can get my old Asus Eee 701 to act as an access
    > point...


    I had big problems with LAN access via the emulator.
    I wanted to do the Netbios getbyname() thing, which is not supported by
    Android.
    Tried JCIFS and that did not work.
    However, it *did* work when it was used on the real Android Tablet

    --
    Dirk

    http://www.neopax.com/technomage/ - My new book - Magick and Technology
     
    Dirk Bruere at NeoPax, Apr 2, 2011
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. DaLoverhino

    Some quirks in InputStream.read() ?

    DaLoverhino, Jan 23, 2005, in forum: Java
    Replies:
    6
    Views:
    581
    Rogan Dawes
    Jan 24, 2005
  2. kayodeok
    Replies:
    20
    Views:
    953
    Toby A Inkster
    Nov 1, 2003
  3. Jeff Thies

    quirks mode and IE5 vs IE6

    Jeff Thies, Feb 12, 2004, in forum: HTML
    Replies:
    26
    Views:
    2,599
    =?ISO-8859-1?Q?Andr=E9s_Sedano?=
    Feb 14, 2004
  4. Stef Mientki
    Replies:
    0
    Views:
    709
    Stef Mientki
    Nov 27, 2011
  5. sterta bole
    Replies:
    0
    Views:
    969
    sterta bole
    Aug 27, 2012
Loading...

Share This Page