Android :: Tab Host - Property In Manifest For Search Activity

Aug 25, 2010

I have a tab host with two tabs. I want one of those tabs to be a search screen. The content for the tab is a ListActivity. I'm pulling the content from a web service. My problem is, when I execute the search a new intent is pushed onto the screen. I've used the android:launchMode="singleTop" property in my manifest for the search activity. What that seems to have done is, once the new intent is pushed on top of the TabActivity, every time I run the search it reuses that intent. But I want the already existing intent which is set as the tab's content to be the one it uses.

Android :: Tab Host - Property in Manifest for Search Activity


Android :: Start Activity Without Manifest

Jan 22, 2009

I create my Network provider and I want to start Activity from it. Is it necessary to create separate Activity with Manifest and then launch it using startActivity? Can I launch unregistered Activity directly from my provider?

View 5 Replies View Related

Android :: Declare Inner Activity In Droid Manifest?

Sep 10, 2010

In my thread I create an inner activity 'B' at one point in order to launch another activity for result. I need to declare this in my Android manifest file but can not work out what the name of it is as the standard ".B" does not work as it says that activity does not exist. How can I declare this activity?

View 1 Replies View Related

Android :: ActivityNotFoundException For An Activity Declared In Manifest.xml

Jul 5, 2010

I have a launched android application that works fine most of the time. However 1 in about 1000+ runs I get an android.content.ActivityNotFoundException: Unable to find explicit activity class exception. The activity is declared in my manifest and I've never seen it crash myself. It is declared like this...

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

The crash reports show it failing on all OS's from 1.5 to 2.1.

View 2 Replies View Related

Android :: Tab Host Without Tab Activity

Jul 2, 2010

I want to create tabs without extending TabActivity. (The reason is that TabActivity cannot handle a custom titlebar as it seems). I have public class startTab extends Activity I read somewhere that I have to use a LocalActivityManager, I assume that I am missing something there. Anyone an idea?

View 2 Replies View Related

Android :: No Permission In Manifest File For Call But Activity Starts?

Jan 30, 2009

I just created a simple application, that starts the Dial Activity and place a call. I did not provide any permission in the manifest file to start a call, but still the call activity starts. I also checked the AndroidManifest.xml file, there is no permission added, still the activity starts.

View 6 Replies View Related

Android :: How To Get View From Activity Similar To Tab Host

Aug 15, 2010

I am trying to make an Accordian control where each section would have its own view accompanied with its own activity. With the TabHost I can add tabs based on Intents and it is this behavior I am trying to understand how to use. So given an intent or an activity how can i get the view?

View 1 Replies View Related

Android :: Pass Parameter To New Activity With Tab Host?

Oct 15, 2010

I am passing parameter to new activity using tab host in android but it showing illegal exception code...

can anybody tell how to pass parameter using intent with tabhost in android

View 1 Replies View Related

Android :: Inter Activity Communication In Tab Host Application

Jul 22, 2009

Here's the deal: I have an Android application that needs to call a web service every X seconds (currently 60 seconds). This application has multiple tabs and these tabs all need to interact with the data themselves. One is a MapView, one is a ListView and then the third is irrelevant but will need to also get some global data eventually. The issue is that I want my main activity to have a thread that runs in the background, gets the results and then instructs both child activities in the TabHost to update themselves with the latest data. Also, when the user clicks on the tabs and the onCreate/onResume activities fire, I would also like to force a redraw by getting the latest data from the main activity. I'm really at a loss here. I've tried this with a service and some ghetto static methods to pass an instance of the Activities to the Service to call specific functions to update their views whenever the timer fired, but the slowdowns were pretty bad and the code was just ugly ugly ugly.

So I implemented it as a timer-driven thread in the tabhost activity and then I have timer-driven threads in each child activity that then grab the data (in a synchronized fashion) and update their map/list. It's much faster but still feels slightly hack-ish, especially the part where I'm calling a custom function in the parent activity like so:
((MainActivity)getParent()).getNearbyMatches();
This adds an element of strong coupling that I'm not entirely thrilled with, but from a performance standpoint it's much better than it was. I appreciate the answers that have already been given and will do a bit of research on the content provider front but I'm not sure I want to go back to the service model.

View 3 Replies View Related

Android :: Search Box In Activity

Mar 2, 2010

I want to display the Search Box in an activity. But I am not able to get it implemented it properly.

