Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

BlackBerry Analytics Service

Reply
New Contributor
rjm_dev
Posts: 9
Registered: 06-06-2011
Accepted Solution

Has anyone tried using WebTrendsApplication?

My application has a UI and daemon (alternate entry point) segments.

 

I want to inherit UI from WebtrendsUiApplication and daemon from WebtrendsApplication.

 

UI part is working fine but when I auto-run daemon segment in a clean simulator image, i don't see home screen.

 

[0.0] Webtrends: 2011-06-08 00:34:13.027, Webtrend's SDK Version=v1.1.0.100
[0.0] Webtrends: 2011-06-08 00:34:13.027, wt_dc_app_category=Utilities
[0.0] Webtrends: 2011-06-08 00:34:13.043, wt_dc_app_name=<<Removed>>
[0.0] Webtrends: 2011-06-08 00:34:13.043, wt_dc_app_publisher=<<Removed>>
[0.0] Webtrends: 2011-06-08 00:34:13.043, wt_dc_app_version=<<Removed>>

[0.0] Webtrends: 2011-06-08 00:34:13.043, wt_dc_charge_threshold_minimum=30
[0.0] Webtrends: 2011-06-08 00:34:13.043, wt_dc_dcsid=<<Removed>>

[0.0] Webtrends: 2011-06-08 00:34:13.059, wt_dc_debug=true
[0.0] Webtrends: 2011-06-08 00:34:13.059, wt_dc_enabled=true
[0.0] Webtrends: 2011-06-08 00:34:13.059, wt_dc_event_retry_maximum=5
[0.0] Webtrends: 2011-06-08 00:34:13.059, wt_dc_event_table_size_maximum=10000
[0.0] Webtrends: 2011-06-08 00:34:13.059, wt_dc_request_permission=false
[0.0] Webtrends: 2011-06-08 00:34:13.059, wt_dc_session_maximum=480
[0.0] Webtrends: 2011-06-08 00:34:13.074, wt_dc_session_timeout=30
[0.0] Webtrends: 2011-06-08 00:34:13.152, wt_dc_timezone=-5
[0.0] Webtrends: 2011-06-08 00:34:13.152, wt_dc_url=https://dc.webtrends.com/v1
[0.0] Webtrends: 2011-06-08 00:34:13.184, ThreadPool.run, tid=Thread[Thread-977362944,5]
[0.0] Webtrends: 2011-06-08 00:34:13.184, ThreadPool.run, tid=Thread[Thread-977354752,5]
[0.0] Webtrends: 2011-06-08 00:34:13.184, ThreadPool.run, tid=Thread[Thread-977330176,5]
[0.0] Webtrends: 2011-06-08 00:34:13.215, FetchVID: tid=Thread[Thread-911990784,5] : ID=H46YqrszHDA
[0.0] Webtrends: 2011-06-08 00:34:13.512, PQH:event processor started, tid=Thread[Thread-986677248,5]
[0.0] Webtrends: 2011-06-08 00:34:13.527, PQH:aquiring read lock on the events queue

 

Simulator freezes showing "Debugger Attached" message and device home screen never appears.

 

This happens mostly after the showing the following lines in Simulator Console:

 



[0.0] *** Cellular radioTurnedOff()
[0.0] *** saveRadioState(4)

 Any help with solution or information or probable root cause will be greatly appericiated.

Please use plain text.
New Contributor
rjm_dev
Posts: 9
Registered: 06-06-2011

Re: Has anyone tried using WebTrendsApplication?

It seems to be that there is a problem with running WebtrendsApplication in start-up at least on simulators.

 

When I comment the initialization code to start BlackBerry Analytics Service in daemon segment, it is fine fine.

 

