Android :: TabActivity - Refreshing ?

Aug 18, 2009

I have a TabActivity based class which has 3 tabs. All are ListActivities (but that's not important for this problem)

I'm updating the TabHost's TabSpec's to change the text on the tabs. This works fine and the ListActivities display correctly.

Iater on the execution flow I need to update the Text on the tabs from "Current Text" to "Current Text (3)", for example. I update the TabSpec.setIndicator() with the new text, and attempt to call invalidate() on the TabWidget (and all it's children). But the tab text refuses to update!

Android :: TabActivity - Refreshing ?


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

Android :: TabActivity Customization / How Is Possible

Aug 18, 2009

More of a TabWidget question I guess really...

I would've tried to send a screenshot for this query if I could, but i'll try and explain.

I have 3 Tabs, each showing a separate Activity. Underneath those tabs (and above the activity display), I want to display a header. This header would probably be a Layout of some sort with a TextView inside it and a background 9patch.

Is this possible, if so how?

View 2 Replies View Related

Android :: TabActivity And ListActivity?

Feb 2, 2010

I am having a problem.I want to explain in detail. 1)I am Having an TabActivity with 5 tabs. I loaded content as follows.

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

And the Problem is If i want to start activity which is not specified in tabhost in above Java code,it is going out of tabactivity. ie.,It is not coming in tabactivity.

2)But i want to have all the activities under tabActivity.

View 4 Replies View Related

Android :: AsynQueryHandler In TabActivity

Aug 12, 2010

I create a TabActivity from Several ListActivities.

The lists are created from a cursor load in a AsyncQueryHandler. I have got no problem to load the content of the list.

After that I run an insert in the AsyncQueryHandler, and I meet the following error. The insert is done by the listActivity.

If I run my listActivity individually and that I do my insert, everything is find. Do know why ?

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

View 3 Replies View Related

Android :: Getting The TabActivity To Work?

Mar 26, 2010

I'm having some difficulties getting the TabActivity to work.

Here's the implementation of the class:

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

The problem is that I call this class from my main activity (which is a MapActivity if it matters) and when I do the TabActivity doesn't show. It registers the click on the option menu and it even starts the intent but the screen doesn't change..it just stays on the main activity and i see in the logs that the main activity gets resumed.

I call it like this:

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

Like I said...there are no errors (the classes called from the tabs exist of course), just no actions. I put some log commands into the onCreate function in the tabactivity (as you see) and they all get written into the log...I have no idea what I'm doing wrong here.

View 3 Replies View Related

Android :: TabActivity With Scroll?

Dec 7, 2009

I'm working on Android v1.5. I want to use a TabActivity with 6 or 7 or more tabs. However, I do not want to clutter my screen with so many tabs together. Hence, I'd like to be able to show, say, 3 tabs on the screen, and to be able to scroll to the other tabs. How may I achieve this? I could not find any example for this by Googling.

View 5 Replies View Related

Android :: TabActivity And StartAcitivtyForResult

Apr 13, 2010

