1. Download our Official Android App: Forums for Android!

Apps Change Textview value Dynamically

Discussion in 'Android Development' started by baris3437, Jan 23, 2011.

  1. baris3437

    baris3437 Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    12
    Joined:
    Oct 26, 2010

    Oct 26, 2010
    12
    0
    15
    I have been working on a project. In my project, I use a textview that warns the user about the process. For example(Getting values 5/90..). My code is like that;
    .....
    @Override
    public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.mylout);

    Intent i = getIntent();
    Bundle extras = i.getExtras();
    filename = extras.getString("videofilename");

    // here I call some functions that use filename string.
    }

    and I change the value of textview in the process. but the value of textview change after the process. I only see a black screen during process although in mylout there are some views. I see the last state of textview when process ends.


    How can I see the changes of my Textview during my process. I think it is because I put my code in oncreate function. What do you think about it? How can I fix it?
     

    Advertisement

  2. baris3437

    baris3437 Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    12
    Joined:
    Oct 26, 2010

    Oct 26, 2010
    12
    0
    15
    I fixed my project. I have used threads and handlers for this job. and now I am able to change my textview value dynamically.
     

Share This Page

Loading...