> What i am trying to achieve :-  Want to create an application which
> will open Fennec & then open a webiste on it & when a website is fully
> opened/loded  & then collect telemetry each time from phone itself (
> this will be done by my app) , after that  delete collected telemetry
> file, as next time when i will run my application again  it will
> create a new telemetry file & collect & delete it from phone itself.

With respect, that's not what you're trying to achieve, that's how you're 
trying to achieve it.

You might say "I'm trying to capture Firefox telemetry data for the first-run 
load of a particular website". But even that isn't quite high enough a level of 
abstraction. Are you trying to figure out how long a page takes to load? Cache 
hits?


> Yes it is Telemetry loaded build, when i manually open fennec & open
> back button after opening website it will create telemetry file.

That implies that there's no bug here.

Your issue is probably this. When you hit 'back', it's not equivalent to 
calling finish(): see GeckoApp#onBackPressed.

If you'd read Kat's links, you'd see that the telemetry file is flushed when 
the app goes into the background. Finishing the activity does not background 
it, so the file isn't flushed. Background the activity instead of (or as well 
as) finishing it.
_______________________________________________
mobile-firefox-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/mobile-firefox-dev

Reply via email to