Change Textview value Dynamically


  1. baris3437

    baris3437 Member

    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 Member

    I fixed my project. I have used threads and handlers for this job. and now I am able to change my textview value dynamically.
Loading...

Share This Page