User Profile

Anonymous QnA

Anonymous

  • 0Followers
  • 0Experience
  • 4Questions
  • Anonymous QnA

    Anonymous started a new conversation How to convert String object to Boolean Object? 1 years ago ago

    I am trying to use this However that gives me error .

    My String Value is true and False as some situation I need to convert it into String but now I want it in Boolean Object. How can I convert String object to Boolean Object? I have done something like below code:

    Boolean readStatus[] = new Boolean[]{true, true, false, true, true, true};

    in loop

    for(int i=0; i<readStatus.lenght; i++){

    String status=readStatus[i];

    }

    I want to use here my status as boolean.

    if(status){
    SOP("Yes");
    }else{
    SOP("NO");
    }
    
  • Anonymous QnA

    I am trying to use this However that gives me error .

    Why I get this error? How can fix that?

    </ul></div></div><!-- end #main-nav -->

  • Anonymous QnA

    Anonymous started a new conversation Making a Thread to Sleep for 10 minutes 2 years ago ago

    I am trying to use this However that gives me error .

    I want to make my thread to wait for 10 minutes. the thread will do nothing for 10 minutes.

  • Anonymous QnA

    I am trying to use this However that gives me error .

    I'm trying to use the new TabLayout in the android design library to create app bar with icons.

    public void setupTabLayout(TabLayout tabLayout) {
        tabLayout.setTabMode(TabLayout.MODE_SCROLLABLE);
        tabLayout.setTabGravity(TabLayout.GRAVITY_CENTER);
        tabLayout.setupWithViewPager(mViewpager);
        tabLayout.getTabAt(0).setIcon(R.drawable.ic_tabbar_library);
        tabLayout.getTabAt(1).setIcon(R.drawable.ic_tabbar_recents);
        tabLayout.getTabAt(2).setIcon(R.drawable.ic_tabbar_favorites);
        tabLayout.getTabAt(3).setIcon(R.drawable.ic_tabbar_notifications);
        tabLayout.getTabAt(4).setIcon(R.drawable.ic_tabbar_settings);
    }
    

    Result:

    app bar with icons

    Please help me to create app bar similar:

    app bar with icons

    Sorry my english is not good.Thanks is advance !