Can anyone provide me with a simple demo of implementing it. I have tried using API Demos example but the Search box just dont appear. I don't know what is the problem. What I want is the Searchbox at the top of the screen and below is the other UI needed for that Activity.

View 2 Replies View Related

Android :: Add A Search Bar In Activity?

Nov 3, 2010

I want to add a search bar in my activity. I have some lat long stored in a vector and i want to search a lat long using search bar and want to animate map to that point.
How to do this?

View 1 Replies View Related

Android :: Odd Behavior With A Search Activity

Oct 24, 2009

I have a package with two activities

1. A main activity 2. A search activity

The search activity is invoked by a search suggestion provider in two possible ways

1. By clicking directly on a suggestion invoking the search activity through a VIEW action 2. By clicking on the explicit search icon invoking the activity through SEARCH action

If it is invoked through SEARCH I stay on the search activity and show some text to the user. Now when I click the back button I go back CORRECTLY to the home page.

ODD Behaviour: However if I came to the search activity through the VIEW, I invoke a browser activity and call finish() on the search activity. Now I have the browser in my view. If I now go back I would expect to go back to teh device home page. But from now where the "main activity" is showing up.

I see in the logcat a message from ActivityManager indicating

moveTaskToBack: 8

I have tried various flags to invoke the browser activity the tried flags include new task previous is top and I have also tried both a singleTop and otherwise with the SearchActivity as well. Same end result.

View 2 Replies View Related

Android :: How To Define An Activity For The Search Button

Sep 24, 2010

I am not using a SearchManager, but I have built my own custom search activity. I want this to be shown when the user clicks on the Search button. How can I do this?

View 3 Replies View Related

Android :: Forward Search Queries To One Single Activity

Dec 15, 2009

have an activity handling search (ACTIVITY_1), which works perfectly when I use the search (via SEARCH button on the phone) within/from this activity. However, when I use search from another activity (ACTIVITY_2..x) by implementing onNewIntent and forward the query string to my Search_Activity.class (ACTIVITY_1) it always pauses ACTIVITY_2 first and then goes to onCreate() of ACTIVITY_2..................

View 5 Replies View Related

Android :: OnSearchRequested - Doesn't Call Search Activity In 1.5

Oct 8, 2009

The 1.5 AVD doesn't seem to follow the documentation in: http://developer.android.com/reference/android/app/SearchManager.html

which says it's enough to call onSearchRequested() to call the search activity. I need to call startSearch() to make it work. However, when I check the source code of Activity.java, onSearchRequested() does call startSearch().

This works in 1.6.

Is this a bug in 1.5, or did I miss something?

View 5 Replies View Related

Android :: How To Start Activity With Long Press Of Search Key?

Nov 11, 2009

By default, if we long press search key it opens quick search box with the keypad slided up. what should be done if I want to change this default action to launching of an application when ever search key is long pressed. This obliviously requires changes in the framework. i tried changing some code in Search dialog.Java file but we can't use Start Activity there. pls guide.

View 2 Replies View Related

Android :: Get Result From Search Manager To Main Activity

Nov 18, 2010

Activity A is main activity. Whereas Activity B is SearcActivity (Search Manager). Activity B is List Activity, so whatever result comes, result is displayed in the list. Once user clicks on the list, I want to get that list selected item to be returned to ActivityA.What I did. Code...

View 3 Replies View Related

Android :: ActivityGroup - Embedded Activity Search Window

May 27, 2009

I have an ActivityGroup with an embedded TabActivity and another simple Activity.

The TabActivity has three tabs, each one with a ListActivity.

When I try to start a search from a list (calling onSearchRequested()), I get a WindowManager$BadTokenException.

I've tried requesting focus in the list, but the same error occurred.

View 4 Replies View Related

Android :: Start An Activity On Clicking Search Button On Droid Handset?

Dec 9, 2009

I would like to start MyActivity class when the user clicks on the search button on the handset.

Are there any strategies you can suggest for this? Any code examples would be very useful.

View 1 Replies View Related

Android :: How To Get Autocomplete For Property In Eclipse?

Jun 15, 2010

Is it possible to get Autocomplete or Something when i work with the eclipse form editor?I write a color in the strings.xml and then i want to select it by the propertys for the text color, but there is no autocomplete or something equal

View 2 Replies View Related

Android :: OnItemSelected Property Of Spinner

