Passing Intent Values and retrieving data from SQLite database

前端 未结 1 1829
眼角桃花
眼角桃花 2021-01-23 10:59

I have written a application similar to Contacts in android. I have a few items in my list , when I click them , I get the information from a data base and display in another vi

相关标签:
1条回答
  • 2021-01-23 11:56
    Long l = Long.parseLong(name);
    

    is the problem..

    String nameclicked = adapterView.getItemAtPosition(position)
                        .toString();
    

    here nameclicked is a string

    you are sending a string value and trying to parse it to number format. So can i know why you are parsing nameClicked?

    0 讨论(0)
提交回复
热议问题