Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7034841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:14:02+00:00 2026-05-28T01:14:02+00:00

I am showing data of a <string name=whatsnew> </string> in a textview and i

  • 0

I am showing data of a <string name="whatsnew"> </string> in a textview and i have to show this textview only when the text inside this being changed.

for eg:

If previous state is:

<string name="whatsnew">Hi Stackoverflow Collegues </string>

If current state is this data is being updated as:

<string name="whatsnew">Hello Stackoverflow Collegues</string>

I have implemented a logic that i will retrieve the previous and current stringlength of

<string name="whatsnew"> </string>

containing text.But this logic has a loop hole if the updated text is of same length of previous string length.

Please help me with a better and efficient logic.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:14:03+00:00Added an answer on May 28, 2026 at 1:14 am

    use hashCode() of your string to compare, for example:

    int hash = "this is my string".hashCode();
    

    or simply compare with another string:

    boolean isSame = "first string".equalsIgnoreCase("second string");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a repeater for showing my data . this repeater showing 2 field
I have a GridView which is showing some data: Entity_ID (PK) Name Description Now
When showing data from a mysql table on an php page does it have
I have a DataGrid that is showing some data via a PagedCollectionView with one
I have a Silverlight navigation application, that for some reason when showing a data
I have a nice DataGridView showing what is basically some kind of log data
I am a beginner to WPF . I have a data grid for showing
I have a simple referrers table with three columns: Referrer //string name of partner
I have this HTML: <div class=problem_comment_text id=suggested_solution_text_110 ><p style=font-family: arial;>Solution name: <a class=expand_suggested_solution href=#
I have the following piece of code: DataRow CreateRow(DataTable dt, string name, string country)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.