Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Android - tiapp.xml analytics: false -> database install on device fails

hello everybody!

i just noticed (after spending some hours to find it), the following bug:
if i set the analytics-property in my tiapp.xml to "false" and run my app on my android device, the installation of my database fails.
if i reset this analytics property to "true" the installation works.

This issue only occurs on my Android Device (T-Mobile G2 Touch aka HTC Hero), the emulator works fine.

strange…

ps: using Ti SDK 1.4.1.1 and 1.4.2

— asked November 24th 2010 by Robert Rockmann
  • analytics
  • android
  • database
  • fail
  • failed
  • fails
  • install
  • tiapp.xml
0 Comments

5 Answers

  • Robert

    I have it on good authority from the core dev team for android that you should be able to have analytics disabled and install to the device.

    I can't find anything obvious relating to this type of issue for android in Lighthouse.

    Hence, if (and I emphasise the "if") you can replicate this issue using a new project, unmodified apart from tiapp.xml and installing a database, then it would be good grounds to raise a new ticket in Lighthouse.

    Once you've done it, please would you post the number here so that others can find it in future?

    Cheers

    — answered November 24th 2010 by Paul Dowsett
    permalink
    2 Comments
    • hi hal,
      thanks four your reply, i will test it within the next days.

      i stumbled today over this question which was the solution for this strange analytics problem (read the reply from Hamilton).

      — commented November 24th 2010 by Robert Rockmann
    • ps: sorry that i haven't mentioned the question-entry in my posting!

      — commented November 24th 2010 by Robert Rockmann
  • Robert

    As Hamilton hasn't provided the usecase code or raised a ticket, it would be really good if you woudld do this so that it can be resolved, to save others from the problem in future.

    Cheers

    — answered November 24th 2010 by Paul Dowsett
    permalink
    0 Comments
  • hi hal,

    i tried to reproduce this issue within a new titanium mobile project with reduced code,
    but in the new project everything is working with the database installation.
    so i'm sorry that i can't provide you any details or code :(

    robert

    — answered November 26th 2010 by Robert Rockmann
    permalink
    0 Comments
  • I am having the same problem. I cannot supply you with the code and database here since it is proprietary, but the code is very similar to the above. The database is about 8.2MB, and whenever I set the analytics flag in tiapp.xml to false the database is NOT installed on the device. It works in the emulator though.

    The problem is in Android 2.2. I am using Titanium SDK 1.5.1.

    This is a major problem since my customer will not accept analytics to be tracked. If the flag is set to true, will anything be sent to any analytics server? Will anything be sent on the network at all?

    I love the framework, though. Keep up the good work.

    — answered February 6th 2011 by Frank Thomsen
    permalink
    0 Comments
  • I am having the same problem. I cannot supply you with the code and database here since it is proprietary, but the code is very similar to the above. The database is about 8.2MB, and whenever I set the analytics flag in tiapp.xml to false the database is NOT installed on the device. It works in the emulator though.

    The problem is in Android 2.2. I am using Titanium SDK 1.5.1.

    This is a major problem since my customer will not accept analytics to be tracked. If the flag is set to true, will anything be sent to any analytics server? Will anything be sent on the network at all?

    I love the framework, though. Keep up the good work.

    — answered February 6th 2011 by Frank Thomsen
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.