Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7177209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:39:53+00:00 2026-05-28T16:39:53+00:00

I cant find out how to save boolean array into sqlite. I dont think

  • 0

I cant find out how to save boolean array into sqlite. I dont think you can but im using boolean array for setmulichoiceitems and it wont let me use anything else than boolean arary so how would i save it to a database. couldi covert boolean array to string or something some how

boolean[]   states = {false, false, false, false, false, false, false};

final CharSequence[] items = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"};
                    AlertDialog.Builder builder = new AlertDialog.Builder(AddTimeEntry.this);
                      builder.setTitle("Repeat");
                    builder.setIcon(R.drawable.icon);
                    builder.setMultiChoiceItems(items, states, new DialogInterface.OnMultiChoiceClickListener(){
                        public void onClick(DialogInterface dialogInterface, int item, boolean go) {
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:39:54+00:00Added an answer on May 28, 2026 at 4:39 pm

    I just use TEXT and set it to “true” or “false” and then use

    if(string.matches("true")){
        boolean = true;
    } else {
        boolean = false;
    }
    

    EDIT To convert the boolean back to a string use

    if (boolean == true){
        string = "true";
    } else {
        string = "false";
    }
    

    if you want to use an int then

    if(int == 1){
        boolean = true;
    } else {
        boolean = false;
    }
    

    and

    if (boolean == true){
        int = 1;
    } else {
        int = 0;
    }
    

    EDIT 2 A string array is added to by string[0] = "text to add" or you can add them when you declare is

    String[] string = { "string1", "string2", "string3" }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When you allocate an array using new [] , why can't you find out
Maybe I'm not searching correctly, but I can't find out how to configure the
I'm sure this must be possible, but I can't find out how to do
I'm trying to execute a SQL command, but I just can't find out why
I've worked out how to interact with IIS 6.0, but I can't find anything
i'm checking out pyglet, but, funny enough, i can't find how to do a
I'm learning Scala and there is a thing that I can't find out about
I’ve had a good look and can’t seem to find out how to select
I can't seem to understand how I can find out what is erroring out
I'm just starting out with F# and I can't find the syntax to do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.