Switching between activities

by uday kiran » Fri, 12 Feb 2010 01:57:25 GMT


Sponsored Links
 Hi All,

Im new bee to android development..I have a small issue when switching
from one activity to another..
What i want to do is.. in Activity1 which is in Screen1 i have entered
some data like Name,Age (all are in textview) and after i moved to
Activity2 in Screen2 ..when i clicked Previous button in Screen2 the
Activity1 in Screen1 has to be opened and it has to display the
details what i entered previously.

I successfully transfered the information from Screen1 to Screen2 by
using putExtra(),getExtras()
How to display the text entered in Screen1  that was entered
preoviously.

Pls help me out Its very urgent..

Thanks for the information in advance

--Cheers
Uday

--



Switching between activities

by udaykiran pichika » Fri, 12 Feb 2010 01:57:30 GMT


 Hi All,

Im new bee to android development..I have a small issue when switching from
one activity to another..
What i want to do is.. in Activity1 which is in Screen1 i have entered some
data like Name,Age (all are in textview) and after i moved to Activity2 in
Screen2 ..when i clicked Previous button in Screen2 the Activity1 in Screen1
has to be opened and it has to display the details what i entered
previously.

I successfully transfered the information from Screen1 to Screen2 by using
putExtra(),getExtras()
How to display the text entered in Screen1  that was entered preoviously.

Pls help me out Its very urgent..

Thanks for the information in advance

--Cheers
Uday

--


Sponsored Links


Switching between activities

by TreKing » Fri, 12 Feb 2010 02:37:20 GMT


 



Are you sure it's TextView you're using and not EditTexts? If you're
manually entering information I would expect it to be the latter.



If you're actually using EditText's, they should retain the information you
placed in them automatically. If this is not the case you should elaborate
on how you're filling in this data and / or post some code.

Pls help me out Its very urgent..

I doubt that =P

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
 http://sites.google.com/site/rezmobileapps/treking 

--



Switching between activities

by jotobjects » Sat, 13 Feb 2010 04:25:11 GMT


 Possibly setting android:freeezesText resolves this issue?

 http://developer.android.com/reference/android/widget/TextView.html #attr_android:freezesText






--



Switching between activities

by uday kiran » Mon, 15 Feb 2010 14:52:39 GMT


 Hi TreKing..

Thanks for the reply..sorry im using  EditTexts to enter the data..the
information is not retained.
i will send both XML file and .java file and let me know the bug in my
files.






--



Switching between activities

by uday kiran » Mon, 15 Feb 2010 14:56:48 GMT


 Hi jotobjects

thanks for the reply..
actually im using EditTexts not TextView.. sorry for the wrong
information.






--



Other Threads

1. USB Headphones?

I was wondering why only HTC USB headphones work with the ADP1/G1? I
tried a different MiniUSb to headphone adapter and get cold silence.

What is the pin out on the G1's mini USB port?
--~--~---------~--~----~------------~-------~--~----~

2. Call Activity from Widget, have only one instance. I am confused.

I'm having a similar issue, but related to PendingIntents via notifications.

3. SampleView in a Layout?

4. video capture doesn't seem to work in 1.5

5. Seekbar - Snap to value

6. How to get an applications permission?

7. Drawing Masked Bitmaps