[0.0] Webtrends: 2011-06-08 00:56:08.596, Webtrend's SDK Version=v1.1.0.100
[0.0] Webtrends: 2011-06-08 00:56:08.596, wt_dc_app_category=Utilities
[0.0] Webtrends: 2011-06-08 00:56:08.596, wt_dc_app_name=<<Removed>>
[0.0] Webtrends: 2011-06-08 00:56:08.596, wt_dc_app_publisher=<<Removed>>
[0.0] Webtrends: 2011-06-08 00:56:08.611, wt_dc_app_version=1.0.5
[0.0] Webtrends: 2011-06-08 00:56:08.611, wt_dc_charge_threshold_minimum=30
[0.0] Webtrends: 2011-06-08 00:56:08.611, wt_dc_dcsid=<<Removed>>
[0.0] Webtrends: 2011-06-08 00:56:08.611, wt_dc_debug=true
[0.0] Webtrends: 2011-06-08 00:56:08.611, wt_dc_enabled=true
[0.0] Webtrends: 2011-06-08 00:56:08.611, wt_dc_event_retry_maximum=5
[0.0] Webtrends: 2011-06-08 00:56:08.627, wt_dc_event_table_size_maximum=10000
[0.0] Webtrends: 2011-06-08 00:56:08.627, wt_dc_request_permission=false
[0.0] Webtrends: 2011-06-08 00:56:08.627, wt_dc_session_maximum=480
[0.0] Webtrends: 2011-06-08 00:56:08.627, wt_dc_session_timeout=30
[0.0] Webtrends: 2011-06-08 00:56:08.627, wt_dc_timezone=-5
[0.0] Webtrends: 2011-06-08 00:56:08.627, wt_dc_url=https://dc.webtrends.com/v1
[0.0] Webtrends: 2011-06-08 00:56:08.643, ThreadPool.run, tid=Thread[Thread-1107902464,5]
[0.0] Webtrends: 2011-06-08 00:56:08.643, ThreadPool.run, tid=Thread[Thread-1107894272,5]
[0.0] Webtrends: 2011-06-08 00:56:08.643, ThreadPool.run, tid=Thread[Thread-1107886080,5]
[0.0] Webtrends: 2011-06-08 00:56:08.658, FetchVID: tid=Thread[Thread-1130946560,5] : ID=H46YqrszHDA
[0.0] Webtrends: 2011-06-08 00:56:08.768, submitEventTask, entry
[0.0] Webtrends: 2011-06-08 00:56:08.768, Threadpool.assign, tid=Thread[Thread-1130946560,5]
[0.0] Webtrends: 2011-06-08 00:56:08.783, submitEventTask, submitted
[0.0] Webtrends: 2011-06-08 00:56:08.783, ThreadPool.run, running thread
[0.0] Webtrends: 2011-06-08 00:56:08.783, Adding new event, thread=Thread[Thread-1107902464,5], type=APPLI[0.0] CATION_START
[0.0] Webtrends: 2011-06-08 00:56:08.893, PQH:event processor started, tid=Thread[Thread-1107173376,5]
[0.0] Webtrends: 2011-06-08 00:56:08.893, PQH:aquiring read lock on the events queue
[0.0] Webtrends: 2011-06-08 00:56:08.893, PQH:processing next event. new queue size=0
[0.0] Webtrends: 2011-06-08 00:56:08.908, Battery level=100
[0.0] Webtrends: 2011-06-08 00:56:08.908, Battery level=100
[0.0] Webtrends: 2011-06-08 00:56:08.908, svc_url=https://dc.webtrends.com/v1/<<Removed>>[0.0] 2d/events.svc?dcsverbose=tru[0.0] e
[0.0] Webtrends: 2011-06-08 00:56:08.908, HTTPConnFact:trying getSecureWifiConnection()
[0.0] Webtrends: 2011-06-08 00:56:08.908, HTTPConnFact:trying getSecureBesConnection()
[0.0] Webtrends: 2011-06-08 00:56:08.908, HTTPConnFact:trying getSecureBisConnection()
[0.0] Webtrends: 2011-06-08 00:56:08.908, HTTPConnFact:trying getSecureTcpConnection()
[0.0] SSL:->CH
[0.0] SSL:<-SH
[0.0] SSL:<-SC
[0.0] SSL:<-SHD
[0.0] TLS:->CKE
[0.0] SSL:->CCS
[0.0] TLS:->F
[0.0] TLS:<-F
[0.0] SSL: Ok
[0.0] Webtrends: 2011-06-08 00:56:09.627, Encoded Data=WT.co=yes&WT.ul=English&WT.ti=<<Removed>>&WT.vt_sid[0.0] =H46YqrszHDA.1307494551672&d[0.0] csuri=%2fapplication%2fstart&WT.os=4.5.0.181&WT.a_pub=<<Removed>>&WT.sys=startup&WT.dc=GS[0.0] M Test Network 3&WT.av=1.0.5[0.0] &WT.tz=0&WT.vtvs=1307494551672&WT.dm=8820&WT.vtid=H46YqrszHDA&WT.co_f=H46YqrszHDA&WT.a_cat=Utilities[0.0] &WT.g_co=unknown&WT.ets=1307[0.0] 494568768&WT.uc=United Kingdom&WT.a_nm=<<Removed>>&WT.pi=<<Removed>>
[0.0] Webtrends: 2011-06-08 00:56:09.783, TransmitTask, Request took=140ms, response=2011-06-08 00:56:09 1[0.0] 73.71.168.74 - - POST /appli[0.0] cation/start WT.co=yes&WT.ul=English&WT.ti=<<Removed>>&WT.vt_sid=H46YqrszHDA.1307494551672&WT.os=4.5[0.0] .0.181&WT.a_pub=<<Removed>>&WT.sys=startup&WT.dc=GSM%20Test%20Network%203&WT.av=1.0.5&WT.tz=0&WT.vtvs=13074945516[0.0] 72&WT.dm=8820&WT.vtid=H46Yqr[0.0] szHDA&WT.co_f=H46YqrszHDA&WT.a_cat=Utilities&WT.g_co=unknown&WT.ets=1307494568768&WT.uc=United%20Kin[0.0] gdom&WT.a_nm=<<Removed>>&WT.[0.0] pi=<<Removed>> 200 - - WebtrendsClientLibrary/v1.1.0.100+(App_BlackBerry) - - dcsg4ayr7yn82hsxd7qxk4[0.0] 7hm_2b2d