Jun 30, 2010

CODE:......

In this code i am creating two drop downs and now my requirement is when i select the item from first combo the data in the second combo must be changed according to the selected item of first combo. now in onItemSelected property how to code specially for first dropdown?

View 2 Replies View Related

Android : Set TextColor Property Of Button In 2.1

Apr 12, 2010

I am trying to set "textColor" property of button in android 2.1. But I am unable to set it to correct value ? What is the correct way of setting "textColor" property of a button in android 2.1 ?

View 1 Replies View Related

Android :: How To Set Image View Property In Coding

Sep 6, 2010

<ImageView android:id="@+id/ImageView01"
android:layout_gravity="center_horizontal"
android:layout_marginTop="30dip"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="fitCenter"
android:adjustViewBounds="true">

I want to set this property in coding for image view not use this,how can i make it?

View 1 Replies View Related

Android :: Apply An Animation To A Property Of View?

Jul 6, 2010

Is there any way to apply an animation to a property of a view? currently, the only animation i am aware of is applying an animation to an entire view. i'm wondering if i can apply an animation to a property (i.e. layout_width for example)

View 2 Replies View Related

Android :: Care To Take When Using A View's SetTag() Property?

Oct 13, 2009

Because Java uses object references and not objects themselves, what prevents me from using setTag() to tag a view with an entire object instead of an object's property? Is it just the attribute lookup time when trying to resolve one of the attributes after the getTag() call or is there any other specific thing I should be concerned about?

As for my specific problem, I am using a custom listview that has an imageview and a textview. Initially I bind the listview to a custom adapter to fetch some xml data and then use certain tags inside each item's xml to populate my listview. So the "entire object" I was referring to was the parsed version of the entire XML of an item...

View 1 Replies View Related

How To Handle Multiple Property Files With Android

Mar 26, 2012

I would like to have multiple property files checked in to my project that each define the same properties but for different environments. For instance, a development one and an operational one that each point to a different server.

Ex. myapp.properties.dev
-> server.host=1.2.3.4
-> server.port=8080
myapp.properties.ops
-> server.host=5.6.7.8
-> server.port=8081

I would like to have some way when building my android project to an apk to specify which property file to include and rename it to just myapp. properties.

View 2 Replies View Related

Android :: Equivalent To Overflow Property In Linear Layout On SDK?

Nov 6, 2009

I've been trying to create a color LinearLayout object (1) within another LinearLayout object (2), while having (1) not display beyond the bounds of (2) - in short, I wish to assign the equivalent of the CSS overflow:hidden property to LinearLayout (2) so that LinearLayout (1) doesn't bleed beyond the edges of (2).
<LinearLayout>
<!-- (2) -->
<LinearLayout>
<!-- (1) -->
</LinearLayout>
</LinearLayout> Is this possible within Android?

View 1 Replies View Related

Android :: Pass Property Value Argument To An Instrumentation Test Runner

Mar 3, 2010

I use the following instrumentation testrunner command line to run JUnit tests on my project :

code:........

and it runs OK.

I am now trying to pass a property value argument to my instrumentation test runner, something equivalent to the eclipse vm argument -Dcom.myApplication.myProperty="String" The value ("String") of a property (com.myApplication.myProperty) must be defined in the command line. I tried to bend my command line to make this work, changing it for example into :

code:..............

but didn't manage to make it work correctly. Is there a way to make this work ?

View 4 Replies View Related

Android : Way To Call Phone Layout_gravity Property From A Java Method

May 31, 2010

I would like to know if is there a way to call android:layout_gravity property from a java method. I didn't found any method in Android documentation to do it. This is the picture of the layout I want to implement: But in my situation, I need to do it through Java code, because I'll implement another layout views dinamically. To avoid merging xml layout with Java code, I would prefer make all layout using Java. Code...

View 2 Replies View Related

Android :: Android - Forward Search Queries To One Single Activity

Dec 15, 2009

I have an activity handling search (ACTIVITY_1), which works perfectly when I use the search (via SEARCH button on the phone) within/from this activity. However, when I use search from another activity (ACTIVITY_2..x) by implementing onNewIntent and forward the query string to my Search_Activity.class (ACTIVITY_1)

@Override
protected void onNewIntent(Intent intent) {
Log.i(TAG, "onNewIntent()");.....................

View 1 Replies View Related







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