why does “usageStatsManager.queryUsageStats()” return list that size is 0?
ı made small app that give me app usage but ıts doesn't return anything when ı take my code the my real app.(my old app min sdk version = 15 new one = API 23: Android 6.0)
/ my first app
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
//Intent intent = new Intent(Settings.ACTION_USAGE_ACCESS_SETTINGS);
//startActivity(intent);
//GetStatus();
TextView textView = (TextView) findViewById(R.id.text_view);
textView.setText("APP USTAGE");
Button button= (Button)findViewById(R.id.But_3);
button.setOnClickListener(this);
}
}
@Override
public void onClick(View v)
{
int HoursBefore = -2;
System.out.println("1--------------------------");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
EditText tmpx = findViewById(R.id.editText2);
HoursBefore = parseInt(String.valueOf(tmpx.getText()));
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
GetStatus(HoursBefore);
System.out.println(" saat degeri : " + HoursBefore);
}
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public void GetStatus(int HoursBefore){
final UsageStatsManager usageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE);// Context.USAGE_STATS_SERVICE);
Calendar StartCla = Calendar.getInstance();
StartCla.add(Calendar.HOUR, -HoursBefore);
Calendar EndCla = Calendar.getInstance();
final List<UsageStats> queryUsageStats = usageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_DAILY, StartCla.getTimeInMillis(), EndCla.getTimeInMillis());
System.out.println("nn--------------------------------------------------------------------------------------------------------------------------------------------nn");
String res = "";
Date time1 , time2 ;
for (UsageStats app : queryUsageStats) {
if((float) (app.getTotalTimeInForeground() / 1000) != 0){
System.out.println("-------> "+app.getPackageName() + " | " + (float) (app.getTotalTimeInForeground() / 1000));
time1 = new java.util.Date(app.getLastTimeStamp());
time2 = new java.util.Date(app.getLastTimeStamp()-(app.getTotalTimeInForeground()));
res += app.getPackageName() +" -> n"+
time1.getHours()+ " : " + time1.getMinutes() + ":" + time1.getSeconds() + " |-| " + time2.getHours()+ " : " + time2.getMinutes() + ":" + time2.getSeconds()+ "n"+
+ time1.getDay() + "." + time1.getMonth()+"."+( 1900 + time1.getYear()) + " |-| " + time2.getDay() + "." + time2.getMonth()+"."+( 1900 + time2.getYear()) + "n"
+ " -- " + app.getTotalTimeInForeground() / 1000 + "n";
}
}
System.out.println("--------------------------------------------------------------------------------------------------------------------------------------------nn");
TextView textView = (TextView) findViewById(R.id.text_view);
textView.setText(res);
textView.setMovementMethod(new ScrollingMovementMethod());
}
}
/my 2. app
public class OperationCenter {
public static int RaportTimeHour = 10;// add to the save method
private Context cn;
public OperationCenter(Context con){
cn = con;
ProgramData.TakeWorkingDic(con.getFilesDir().toString());
LoadApp();
}
private boolean CheckNetworkStatus(){
return true;
}
public void TakeRaport(){
TakeAppUsageData();
}
public void StartSpyService(){
}
public void StopSpyService(){
}
private UsageRaport TakeAppUsageData(){
final UsageStatsManager usageStatsManager = (UsageStatsManager) cn.getSystemService(Context.USAGE_STATS_SERVICE);// Context.USAGE_STATS_SERVICE);
Calendar StartCla = Calendar.getInstance();
StartCla.add(Calendar.HOUR, -RaportTimeHour);
Calendar EndCla = Calendar.getInstance();
final List<UsageStats> queryUsageStats = usageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_DAILY, StartCla.getTimeInMillis(), EndCla.getTimeInMillis());
String tmp = StartCla.getTime().getHours() + " - " + EndCla.getTime().getHours() ;
Log.i("rap",tmp);
String res = "";
Date time1 , time2 ;
for (UsageStats app : queryUsageStats){
if((float) (app.getTotalTimeInForeground() / 1000) != 0){
time1 = new java.util.Date(app.getLastTimeStamp());
time2 = new java.util.Date(app.getLastTimeStamp()-(app.getTotalTimeInForeground()));
Log.i("rap",app.getPackageName() +" -> n"+
time1.getHours()+ " : " + time1.getMinutes() + ":" + time1.getSeconds() + " |-| " + time2.getHours()+ " : " + time2.getMinutes() + ":" + time2.getSeconds()+ "n"+
+ time1.getDay() + "." + time1.getMonth()+"."+( 1900 + time1.getYear()) + " |-| " + time2.getDay() + "." + time2.getMonth()+"."+( 1900 + time2.getYear()) + "n"
+ " -- " + app.getTotalTimeInForeground() / 1000 + "n");
}
}
Log.i("rap","---------------------------------------------------------------------------------------------------");
//Log.i("rap",res);
Log.i("rap","---------------------------------------------------------------------------------------------------");
return null;
}
public void SaveApp(){
}
public void LoadApp(){
ProgramData.LoadMyData();
}
}
java android
add a comment |
ı made small app that give me app usage but ıts doesn't return anything when ı take my code the my real app.(my old app min sdk version = 15 new one = API 23: Android 6.0)
/ my first app
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
//Intent intent = new Intent(Settings.ACTION_USAGE_ACCESS_SETTINGS);
//startActivity(intent);
//GetStatus();
TextView textView = (TextView) findViewById(R.id.text_view);
textView.setText("APP USTAGE");
Button button= (Button)findViewById(R.id.But_3);
button.setOnClickListener(this);
}
}
@Override
public void onClick(View v)
{
int HoursBefore = -2;
System.out.println("1--------------------------");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
EditText tmpx = findViewById(R.id.editText2);
HoursBefore = parseInt(String.valueOf(tmpx.getText()));
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
GetStatus(HoursBefore);
System.out.println(" saat degeri : " + HoursBefore);
}
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public void GetStatus(int HoursBefore){
final UsageStatsManager usageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE);// Context.USAGE_STATS_SERVICE);
Calendar StartCla = Calendar.getInstance();
StartCla.add(Calendar.HOUR, -HoursBefore);
Calendar EndCla = Calendar.getInstance();
final List<UsageStats> queryUsageStats = usageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_DAILY, StartCla.getTimeInMillis(), EndCla.getTimeInMillis());
System.out.println("nn--------------------------------------------------------------------------------------------------------------------------------------------nn");
String res = "";
Date time1 , time2 ;
for (UsageStats app : queryUsageStats) {
if((float) (app.getTotalTimeInForeground() / 1000) != 0){
System.out.println("-------> "+app.getPackageName() + " | " + (float) (app.getTotalTimeInForeground() / 1000));
time1 = new java.util.Date(app.getLastTimeStamp());
time2 = new java.util.Date(app.getLastTimeStamp()-(app.getTotalTimeInForeground()));
res += app.getPackageName() +" -> n"+
time1.getHours()+ " : " + time1.getMinutes() + ":" + time1.getSeconds() + " |-| " + time2.getHours()+ " : " + time2.getMinutes() + ":" + time2.getSeconds()+ "n"+
+ time1.getDay() + "." + time1.getMonth()+"."+( 1900 + time1.getYear()) + " |-| " + time2.getDay() + "." + time2.getMonth()+"."+( 1900 + time2.getYear()) + "n"
+ " -- " + app.getTotalTimeInForeground() / 1000 + "n";
}
}
System.out.println("--------------------------------------------------------------------------------------------------------------------------------------------nn");
TextView textView = (TextView) findViewById(R.id.text_view);
textView.setText(res);
textView.setMovementMethod(new ScrollingMovementMethod());
}
}
/my 2. app
public class OperationCenter {
public static int RaportTimeHour = 10;// add to the save method
private Context cn;
public OperationCenter(Context con){
cn = con;
ProgramData.TakeWorkingDic(con.getFilesDir().toString());
LoadApp();
}
private boolean CheckNetworkStatus(){
return true;
}
public void TakeRaport(){
TakeAppUsageData();
}
public void StartSpyService(){
}
public void StopSpyService(){
}
private UsageRaport TakeAppUsageData(){
final UsageStatsManager usageStatsManager = (UsageStatsManager) cn.getSystemService(Context.USAGE_STATS_SERVICE);// Context.USAGE_STATS_SERVICE);
Calendar StartCla = Calendar.getInstance();
StartCla.add(Calendar.HOUR, -RaportTimeHour);
Calendar EndCla = Calendar.getInstance();
final List<UsageStats> queryUsageStats = usageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_DAILY, StartCla.getTimeInMillis(), EndCla.getTimeInMillis());
String tmp = StartCla.getTime().getHours() + " - " + EndCla.getTime().getHours() ;
Log.i("rap",tmp);
String res = "";
Date time1 , time2 ;
for (UsageStats app : queryUsageStats){
if((float) (app.getTotalTimeInForeground() / 1000) != 0){
time1 = new java.util.Date(app.getLastTimeStamp());
time2 = new java.util.Date(app.getLastTimeStamp()-(app.getTotalTimeInForeground()));
Log.i("rap",app.getPackageName() +" -> n"+
time1.getHours()+ " : " + time1.getMinutes() + ":" + time1.getSeconds() + " |-| " + time2.getHours()+ " : " + time2.getMinutes() + ":" + time2.getSeconds()+ "n"+
+ time1.getDay() + "." + time1.getMonth()+"."+( 1900 + time1.getYear()) + " |-| " + time2.getDay() + "." + time2.getMonth()+"."+( 1900 + time2.getYear()) + "n"
+ " -- " + app.getTotalTimeInForeground() / 1000 + "n");
}
}
Log.i("rap","---------------------------------------------------------------------------------------------------");
//Log.i("rap",res);
Log.i("rap","---------------------------------------------------------------------------------------------------");
return null;
}
public void SaveApp(){
}
public void LoadApp(){
ProgramData.LoadMyData();
}
}
java android
add a comment |
ı made small app that give me app usage but ıts doesn't return anything when ı take my code the my real app.(my old app min sdk version = 15 new one = API 23: Android 6.0)
/ my first app
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
//Intent intent = new Intent(Settings.ACTION_USAGE_ACCESS_SETTINGS);
//startActivity(intent);
//GetStatus();
TextView textView = (TextView) findViewById(R.id.text_view);
textView.setText("APP USTAGE");
Button button= (Button)findViewById(R.id.But_3);
button.setOnClickListener(this);
}
}
@Override
public void onClick(View v)
{
int HoursBefore = -2;
System.out.println("1--------------------------");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
EditText tmpx = findViewById(R.id.editText2);
HoursBefore = parseInt(String.valueOf(tmpx.getText()));
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
GetStatus(HoursBefore);
System.out.println(" saat degeri : " + HoursBefore);
}
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public void GetStatus(int HoursBefore){
final UsageStatsManager usageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE);// Context.USAGE_STATS_SERVICE);
Calendar StartCla = Calendar.getInstance();
StartCla.add(Calendar.HOUR, -HoursBefore);
Calendar EndCla = Calendar.getInstance();
final List<UsageStats> queryUsageStats = usageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_DAILY, StartCla.getTimeInMillis(), EndCla.getTimeInMillis());
System.out.println("nn--------------------------------------------------------------------------------------------------------------------------------------------nn");
String res = "";
Date time1 , time2 ;
for (UsageStats app : queryUsageStats) {
if((float) (app.getTotalTimeInForeground() / 1000) != 0){
System.out.println("-------> "+app.getPackageName() + " | " + (float) (app.getTotalTimeInForeground() / 1000));
time1 = new java.util.Date(app.getLastTimeStamp());
time2 = new java.util.Date(app.getLastTimeStamp()-(app.getTotalTimeInForeground()));
res += app.getPackageName() +" -> n"+
time1.getHours()+ " : " + time1.getMinutes() + ":" + time1.getSeconds() + " |-| " + time2.getHours()+ " : " + time2.getMinutes() + ":" + time2.getSeconds()+ "n"+
+ time1.getDay() + "." + time1.getMonth()+"."+( 1900 + time1.getYear()) + " |-| " + time2.getDay() + "." + time2.getMonth()+"."+( 1900 + time2.getYear()) + "n"
+ " -- " + app.getTotalTimeInForeground() / 1000 + "n";
}
}
System.out.println("--------------------------------------------------------------------------------------------------------------------------------------------nn");
TextView textView = (TextView) findViewById(R.id.text_view);
textView.setText(res);
textView.setMovementMethod(new ScrollingMovementMethod());
}
}
/my 2. app
public class OperationCenter {
public static int RaportTimeHour = 10;// add to the save method
private Context cn;
public OperationCenter(Context con){
cn = con;
ProgramData.TakeWorkingDic(con.getFilesDir().toString());
LoadApp();
}
private boolean CheckNetworkStatus(){
return true;
}
public void TakeRaport(){
TakeAppUsageData();
}
public void StartSpyService(){
}
public void StopSpyService(){
}
private UsageRaport TakeAppUsageData(){
final UsageStatsManager usageStatsManager = (UsageStatsManager) cn.getSystemService(Context.USAGE_STATS_SERVICE);// Context.USAGE_STATS_SERVICE);
Calendar StartCla = Calendar.getInstance();
StartCla.add(Calendar.HOUR, -RaportTimeHour);
Calendar EndCla = Calendar.getInstance();
final List<UsageStats> queryUsageStats = usageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_DAILY, StartCla.getTimeInMillis(), EndCla.getTimeInMillis());
String tmp = StartCla.getTime().getHours() + " - " + EndCla.getTime().getHours() ;
Log.i("rap",tmp);
String res = "";
Date time1 , time2 ;
for (UsageStats app : queryUsageStats){
if((float) (app.getTotalTimeInForeground() / 1000) != 0){
time1 = new java.util.Date(app.getLastTimeStamp());
time2 = new java.util.Date(app.getLastTimeStamp()-(app.getTotalTimeInForeground()));
Log.i("rap",app.getPackageName() +" -> n"+
time1.getHours()+ " : " + time1.getMinutes() + ":" + time1.getSeconds() + " |-| " + time2.getHours()+ " : " + time2.getMinutes() + ":" + time2.getSeconds()+ "n"+
+ time1.getDay() + "." + time1.getMonth()+"."+( 1900 + time1.getYear()) + " |-| " + time2.getDay() + "." + time2.getMonth()+"."+( 1900 + time2.getYear()) + "n"
+ " -- " + app.getTotalTimeInForeground() / 1000 + "n");
}
}
Log.i("rap","---------------------------------------------------------------------------------------------------");
//Log.i("rap",res);
Log.i("rap","---------------------------------------------------------------------------------------------------");
return null;
}
public void SaveApp(){
}
public void LoadApp(){
ProgramData.LoadMyData();
}
}
java android
ı made small app that give me app usage but ıts doesn't return anything when ı take my code the my real app.(my old app min sdk version = 15 new one = API 23: Android 6.0)
/ my first app
public class MainActivity extends AppCompatActivity implements View.OnClickListener {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
//Intent intent = new Intent(Settings.ACTION_USAGE_ACCESS_SETTINGS);
//startActivity(intent);
//GetStatus();
TextView textView = (TextView) findViewById(R.id.text_view);
textView.setText("APP USTAGE");
Button button= (Button)findViewById(R.id.But_3);
button.setOnClickListener(this);
}
}
@Override
public void onClick(View v)
{
int HoursBefore = -2;
System.out.println("1--------------------------");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) {
EditText tmpx = findViewById(R.id.editText2);
HoursBefore = parseInt(String.valueOf(tmpx.getText()));
}
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
GetStatus(HoursBefore);
System.out.println(" saat degeri : " + HoursBefore);
}
@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
public void GetStatus(int HoursBefore){
final UsageStatsManager usageStatsManager = (UsageStatsManager) getSystemService(Context.USAGE_STATS_SERVICE);// Context.USAGE_STATS_SERVICE);
Calendar StartCla = Calendar.getInstance();
StartCla.add(Calendar.HOUR, -HoursBefore);
Calendar EndCla = Calendar.getInstance();
final List<UsageStats> queryUsageStats = usageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_DAILY, StartCla.getTimeInMillis(), EndCla.getTimeInMillis());
System.out.println("nn--------------------------------------------------------------------------------------------------------------------------------------------nn");
String res = "";
Date time1 , time2 ;
for (UsageStats app : queryUsageStats) {
if((float) (app.getTotalTimeInForeground() / 1000) != 0){
System.out.println("-------> "+app.getPackageName() + " | " + (float) (app.getTotalTimeInForeground() / 1000));
time1 = new java.util.Date(app.getLastTimeStamp());
time2 = new java.util.Date(app.getLastTimeStamp()-(app.getTotalTimeInForeground()));
res += app.getPackageName() +" -> n"+
time1.getHours()+ " : " + time1.getMinutes() + ":" + time1.getSeconds() + " |-| " + time2.getHours()+ " : " + time2.getMinutes() + ":" + time2.getSeconds()+ "n"+
+ time1.getDay() + "." + time1.getMonth()+"."+( 1900 + time1.getYear()) + " |-| " + time2.getDay() + "." + time2.getMonth()+"."+( 1900 + time2.getYear()) + "n"
+ " -- " + app.getTotalTimeInForeground() / 1000 + "n";
}
}
System.out.println("--------------------------------------------------------------------------------------------------------------------------------------------nn");
TextView textView = (TextView) findViewById(R.id.text_view);
textView.setText(res);
textView.setMovementMethod(new ScrollingMovementMethod());
}
}
/my 2. app
public class OperationCenter {
public static int RaportTimeHour = 10;// add to the save method
private Context cn;
public OperationCenter(Context con){
cn = con;
ProgramData.TakeWorkingDic(con.getFilesDir().toString());
LoadApp();
}
private boolean CheckNetworkStatus(){
return true;
}
public void TakeRaport(){
TakeAppUsageData();
}
public void StartSpyService(){
}
public void StopSpyService(){
}
private UsageRaport TakeAppUsageData(){
final UsageStatsManager usageStatsManager = (UsageStatsManager) cn.getSystemService(Context.USAGE_STATS_SERVICE);// Context.USAGE_STATS_SERVICE);
Calendar StartCla = Calendar.getInstance();
StartCla.add(Calendar.HOUR, -RaportTimeHour);
Calendar EndCla = Calendar.getInstance();
final List<UsageStats> queryUsageStats = usageStatsManager.queryUsageStats(UsageStatsManager.INTERVAL_DAILY, StartCla.getTimeInMillis(), EndCla.getTimeInMillis());
String tmp = StartCla.getTime().getHours() + " - " + EndCla.getTime().getHours() ;
Log.i("rap",tmp);
String res = "";
Date time1 , time2 ;
for (UsageStats app : queryUsageStats){
if((float) (app.getTotalTimeInForeground() / 1000) != 0){
time1 = new java.util.Date(app.getLastTimeStamp());
time2 = new java.util.Date(app.getLastTimeStamp()-(app.getTotalTimeInForeground()));
Log.i("rap",app.getPackageName() +" -> n"+
time1.getHours()+ " : " + time1.getMinutes() + ":" + time1.getSeconds() + " |-| " + time2.getHours()+ " : " + time2.getMinutes() + ":" + time2.getSeconds()+ "n"+
+ time1.getDay() + "." + time1.getMonth()+"."+( 1900 + time1.getYear()) + " |-| " + time2.getDay() + "." + time2.getMonth()+"."+( 1900 + time2.getYear()) + "n"
+ " -- " + app.getTotalTimeInForeground() / 1000 + "n");
}
}
Log.i("rap","---------------------------------------------------------------------------------------------------");
//Log.i("rap",res);
Log.i("rap","---------------------------------------------------------------------------------------------------");
return null;
}
public void SaveApp(){
}
public void LoadApp(){
ProgramData.LoadMyData();
}
}
java android
java android
edited Dec 28 '18 at 15:38
Zoe
11.3k73976
11.3k73976
asked Dec 28 '18 at 14:38
Yusuf KaraaslanYusuf Karaaslan
13
13
add a comment |
add a comment |
0
active
oldest
votes
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/3.0/"u003ecc by-sa 3.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%2f53960195%2fwhy-does-usagestatsmanager-queryusagestats-return-list-that-size-is-0%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f53960195%2fwhy-does-usagestatsmanager-queryusagestats-return-list-that-size-is-0%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