[0.0] 
[0.0] Webtrends: 2011-06-08 00:56:09.799, Transmission successful
[0.0] Webtrends: 2011-06-08 00:56:09.799, Transmission of data done
[0.0] Webtrends: 2011-06-08 00:56:09.799, PQH:results of sending the packet, reponseTime=140, reponseCode=[0.0] 200, retryCount=0
[0.0] Webtrends: 2011-06-08 00:56:09.799, PQH:aquiring read lock on the events queue

 Is there any workaround to hook-up Analytics Service to auto-start applications?

Please use plain text.
New Contributor
rjm_dev
Posts: 9
Registered: 06-06-2011

Re: Has anyone tried using WebTrendsApplication?

Another point that I have noticed is this happens only when I run the application in simulator (maybe real device also i haven't tested) with "Reset NVRAM on start-up" and "Reset File System on start-up" options (under "Memory" tab) checked.

 

On BlackBerry 9000 simulator, Home screen shows up but it freezes.

Please use plain text.
New Contributor
rjm_dev
Posts: 9
Registered: 06-06-2011

Re: Has anyone tried using WebTrendsApplication?

This issue isn't fixed even after overriding "activate" and "deactivate" functions in the class which inherits WebtrendsApplication.

 

public void activate() {

}
    
public void deactivate() {

}

 

I think the solution so should be to check whether the set-up wizard has been completed or not before initializing Webtrends.

 

On real devices this scenario might not happen because there is no chance that my application comes preloaded on any BlackBerry devices. So the scenario should be users buy the devices, completes set-up wizards and installs my app.

 

Anyway, I have to find a solution for this issue at least for my internal testing.

Please use plain text.
New Contributor
rjm_dev
Posts: 9
Registered: 06-06-2011

Re: Has anyone tried using WebTrendsApplication?

Downloaded WebTrends Library for BlackBerry v1.1.0.100 from http://developer.webtrends.com/ and got this problem solved.

Please use plain text.