For string data type always use quotes like this ‘”+rid+”‘” since rid is String you get error.
You should use +rid only if rid is int.
More Related Contents:
- Can’t add parameter ‘this’
- android.content.res.Resources$NotFoundException: String resource ID #0x0
- SQlite Getting nearest locations (with latitude and longitude)
- execute shell command from android
- Any good ORM tools for Android development? [closed]
- Android getting value from selected radiobutton
- The following classes could not be instantiated: – android.support.v7.widget.Toolbar
- How to group a 3×3 grid of radio buttons?
- How to add image in a TextView text?
- Database not copying from assets
- Android search with Fragments
- How to get the selected index of a RadioGroup in Android
- Get generated id after insert
- InflateException: Binary XML file line #1: Error inflating class caused by OutOfMemoryError
- Navigation drawer item icon not showing original colour
- Is there an easier way to parse XML in Java?
- Android: Specify two different images for togglebutton using XML
- how to update xml file from another xml file dynamically?
- What is the use of BaseColumns in Android
- How to activate “Share” button in android app?
- Bold words in a string of strings.xml in Android
- How do I get a button to open another activity?
- CollapsingToolbarLayout doesn’t recognize scroll fling
- How is using OnClickListener interface different via XML and Java code? [duplicate]
- UNIQUE constraint failed: sqlite database : android
- How To Test If Cursor Is Empty in a SQLiteDatabase Query
- Unity3D and Android Studio Integration
- Read data from SQLite where column name contains spaces
- If I declare a fragment in an XML layout, how do I pass it a Bundle?
- Do not request Window.FEATURE_ACTION_BAR issue