Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old January 23rd, 2011, 11:46 AM   #1 (permalink)
New Member
Thread Author (OP)
 
Join Date: Oct 2010
Posts: 12
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Laugh Change Textview value Dynamically

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?

baris3437 is offline  
Reply With Quote
sponsored links
Old January 23rd, 2011, 11:14 PM   #2 (permalink)
New Member
Thread Author (OP)
 
Join Date: Oct 2010
Posts: 12
 
Device(s):
Carrier: Not Provided

Thanks: 2
Thanked 0 Times in 0 Posts
Default Thx

I fixed my project. I have used threads and handlers for this job. and now I am able to change my textview value dynamically.
baris3437 is offline  
Reply With Quote
Reply
Tags
activity, android, textview, view


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:56 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.