1. Check out our companion app, Forums for Android! Download from Google Play

Change Textview value Dynamically

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

  1. baris3437

    baris3437 Member
    Thread Starter
    15

    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 Member
    Thread Starter
    15

    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...