• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

button listener not working

 
Ryan flech
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello.

the listener dosen't work.here is the code



 
Ryan flech
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the toast parts never runs
 
Ron McLeod
Bartender
Pie
Posts: 1022
64
Android Eclipse IDE Java Linux MySQL Database Redhat
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just ran your code and got Toast for clicks on both start and stop buttons. Do the ids in the layout file agree with the those in the code?
 
Ryan flech
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello.

tnx fo replaying

my mistake. it is working. but now my problem is the whole code is not working or i can't work with it because i don't have two android phone.will you help me with??

my App is voice chat.you push on "start reciving" button in phone X then in phone Y put the Ip address in the textview and push start button.so you can talk to each other (phone X talks to phone Y)

you have to do it over the Wifi.

did i explain clearly??

sorry if my English is awful

the send part code is in first post


recving part :




XML :

 
Ryan flech
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Recive XML:



 
Ron McLeod
Bartender
Pie
Posts: 1022
64
Android Eclipse IDE Java Linux MySQL Database Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unrelated to your problem - you might want to look at using AudioStream for this type of application - it takes care of the networking/scheduling/de-jittering/concealment/etc for you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic