Is there a way to find the total use time of my applicationHow to Get the Time spent on an application in Android ProgrammaticallyIs there a way to run Python on Android?What's the simplest way to print a Java array?Is quitting an application frowned upon?What is the simplest and most robust way to get the user's current location on Android?Android SDK installation doesn't find JDKCan the Android Layout folder contain subfolders?Dialog throwing "Unable to add window — token null is not for an application” with getApplication() as contextWhy is subtracting these two times (in 1927) giving a strange result?Does anyone have benchmarks (code & results) comparing performance of Android apps written in Xamarin C# and Java?Dilemma: when to use Fragments vs Activities:
How is the Team Scooby Doo funded?
„nichts wie raus hier“ - explanation based on the literal meaning?
How could a imperial dynasty keep a loose collection of pirates, raiders, etc unified?
Are scroll bars dead in 2019?
Is it appropriate for a professor to require students to sign a non-disclosure agreement before being taught?
How can I maximize the impact of my charitable donations?
extract lines from bottom until regex match
Why should I always enable compiler warnings?
Is there a star over my head?
Random point on a sphere
Might have gotten a coworker sick, should I address this?
Why is the T-1000 humanoid?
Can I say "I have encrypted something" if I hash something?
How seriously should I take a CBP interview where I was told I have a red flag and could only stay for 30 days?
Is there a standard terminology for female equivalents of terms such as 'Kingdom' and if so, what are the most common terms?
Kingdom Map and Travel Pace
What is a realistic time needed to get a properly trained army?
Why was "leaping into the river" a valid trial outcome to prove one's innocence?
How to stabilise the bicycle seatpost and saddle when it is all the way up?
Sol Ⅲ = Earth: What is the origin of this planetary naming scheme?
Using the pipe operator ("|") when executing system commands
Why the word "rain" is considered a verb if it is not possible to conjugate it?
I asked for a graduate student position from a professor. He replied "welcome". What does that mean?
Can I disable a battery powered device by reversing half of its batteries?
Is there a way to find the total use time of my application
How to Get the Time spent on an application in Android ProgrammaticallyIs there a way to run Python on Android?What's the simplest way to print a Java array?Is quitting an application frowned upon?What is the simplest and most robust way to get the user's current location on Android?Android SDK installation doesn't find JDKCan the Android Layout folder contain subfolders?Dialog throwing "Unable to add window — token null is not for an application” with getApplication() as contextWhy is subtracting these two times (in 1927) giving a strange result?Does anyone have benchmarks (code & results) comparing performance of Android apps written in Xamarin C# and Java?Dilemma: when to use Fragments vs Activities:
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Is there library in Android that can provide me the total spend time of a user in my application without using my own time count?
I believe that Android OS is counting all application use time the same way as they count battery use ,network, etc..
If my assumptions are right, What I need is this system count for my application use time.
java android
add a comment |
Is there library in Android that can provide me the total spend time of a user in my application without using my own time count?
I believe that Android OS is counting all application use time the same way as they count battery use ,network, etc..
If my assumptions are right, What I need is this system count for my application use time.
java android
Using this you can: stackoverflow.com/a/49174503/6021469
– Shweta Chauhan
Mar 28 at 9:58
whole code here: github.com/zhaobao/AppsMonitor
– Shweta Chauhan
Mar 28 at 10:00
1
Thank you for the help
– Tzahi Ben Shushan
Mar 28 at 14:31
add a comment |
Is there library in Android that can provide me the total spend time of a user in my application without using my own time count?
I believe that Android OS is counting all application use time the same way as they count battery use ,network, etc..
If my assumptions are right, What I need is this system count for my application use time.
java android
Is there library in Android that can provide me the total spend time of a user in my application without using my own time count?
I believe that Android OS is counting all application use time the same way as they count battery use ,network, etc..
If my assumptions are right, What I need is this system count for my application use time.
java android
java android
edited Mar 28 at 9:53
Tzahi Ben Shushan
asked Mar 28 at 9:03
Tzahi Ben ShushanTzahi Ben Shushan
11 bronze badge
11 bronze badge
Using this you can: stackoverflow.com/a/49174503/6021469
– Shweta Chauhan
Mar 28 at 9:58
whole code here: github.com/zhaobao/AppsMonitor
– Shweta Chauhan
Mar 28 at 10:00
1
Thank you for the help
– Tzahi Ben Shushan
Mar 28 at 14:31
add a comment |
Using this you can: stackoverflow.com/a/49174503/6021469
– Shweta Chauhan
Mar 28 at 9:58
whole code here: github.com/zhaobao/AppsMonitor
– Shweta Chauhan
Mar 28 at 10:00
1
Thank you for the help
– Tzahi Ben Shushan
Mar 28 at 14:31
Using this you can: stackoverflow.com/a/49174503/6021469
– Shweta Chauhan
Mar 28 at 9:58
Using this you can: stackoverflow.com/a/49174503/6021469
– Shweta Chauhan
Mar 28 at 9:58
whole code here: github.com/zhaobao/AppsMonitor
– Shweta Chauhan
Mar 28 at 10:00
whole code here: github.com/zhaobao/AppsMonitor
– Shweta Chauhan
Mar 28 at 10:00
1
1
Thank you for the help
– Tzahi Ben Shushan
Mar 28 at 14:31
Thank you for the help
– Tzahi Ben Shushan
Mar 28 at 14:31
add a comment |
2 Answers
2
active
oldest
votes
You can use Fabric (https://fabric.io/) there's some a lot useful tools that you can use, it also can track Daily Active User, Crash Reporting, etc.
They also provide us easy integration step, just take few minutes to integrate our system with Fabric.
add a comment |
The general approach to this is to:
- Get the time at the start of your benchmark, say at the start of main().
- Run your code.
- Get the time at the end of your benchmark, say at the end of main().
- Subtract the start time from the end time and convert into appropriate units.
A simpler way is this.
long startTime = System.nanoTime();
.....your program....
long endTime = System.nanoTime();
long totalTime = endTime - startTime;
System.out.println(totalTime);
Let me know if this helps, if yes then please accept the answer
– Tushar Narang
Mar 28 at 9:09
Thanks for your fast reply, but what I meant was how can I find the time use of my application from android OS system without using my own count code? In other words , is there a library that can provide my application time use?
– Tzahi Ben Shushan
Mar 28 at 9:21
I am not sure about that, but this is the new methodology as it uses nanotime
– Tushar Narang
Mar 28 at 9:25
Thank you for your help
– Tzahi Ben Shushan
Mar 28 at 9:50
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55393651%2fis-there-a-way-to-find-the-total-use-time-of-my-application%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use Fabric (https://fabric.io/) there's some a lot useful tools that you can use, it also can track Daily Active User, Crash Reporting, etc.
They also provide us easy integration step, just take few minutes to integrate our system with Fabric.
add a comment |
You can use Fabric (https://fabric.io/) there's some a lot useful tools that you can use, it also can track Daily Active User, Crash Reporting, etc.
They also provide us easy integration step, just take few minutes to integrate our system with Fabric.
add a comment |
You can use Fabric (https://fabric.io/) there's some a lot useful tools that you can use, it also can track Daily Active User, Crash Reporting, etc.
They also provide us easy integration step, just take few minutes to integrate our system with Fabric.
You can use Fabric (https://fabric.io/) there's some a lot useful tools that you can use, it also can track Daily Active User, Crash Reporting, etc.
They also provide us easy integration step, just take few minutes to integrate our system with Fabric.
answered Mar 28 at 9:44
AFinAFin
612 bronze badges
612 bronze badges
add a comment |
add a comment |
The general approach to this is to:
- Get the time at the start of your benchmark, say at the start of main().
- Run your code.
- Get the time at the end of your benchmark, say at the end of main().
- Subtract the start time from the end time and convert into appropriate units.
A simpler way is this.
long startTime = System.nanoTime();
.....your program....
long endTime = System.nanoTime();
long totalTime = endTime - startTime;
System.out.println(totalTime);
Let me know if this helps, if yes then please accept the answer
– Tushar Narang
Mar 28 at 9:09
Thanks for your fast reply, but what I meant was how can I find the time use of my application from android OS system without using my own count code? In other words , is there a library that can provide my application time use?
– Tzahi Ben Shushan
Mar 28 at 9:21
I am not sure about that, but this is the new methodology as it uses nanotime
– Tushar Narang
Mar 28 at 9:25
Thank you for your help
– Tzahi Ben Shushan
Mar 28 at 9:50
add a comment |
The general approach to this is to:
- Get the time at the start of your benchmark, say at the start of main().
- Run your code.
- Get the time at the end of your benchmark, say at the end of main().
- Subtract the start time from the end time and convert into appropriate units.
A simpler way is this.
long startTime = System.nanoTime();
.....your program....
long endTime = System.nanoTime();
long totalTime = endTime - startTime;
System.out.println(totalTime);
Let me know if this helps, if yes then please accept the answer
– Tushar Narang
Mar 28 at 9:09
Thanks for your fast reply, but what I meant was how can I find the time use of my application from android OS system without using my own count code? In other words , is there a library that can provide my application time use?
– Tzahi Ben Shushan
Mar 28 at 9:21
I am not sure about that, but this is the new methodology as it uses nanotime
– Tushar Narang
Mar 28 at 9:25
Thank you for your help
– Tzahi Ben Shushan
Mar 28 at 9:50
add a comment |
The general approach to this is to:
- Get the time at the start of your benchmark, say at the start of main().
- Run your code.
- Get the time at the end of your benchmark, say at the end of main().
- Subtract the start time from the end time and convert into appropriate units.
A simpler way is this.
long startTime = System.nanoTime();
.....your program....
long endTime = System.nanoTime();
long totalTime = endTime - startTime;
System.out.println(totalTime);
The general approach to this is to:
- Get the time at the start of your benchmark, say at the start of main().
- Run your code.
- Get the time at the end of your benchmark, say at the end of main().
- Subtract the start time from the end time and convert into appropriate units.
A simpler way is this.
long startTime = System.nanoTime();
.....your program....
long endTime = System.nanoTime();
long totalTime = endTime - startTime;
System.out.println(totalTime);
answered Mar 28 at 9:06
Tushar NarangTushar Narang
8762 gold badges13 silver badges44 bronze badges
8762 gold badges13 silver badges44 bronze badges
Let me know if this helps, if yes then please accept the answer
– Tushar Narang
Mar 28 at 9:09
Thanks for your fast reply, but what I meant was how can I find the time use of my application from android OS system without using my own count code? In other words , is there a library that can provide my application time use?
– Tzahi Ben Shushan
Mar 28 at 9:21
I am not sure about that, but this is the new methodology as it uses nanotime
– Tushar Narang
Mar 28 at 9:25
Thank you for your help
– Tzahi Ben Shushan
Mar 28 at 9:50
add a comment |
Let me know if this helps, if yes then please accept the answer
– Tushar Narang
Mar 28 at 9:09
Thanks for your fast reply, but what I meant was how can I find the time use of my application from android OS system without using my own count code? In other words , is there a library that can provide my application time use?
– Tzahi Ben Shushan
Mar 28 at 9:21
I am not sure about that, but this is the new methodology as it uses nanotime
– Tushar Narang
Mar 28 at 9:25
Thank you for your help
– Tzahi Ben Shushan
Mar 28 at 9:50
Let me know if this helps, if yes then please accept the answer
– Tushar Narang
Mar 28 at 9:09
Let me know if this helps, if yes then please accept the answer
– Tushar Narang
Mar 28 at 9:09
Thanks for your fast reply, but what I meant was how can I find the time use of my application from android OS system without using my own count code? In other words , is there a library that can provide my application time use?
– Tzahi Ben Shushan
Mar 28 at 9:21
Thanks for your fast reply, but what I meant was how can I find the time use of my application from android OS system without using my own count code? In other words , is there a library that can provide my application time use?
– Tzahi Ben Shushan
Mar 28 at 9:21
I am not sure about that, but this is the new methodology as it uses nanotime
– Tushar Narang
Mar 28 at 9:25
I am not sure about that, but this is the new methodology as it uses nanotime
– Tushar Narang
Mar 28 at 9:25
Thank you for your help
– Tzahi Ben Shushan
Mar 28 at 9:50
Thank you for your help
– Tzahi Ben Shushan
Mar 28 at 9:50
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55393651%2fis-there-a-way-to-find-the-total-use-time-of-my-application%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Using this you can: stackoverflow.com/a/49174503/6021469
– Shweta Chauhan
Mar 28 at 9:58
whole code here: github.com/zhaobao/AppsMonitor
– Shweta Chauhan
Mar 28 at 10:00
1
Thank you for the help
– Tzahi Ben Shushan
Mar 28 at 14:31