Getting the ID of the ListView Item when it is populated from a database

I am developing an android app in which user fills a form by selecting CREATE NEW from a list view and the form is stored in a SQLite database and appears on listview. It is like this Starting only CREATE NEW After filling a forms ListView will be like CREATE NEW FORM1 FORM2 Each form refers a record in a database table Now What I want to do is. If I click on Form1 it should open for the user to edit and so on. I am using the position of the listview to match with primary id of the record and showing the respective record But the whole problem is coming when I delete records Is there any more elegant method to get the ID of the ListView Item when it is populated from database?

以上就是Getting the ID of the ListView Item when it is populated from a database的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