• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to return a string from java project into android project

 
Amit Shef
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried many times to return a string from java project to an android project But it keeps sending incorrect values as in 2 as it should be 1 here is an example.

Java Project:

Android project:


and in the android project it prints "FALSE"

So what should i do? Thanks for all...
 
Supun Lakshan Dissanayake
Ranch Hand
Posts: 135
Android Java PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why did you use something =="1"

If you want to check the equality of two strings you should use equals method

Pay attention to following example



find out WHY position 1 gives true
Google it
You will find the answer, trust me ;)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic