Android :: SetResult() For A TabActivity Which Contains Activity For Tabs?

Jul 30, 2010

My TabActivity contains two tabs which calls two two different activities . I want to setResult() for the TabActivity when either one of the child finishes.

Is there any method to find out when my activity inside tab finishes?

Android :: SetResult() for a TabActivity which contains activity for tabs?


Android :: Tabs Layout - Tab Activity With 4 Tabs

Nov 11, 2010

I have an Tab Activity with 4 tabs. Each of tab is showing me the list view. Suppose i m on 4th tab and dragged the list view to the last position and after that i click on 3rd tab and again when i go to 4th tab it is not refreshing and showing me the last visible screen. Actually i want to show the list view again from 1st element. is tabs refresh automatically or we need to do it programmatic?

View 1 Replies View Related

Android :: Restarting An Activity Within A Tab - TabActivity

Mar 13, 2010

I have a TabActivity, each tab holds an activity. At some point I'd like to 'refresh' the tabs. I'd basically like to restart each activity in the tabs. I'm not sure how to do this. Calling:

CODE:.........

Removes the tabs, but the activities still seem to be in alive, in limbo. How can I get them to really quit?

View 2 Replies View Related

Android :: Communication Between TabActivity And The Embedded Activity

Jun 28, 2010

I am trying to figure out the best practice of communication between a TabActivity and the child activity embedded in this TabActivity.

In my TabActivity, there is a button. When the button is clicked, I want the child activity embedded in this TabActivity to be updated. I wrote the code like below, and just wonder whether it is a good practice.

CODE:..................

View 3 Replies View Related

Android :: TabActivity How To Show Contact Activity In A Tab

Dec 29, 2009

I am developing an application and as part of it I would like to show a tabactivity and use the contact activity to let the user see,modify,or call a specified contact.

My code is this:

CODE:..........

View 3 Replies View Related

Android : Restarting An Activity In A Single Tab In A TabActivity?

Mar 12, 2010

I have a TabActivity. Each tab points to a sub activity. Works great.

Is there any clever way to refresh one of the activity tabs? I just want to 'restart' the activity in tab #3 for example. Not sure of a good way to do this other than building in refresh support to the activity itself, or clearing ALL the tabs and recreating all of them.

View 1 Replies View Related

Android :: Add Tab Layout Without Letting Activity To Extend TabActivity?

Jul 21, 2010

I want to add tabs to the layout of my activity, but I don't want the activity to extend TabActivity. The example in http://developer.android.com/resources/tutorials/views/hello-tabwidget.html only gave example of subclass of TabActivity.

Is there any way I can make it without extending TabActivity?

View 1 Replies View Related

Android : Access A Method Of An Activity Inside TabActivity?

Oct 1, 2010

I would like to access the public method of an Activity run by a TabActivity using: Code...

Basically, what I what is to let the parent Activity call a method in child Activity in order to do something. Is this possible?

I did try this:((TeamHuddleScreenMsgsView)getTabHost().getCurrentTabView().getContext()).refreshModel(); but I'm encountering a ClassCastException. It seems that the getContext() still gives the TabActivity. Any help on how to get the child Activity?

View 2 Replies View Related

Android : Inside TabActivity / How To Get Instance Of Current Tab Activity?

Apr 23, 2010

I have attached a menu to my TabActivity, and when a menu item is selected, I would like to do something different based on which view is being currently displayed in the TabHost.

int getCurrentTab() returns me the id of the current tab... but from that int how can I get the instance of the activity running?

I also tried getCurrentView(), getCurrentTabView(), but these return things I can't seem to cast to the class of the current activity.

View 3 Replies View Related

Android :: TabActivity Crash When Create Tabbed View In Widget Configure Activity

Dec 4, 2009

I'm trying to create a tabbed view in my widget configure activity. I'm using a tab activity as my activity type and I have the following code..................

View 2 Replies View Related

Android :: Tabs In The Same Activity

Aug 23, 2010

Where I can find a simple tabs example?

The Android Developers Hello Views Tab Layout example only details how to use separate Activities for each Tab.

I would like to use tabs to extend a screen of settings without scrolling, i.e. there are too many options for a single screen, so I'd like to split them over two tabs, but still handle them in the same Activity.

Each tab can refer to a separate layout file if that is how it needs to be done.

View 2 Replies View Related

Android :: Tabs In Every Activity

Nov 4, 2010

