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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:41:38+00:00 2026-06-04T22:41:38+00:00

Android sqlite commands are like db.delete(table, whereClause, whereArgs); whereClause is a string such as

  • 0

Android sqlite commands are like
db.delete(table, whereClause, whereArgs);
whereClause is a string such as “column1 = ? and column2 = ?”
whereArgs is a string array that holds the values that will be substituted in the whereClause.
Is there an easy way for me to get the decoded string from this (for logging purposes).
String.format seems close, but not quite. This is what I am aiming for:

 Log.e(MY_DEBUG_TAG, 
     "Error executing Delete(" + table + ", " + 
            String.format(whereClause, whereArgs + ")");
  • 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-06-04T22:41:39+00:00Added an answer on June 4, 2026 at 10:41 pm

    If only for logging purposes you may try:

     Log.e(MY_DEBUG_TAG, 
         "Error executing Delete(" + table + ", " + 
                String.format(whereClause.replaceAll("\\?", "%s"), (Object[])whereArgs) + ")");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please let me know how to delete n-rows in android sqlite database. I used
I'm using the insertWithOnConflict function in Android/SQLite to insert values that potentially already exist
I have one problem with Android SQLite database. I have one table which contains
I was reading the Android SQLite NotePad tutorial that referenced creating a DB Adapter
I want to do the replication between Android sqlite & MS SQL server.That Time
I have this error: 12-07 15:27:11.567: E/AndroidRuntime(15797): Caused by: android.database.sqlite.SQLiteException: no such column: recipient:
Suppose I have an android sqlite table as follows: Students courseID name enrolled final_year
I'm working with the Android SQLite db, and I have a table with messages
Hi i'm working on an SQLite viewer in android using java and shell commands
Is there anything like asp.net transactions in Android SQLite? I am doing some processing

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.