Can I make TabActivity start it's childs activities for result? I need it because I can't make result code from a tab to propagate all the way up in the chain (it's reset in the TabActivity)

View 1 Replies View Related

Android :: Simple App With TabActivity

Nov 17, 2010

I have been trying to reuse the tutorial on the Android developer website about developing a TabActivity App but, unfortunately, it never worked, even when I constructed it the exact same way as it is described...
Using the debugger it seemed the problem came from the main layout.

-> setContentView(R.layout.main); //After this line the app stops.

Here is my main.xml:

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

View 1 Replies View Related

Android :: LocationListener Not Refreshing

May 25, 2010

I'm trying to develop a small app, that can retrieve GPS coordinates, and store them, so I can retrace the path I took. The thing is, the GPS on Android emulator is kind of screwing around with my nerves... First of all, the Mock Position system doesn't work, so I'm manually fixing the coordinates with telnet "geo fix" command. Second of all, the location listener seems to not be refreshing. I'm lauching the app, fixing a first set of coordinates, and observing the response I expect. But when I push a second set of coordinates, the app simply doesn't react.

I tried a lot -big lot- of ideas on this, and I'm kind of running short...

By the way, I'm developping on Eclipse with ADT, and the SDK for Android 1.5 (French HTC Heros are still with Android 1.5) so that I can use my own app.

Here's my code (just the coordinate retrieval part) :

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

View 3 Replies View Related

Android :: Refreshing A Spinner

Jul 3, 2010

I have a view with a spinner. The activity starts another acvitity with a popup where I add or delete values that the parent shows in the Spinner.

So, in onActivityResult() I refresh the content of the Spinner so that it reflects any additional or deleted values, by calling my fillSpinner() method.

The parameter to this method is the previously selected value:

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

When I open the Spinner, it contains the correct list (i.e. it was refreshed) and the correct value is selected. However, the Spinner control itself (in its closed state) does not show the selected value, but the first in the list.

When I step through the code in the debugger, the Spinner value is correct before and after I call setSelection() (and it is always called with the same correct id). However, since I cannot step out of the event, when I resume the execution after a short moment the value in the Spinner changes.

In other words, the spinner's displayed string is changed and is different from the selected item when I return from my popup activity.

View 1 Replies View Related

Android :: Refreshing A Listview

Jul 7, 2010

I have a listview that's populated by rows that get their data from a web server. It all works totally fine except I want to have a refresh button to re-download the data. I'm getting the data through an asynctask (getting the data in doinbackground) and then setting the listadapter in onpostexecute. All I do to run the asynctask which should take care of everything is run

new PopulateListTask().execute();

However, in my optionsSelect method, creating a new asynctask just like I did in oncreate doesn't do anything. It doesn't even enter doInBackground. I've tried using listView.invalidate() and listView.invalidateViews(). Is there some special way I'm supposed to repopulate a listview?

My only guess is that since I'm using a custom adapter, my getView method is creating some kind of error, but that wouldn't explain why it's not even entering my asynctask's doInBackground method. Thoughts?

Posting some code. This is a trimmed down version.

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

I'm getting this in my logcat when executing my asynctask the 2nd time. Any idea what it means? I tried googling to no avail.

View 1 Replies View Related

Android :: Refreshing An Activity

Aug 23, 2010

I created an Activity which allows navigating between pages with a couple of Buttons (Previous and Next). When the user clicks one of the buttons, the Activity (same) needs to be "refreshed". In order to do this, I set up the buttons to make a call to onCreate(this); after they set up the other stuff that the activity uses for the paging to work. And it is working so far, but I'm wondering if there is a better way. Is there?

View 3 Replies View Related

Android :: OnKeyDown Not Being Called In TabActivity

Jun 20, 2010

I am trying to override the behavior of a TabActivity that has other Activities as children. I have made all of the children activities return false in onKeyDown so that the key will propagate through to the parent.However, this is not the case.The only key that is being recognized is the search key.Back, menu, and home are not being overridden.

View 6 Replies View Related

Android :: Displaying A ListActivity In A TabActivity

Feb 10, 2010

I have issues with displaying a ListActivity in a TabActivity.

The super simple code below causes a crash.

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

View 5 Replies View Related

Android :: Problem With Extends TabActivity

Apr 30, 2009

I have problem with extends TabActivity.

My code is:

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

View 6 Replies View Related

Android :: TabActivity - OnClickListener Not Working

Jun 30, 2009

I have a Tabbed View that displays a list in different tabs. When I click on the currently active tab (not the displayed view) I want to do something. Currently - the OnClickListener is NOT called. the OnTabChanged Listener however seems is working fine. Am I registering on the wrong View?

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

View 3 Replies View Related

Android :: StackOverflow Exception While Using TabActivity

Jul 21, 2009

I have a TabActivity, there are 4 tabs. In each tab I have put a single Activity. One of the activities contains a Custom List View which uses a CustomAdapter which extends the BaseAdapter.

I get this excpetion, when I try to open the tab containing this activity. It seems to be thrown at a point when probably the TabActivity is being re-drawn. Can anybody please suggest some alternatives, or solutions to avoid this problem.

Here is the stack trace.

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

View 3 Replies View Related

Android :: ListView Inside TabActivity?

Aug 21, 2009

I wanna put a "List" inside a TabActivity. by google and coder's guide, my work out "direction" is to create a "TabActivity" as MAIN and "ListActivity" then add it in the "TabHost" and turn out code something like (below) and fail:

CODE:.........

I know i may need to spend more time on the BOOK and google for android development, but i also feel that the resource for android is quit scattered and not detail. (i'm a developer of C# for a few years, and it's more easilier to search for information)

View 2 Replies View Related

Android :: Launching A Service From A TabActivity

Aug 4, 2009

I'd like to start a service from a tabactivity (I first tried in the activity launched for a tab but it seems taht there is a technical limitation).

So inside my TabActivity I defined a method named startService() which is quite simple:

> instanciate a new Intent > call the method startservice > Inside my "tabbed" activity (I mean inside a tab) I make a reference to the TabActivity and I call the method startService.

View 2 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 :: Access Listview From TabActivity

Apr 20, 2010

I can't find the way to get ListView reference that is the part of TabActivity. I have 2 tabs - ListView, TextView. Theare no problem to access TextView using the following code in TabActivity:

CODE:........

But frame.getChildAt(0) returns com.android.internal.policy.impl.PhoneWindow$DecorView And I actualy don't know the way how to cast this reference to the object and to get its ListView child.

Tab initialization code:

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

View 2 Replies View Related

Android :: Optionsmenu In An TabActivity For A Specific Tab

Aug 4, 2010

I have got a TabActivity, which has 4 Tabs right now. The first Tab is a special Details-Tab, where the user could modify some data.

The problem is, that if I add a OptionsMenu for the Activity, that the OptionsMenu is appearing on every Tab.
I tried to check the current mTabHost.getCurrentTabTag() in the onCreateOptionsMenu but that changed nothing.
So, how to do that?

(The following code, which still shows the OptionsMenu on every Tab)

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

View 1 Replies View Related

Android :: Weather Widgets Not Refreshing

Feb 21, 2010

Anyone else having problems with the Weather Widgets app clock not refreshing? The weather seems to do its job every 30 minutes, but the clock gets stuck at times. Like today, it was 3 hours off. Anyone know of a fix for this? I checked for updates, but no luck.

View 4 Replies View Related

Android :: Refreshing An Activity On Tabwidget

May 24, 2010

I need to refresh my listview on my activity whenever i remove an item. I tried to call the activity (startActivity(Intent) ) it works but i lose the tabwidget.How Can I refresh my list without any lost ?

View 10 Replies View Related

Android :: Refreshing A ListActivity Within TabView

Nov 20, 2009

I'm running into some issues here with my app. I have 4 tabs run through a tabActivity. One tab sends an intent and run my ListActivity that populates the screen from a simpleCursorAdapter. My problem is that when I change back to this tab, after the first time its run, the list never refreshes regardless of the changes made to the database via other tabs. Is there something I can call from onTabChanged to refresh my ListActivity?

View 3 Replies View Related

Android :: ScoreMobile - How Does Refreshing Work

Sep 20, 2010

In the Settings menu, there is an "Auto Refresh" option which you can set to "Never," but there is also a "Ticker Refresh" option which you can't turn off. What do each of these things control? Is the Auto Refresh just for when the app is running? Does it affect the widget at all?

Does the Ticker Refresh option only affect the widget? Does it have any effect if the widget is not being used on any homescreen?

View 1 Replies View Related

Android :: Refreshing Data In ExpandableListView?

Apr 24, 2010

My problem is when I want to refresh data in ExpandableListView while being in that current activity. I create adapter and when I want to add new data to list I call again constructor of that adapter(it is my private variable) with all new data....and then I call onContentChanged() method to redraw my list.
But what happens is that I cant expand my list any more...like it is blocked or something and logcat isn't saying anything...

This is the code that i call after setting new data in arraylists and maps:

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

View 1 Replies View Related







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