My first page contains 3 tabs. I want to retain all these 3 tabs through out my entire application. That means I want to see these 3 tabs in every view. For example : I have 3 views. First view is Main.class. It contains 3 tabs (Home tab, Favourite tab, settings tab). When I am clicking any one tab (Ex: Home Tab), it shows the contents of Home.class (a ListView) below these tabs. But when I am clicking the ListView view , it will go to another activity(SubListView.class), and I can't see the tabs in that activity. Only contents of that view will be displayed there. How can I show these header tabs in that view also?

CODE:.................

View 1 Replies View Related

Android :: Activity Based Tabs

May 11, 2010

I have Activity based tabs i.e i have used TabActivity,tabhost etc Now when we switch between the tabs, for the 1st time the oncreate is called and then after the onResume methode is called I want to know what event/function, of the activity, is called when i click on the the tab which is already selected. You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

View 2 Replies View Related

Android :: Switch Tabs From Within An Activity Within A Tab

Mar 29, 2010

Currently I have a TabHost implemented with 3 tabs each containing a separate activity. My question is how do I switch between tabs from within one of the activities that is located inside the tab host. I've looked everywhere and have been unsuccessful in finding a real answer to this problem.

View 4 Replies View Related

Android :: Update Tabs From Tab's Activity

May 31, 2010

I have a TabActivity and am going to have 3 or 4 tabs.In TabA, I would like to have an ExpandableListView, which will list products. I would like TabC to act as a sort of "shopping cart", probably with a ListView of itself. So, my question is: is there a way to interact with the TabHost from the Activity? I would like to be able to click a button inside of TabA and have it update and switch to TabC. Is this possible? Can I get the Tab's activities call it's parents methods?

View 2 Replies View Related

Android :: Starting Activity With Tabs

May 7, 2010

I have four activity in a Tab and after the user clicked on the list I would like to start another one activity, but I can't use startActivity(Intent), because then I lost the TabHost view, and I get an activity witch is reserving the full screen:( So the user won't be able to click on the other tabs. What should I use? BroadCastReciver or What? If anyone have any good idea please help on me.

View 4 Replies View Related

Android :: Tabs - Starting A New Activity

Dec 31, 2009

I have 4 Tabs in a TabHost...let them be A,B,C,D.... now each one is just an index page and clicking on any of them shows a different activity...

The problem is that i need to start another activity wen user selects something from the content displayed in the tab... The other activity should also be displayed in the parent tab itself... is it by any chance possible or i'll have to try some other way around?

View 2 Replies View Related

Android : Can I Create Tabs From Activity?

May 18, 2010

Is it necessary to use TabActivity for displaying Tabs. I want to display tabs from Activity.

View 7 Replies View Related

Android :: Set The Background Color Of New Activity After Clicking Tabs?

May 28, 2010

I am switching activities on tab clicks and successful at this. But, in one of my Activity class I am doing the following:

CODE:.............

I want to change the background of this layout only and I want tabs to their as it is. But with the currentandroid:layout_height="fill_parent"in main.xml my background is overwriting the tabs which means I am unable to see tabs. and If I makeandroid:layout_height="wrap_content"` I cannot see any change taking and tabs are still their.

View 2 Replies View Related

Android :: How To Set The Background Color Of New Activity After Clicking Tabs

May 28, 2010

I am switching activities on tab clicks and successful at this. But, in one of my Activity class I am doing the following:

CODE:........

main.xml has the following:

CODE:...........

I want to change the background of this layout only and I want tabs to their as it is. But with the currentandroid:layout_height="fill_parent"in main.xml my background is overwriting the tabs which means I am unable to see tabs. and If I makeandroid:layout_height="wrap_content"` I cannot see any change taking and tabs are still their.

View 1 Replies View Related

Android :: Change Activity In Tabs On Button Click?

Nov 20, 2010

I am creating an android application in which uses tabs. There are three tabs which runs different activities. Activity which runs tab 1, has a button. I want to change content of Tab 1 by clicking on that button. But If I call another activity it doesn't start in tab1 but replaces tab.

View 5 Replies View Related

Android :: Access Progress Bar In Main-activity Containing Tabhost From One Of Tabs?

Nov 14, 2010

I am developing an android application where I have a main-activity that contains a progress bar and a tabhost. the tabhost has 3 tabs.How do I from a tab-activity access the progress bar in the main activity? I want to be able to start and stop the progress bar when things changes inside each tab ativity.

View 1 Replies View Related

Android :: Scrollable Tabs - Dolphin Browser When Using Multiple Tabs

Jun 19, 2010

I'm currently working on my first android application. I am using a tabbed layout for my application. I followed the tutorial for this on the dev guide and ran into a problem. The tutorial only used three tabs, but I have a need for more. As such, the tabs resize and bunch up. I was hoping someone could tell me how I can make them scroll, like in dolphin browser when using multiple tabs.

