Skip to main content

Posts

Showing posts with the label tabhost

Android: how to open new intent from ListView, hosted in TabHost, inside same FrameLayout?

I looked through tons of articles how to open new Activity from ListView hosted by TabHost. I have a TabHost Activity, one of the tabs has ListView, with clickable list items. On item click, I want new Activity to be opened in the same FrameLayout. My code for calling new Activity looks as following: Intent intent = new Intent(v.getContext(), displayRSS.class); this.startActivity(intent); This opens just new Activity. I want new Activity to be opened instead of current ListActivity. Would appreciate any possible solutions on this.