AbdFatah / analytics-issues

Automatically exported from code.google.com/p/analytics-issues
0 stars 0 forks source link

Please throw exception when database is full in "Google Analytics SDK for Android" #157

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Name of related component:
Mobile Tracking/"Google Analytics SDK for Android"

Request summary:
I'm using "Google Analytics SDK for Android" Version 1.3.1 on an Android 2.2 
device and I'm seeing the following warning:

<snip>
10-05 16:59:35.398: WARN/GoogleAnalyticsTracker(4329): Store full. Not storing 
last event.
</snip>

It seems this occurs if +1000 rows in "events" table. If possible, please throw 
an Exception so the client code can take appropriate action such as manually 
call dispatch method. Current implementation is very dangerous because it just 
logs silently.

Alternatively, return a boolean as result of trackEvent method call-- true if 
successfully stored to database and false if there was a problem storing to 
database. This will be less intrusive than the Exception for already existing 
implementations.

Use Cases:
Especially important for applications which would like to collect precise 
events but to not send data often (i.e. once per week). If the client code 
knows that the analytics aren't being stored it can take appropriate action.

Original issue reported on code.google.com by d.strick...@gmail.com on 5 Oct 2011 at 4:31

GoogleCodeExporter commented 9 years ago

Original comment by awa...@google.com on 7 Nov 2013 at 9:30