View 1 Replies View Related

Android :: Exception When Use Android Tabs With Intent To Start Activity

Nov 15, 2010

I have an error when i use intent to start activity when i choose a tab

CODE:...

The erroe is Sorry! The Application has stopped unexpectedly, please try again later

View 2 Replies View Related

Android :: TABS In 2.0 Vs 1.5 - Rounded Corners TABS

Feb 27, 2010

I simply use the tabwidget :

CODE:..........

Why are my tabs so uggly in 2.0 (no more rounded corners as in 1.5/1.6) ?

ugly tabs here

=>

This was better

What should I do now to show "rounded corners" TABS to Nexus One (for exemple) users ;-) ?

Is it because of the following manifest lines :

CODE:................

I have to keep android:anyDensity="true" otherwise I've got a problem with re-sizing of the menus described here

As a separate question, my users can change the Locale within my app itself, I then "redraw" the menus using onPrepareOptionsMenu (Menu menu) to refresh the strings within the menu with the new language choosen by the user. Is there an equivalent for TABS (I have local strings within the Title of the TABS) or do I have to delete all the tabs and re-create them from scratch ?

View 2 Replies View Related

Android :: Tabs - MapView - Activities Within Tabs

Oct 19, 2009

We're in the process of writing an app that has 4 tabs: Map, People, Places, Events. The People, Places, and Events in the App show up as Icons on the map. By default the People, Places, and Events tabs each show a listview, custom rendered, displaying all the People, Places, and Events respectively.

Now, right now each of the tabs has as its content an Intent set to launch the corresponding activity. For instance, there is a MapTabActivity that extends MapActivity, a ShowPeopleListActivity that shows the people, and so on and so forth.

I see a lot of StackOverflow questions/answers saying that due to various limitations in the way the TabHost is setup, it's best NOT to use activities as the content of tabs. For instance, it's impossible to launch a new activity and have it take the place of the existing activity within a tab, whereas it's possible to switch out a View with a different view.

Now, I'm at a crossroads. We've (for better or worse) devoted a fair amount of time trying to get this app to work the way it's currently structured, with the Activities as the content of the tabs. When an icon corresponding to a Person, Place, or Event is clicked, it fires off a VIEW Intent on a URI corresponding to that object; this is picked up by an Activity that then shows the object. The same mechanism is at work both in the Map and in the individual lists. We really like the loose coupling this provides us; we just give a VIEW command and the URI to the person/place/event and it automatically brings us to the right activity. Granted, the activity that's launched covers up the tab view rather than appearing inside of that, but we were willing to live with this.

Here's an issue though: from the Show activity, we want to be able to go back to the map, centered at that person, place, or event. We can launch a new activity to show the map again, but now we have the map activity as the content of the tab, plus the show activity, plus the new map activity in the activity stack; given how resource intensive the map activity is, I'm guessing this is not the ideal way to go.

I guess my question is, is there a GOOD tutorial somewhere showing exactly how to do complex tasks with a TabHost? I've seen HelloTabWidget; I'm looking for something much more sophisticated than this. I'm worried that if we switch to the View based way of doing things, we'll have to do a LOT of housekeeping to intercept all the back events, try to switch out the views, etc., etc., as well as strongly coupling our program in a way we don't want.

View 5 Replies View Related

KitKat 4.4 :: Change Between Tabs By Swiping Left To Right To Change Tabs

Jan 10, 2014

i have a problem with this new kitkat os. Before kitkat i could change between tabs by swiping left to right ir right to left to change tabs.Now it doesn't change.

View 1 Replies View Related

Android :: Add Footer In TabActivity

Jun 15, 2009

I created a TabActivity with contains 3 tabs. Each tab's content sets different Intents.I would like to add a "footer" wich will appear on each tab. So I get TabActivity's FrameLayout and add it my footer view.Is it possbile to define where place the footer (with an attribute like AT_BOTTOM)? So contentTab dimensions are calculated according to this footer.

View 4 Replies View Related

Android :: AlertDialog Within TabActivity

Oct 12, 2010

I have a TabActivity with 3 tabs. Each tab contains its own Activity. When one of the contained Activities pops up an AlertDialog, there are actually 3 dialogs created. The dialog has a Dismiss button and it must be pressed 3 times to finally dismiss the 3rd dialog.

View 2 Replies View Related

Android :: Returning Value From TabActivity

Oct 1, 2009

How can I return a value from TabActivity? It seems that the return value from tab pages vanishes and the caller always receives RESULT_CANCELED instead of RESULT_OK.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved