Bluetooth Sending and Receiving Text Data

前端 未结 1 747
悲&欢浪女
悲&欢浪女 2021-01-07 14:39

I\'m new to Android developing and I would like to make an app that sends and receive text using bluetooth. I got everything regarding the sending text logically working, bu

相关标签:
1条回答
  • 2021-01-07 15:10

    One step at a time.

    setContentView(R.layout.activity_main);
    

    will set the content of the view and i am assuming its defined in your Fragment_main should be fragment_main as its a XML file. So if you change it to

    setContentView(R.layout. fragment_main);
    

    you should be able to see the user Interface.

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