Sure, that works, although I would recommend
dbHelper.delete(DATABASE_TABLE_2, KEY_NAME + "=?", new String[] { myName })
for safety reasons. That way, you can have special characters without breaking your query. Did this not work?
More Related Contents:
- After clicking in buttons My App has stopped
- Is there a way to run Python on Android?
- Converting JSONarray to ArrayList
- AlphabetIndexer with Custom Adapter managed by LoaderManager
- Android Volley – BasicNetwork.performRequest: Unexpected response code 400
- getActionBar returns null
- How to get the Correct orientation of the image selected from the Default Image gallery
- RecyclerView itemClickListener in Kotlin
- Android read browser history
- How to open Email program via Intents (but only an Email program)
- Android Webview app won’t let video player go full screen
- How can I force the Action Bar to be at the bottom in ICS?
- How to display input errors in popup?
- Android: RadioGroup – How to configure the event listener
- Why are these permissions being refused?
- android communication between two applications
- How to handle the Firebase notification when app is in foreground
- Android adb not found
- How to create an AVD for Android 4.0
- Firebase JobDispatcher – how does it work compared to previous APIs (JobScheduler and GcmTaskService)?
- Displaying Contact Number and Contact Name in a custom list view
- android 4.0, text on the action bar NEVER shows
- Include Stetho only in the debug build variant
- Fragments – The specified child already has a parent. You must call removeView() on the child’s parent first
- How to store sqlite database directly on sdcard
- Communicating with serial USB device over Android
- Disappearing divider in ListView when ArrayAdapter.isEnabled returns false
- How to pass value using Intent between Activity in Android?
- LiveData remove Observer after first callback
- Swipe/Fling tab-changing in conjunction with ScrollView?