Click here to Skip to main content
16,016,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i am developing a new application based on youtube video search.
almost all portions are completed. but i have one problem is that, i cant get a searched video from one class to another class which is shown a video stream.

i passed a string variable from one class to another,because the video decided by one activity and streaming at another activity. I can access the string variable but it shows force close error message.
plz help me sir...........
Posted
Comments
Sergey Alexandrovich Kryukov 14-May-12 1:39am    
The problem is not clear, from the first glance, it looks artificial. If it is not, it should be explained.
--SA

Normally you pass data from one activity to another using the Intent.
Java
Intent intent = new Intent(SearchActivity.this, VideoActivity.class);
intent.putString(VideoActivity.SEARCH_PARAMETER_KEY, searchResult);
startActivity(intent);

where SEARCH_PARAMETER_KEY is a constant String defined in your VideoActivity, and searchResult is a String containing the actual parameter value.
 
Share this answer
 
Please add some code-snippet to give a better picture of Problem Statement.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900