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 6790563
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:44:24+00:00 2026-05-26T17:44:24+00:00

How to insert a string array values to a table? 1,1,null,null,9876543210,null,1,-1,3,null,null,Testing message,null,0,0,0 The above

  • 0

How to insert a string array values to a table?

1,1,null,null,9876543210,null,1,-1,3,null,null,Testing message,null,0,0,0

The above is the value in a String[]. I want to insert this to my database table.

Here’s my code : –

while((st = reader.readLine()) != null)
{
try
{
    splitArray = st.split("\\n+");
}catch(PatternSyntaxException e ) { }

for(String result_array : splitArray)
{
Toast.makeText(context, result_array, Toast.LENGTH_SHORT).show();
}

What’s the SQL statement to do this?

  • 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-26T17:44:24+00:00Added an answer on May 26, 2026 at 5:44 pm

    i have been trying to do the same thing and just worked it out. you
    want to do something similar to this.

    <uses-permission android:name="android.permission.WRITE_SMS"/> 
    <uses-permission android:name="android.permission.READ_SMS"/> 
    

    Code

     public static final String ADDRESS = "address"; 
     public static final String PERSON = "person"; 
     public static final String DATE = "date"; 
     public static final String READ = "read"; 
     public static final String STATUS = "status"; 
     public static final String TYPE = "type"; 
     public static final String BODY = "body"; 
     public static final int MESSAGE_TYPE_INBOX = 1; 
     public static final int MESSAGE_TYPE_SENT = 2; 
     ContentValues values = new ContentValues(); 
     values.put(SMSHelper.ADDRESS, "+61408219690"); 
     values.put(SMSHelper.DATE, "1237080365055"); 
     values.put(SMSHelper.READ, 1); 
     values.put(SMSHelper.STATUS, -1); 
     values.put(SMSHelper.TYPE, 2); 
     values.put(SMSHelper.BODY, "SMS inserting test"); 
     Uri inserted = getContentResolver().insert(Uri.parse("content:// sms"), values); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes I need to insert into the table some null values, or update them
Why? try{ $st = $this->prepare(INSERT INTO thetable (a,b) VALUES (?,?)); $st->execute(array(5,5)); $id = $this->lastInsertId();
I am trying to insert a string in MySQL table. But the following is
What is wrong with this code ? set<string> nk ; bitset<3> bs1(string(100)); nk.insert(bs1.to_string()); error:
I'm trying to insert a comment character into a string something similar to this:
In PHP, I want to insert into a database using data contained in a
i retrieve data from upc database and then want to insert the data into
I want to insert mutiple rows in mysql table using php. Data is in
I've developed a method that allows me to pass in a table (string), array
Hi I have a table column in Oracle 10 which contain a string array

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.