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.

Android :: ActivityGroup - embedded Activity search window


Android :: Embedded ActivityGroup And Dialog Box

Apr 14, 2009

I'm trying to run an activityGroup embedded inside another activityGroup. (Example : an activityGroup inside a tabActivity)

This seems to display properly but throw an exception when i'm trying to display a modal box like an alertDialog.

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

If childActivity1 or 2 try to display a dialogBox i'm getting this exception :

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

View 2 Replies View Related

Android :: Which Window-toolkit To Use For Embedded Linux

Sep 4, 2009

I am using embedded-linux for device which has Arch ARMv5 Speed 266MHZ, vfpu and 32bit bus, 32MB 133 Mhz DDR Ram. can you tell me which windowing system should I use,

1).QT for embedded linux
2). Android.
3). Other!

Well, I am using microwindows for last one year and not satisfied with it as it does not have BSP (Binary Space Partitionin) in its windowing system , No shared memory support for bitmaps. I think Microwindows is just optimized for memory-size not for speed.

View 4 Replies View Related

Android :: Search Engine App In Perst 4.0 Embedded Database?

Jan 26, 2009

Looking for a way to integrate full-text search and fast, lightweight data management with your Android applications? The new Perst 4.0 open source, object-oriented embedded database system brings native full-text search capability to Android and builds on this feature to provide a sample search engine application for contact data residing on mobile phones.

To provide search, the database stores an inverse index of keywords, with parsing and stemming of indexed text performed either by user- defined code or by Perst's default simple parser and stemmer. The feature supports logical operators and calculates relevance of search results to a query. The new sample application, ContactsIndex, stores and indexes contact information, and could be extended to provide search capabilities for PDF, word processing, HTML and other stored files. The example applications are included with complete source code in the Perst 4.0 for Java distribution..............

View 3 Replies View Related

Android :: ActivityGroup Start 3rd Party Activity

Mar 30, 2010

I'm trying to make an ActivityGroup which has it's own interface, which should be persistent between Activities.

I have it working for my own Activities. But when I try to launch a 3rd party activity (from it's Intent{action="ACTION_HOME", category="CATEGORY_LAUNCHER"}) I get a java.lang.SecurityException because the Activity I want to start does not have the same UID as the calling Activity. Does anyone knows how to cirumvent this?

View 1 Replies View Related

Android :: How To Communicate With Embedded Activity?

Jan 30, 2010

In my current project I have a full screen TabActivity. Each tab content is handled by two instances of same ListActivity. Now, I put an extra int in intent to know which data should be displayed.So in onCreate method of my ListActivity, I check the int in extra and I build my query to obtain a SQLLiteCursor.I would like to dynamycally give to this two instances of ListActivity the list of item that should be displayed.I do not know what is the best way to do this. Any idea ?

View 1 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 :: Activity Leaked Window

Oct 2, 2009

Is the 'Activity leaked window' issue (http://code.google.com/p/ beepmystuff/issues/detail?id=3) fixed in any of the latest Android releases? I'm not sure about the Android version I'm using. I get this error during orientation changes. I create PopupWindows inside TextView. When I change orientation when the popupwindow is shown, my log says Activity has leaked a window (popupwindow) and then sometimes the application crashes, but not always. When the application crashes, the log says 'Uncaught handler: thread main exiting due to uncaught exception java.lang.IllegalArgumentException: View not attached to window manager'

View 11 Replies View Related

Android :: Leaked Window In Preference Activity

Jan 30, 2009

I've created a set of preference screens building on the tuts on androidguys. My preference XML contains nested PreferenceScreens. The below doesn't occur in the root screen, only once clicking to a child PreferenceScreen. Once in that PreferenceScreen, even before selecting an EditPreference, if I change orientation (i.e. flick the G1 keyboard out) I get an error: 01-30 09:33:54.080: ERROR/WindowManager(1261): android.view.WindowLeaked: that was originally added here.I have previously overcome this in other activities by utilising the onPause etc methods with custom dialogs I use. How can I prevent this in the PreferenceActivity? What am I missing?

View 17 Replies View Related

Android :: How To Capture Key Events With Window-less Activity?

Dec 2, 2009

I have an Activity which has no window (but it has a view). I'm using: getWindowManager().addView(view, params);I've attempted to call takeKeyEvents(true), however I see that takeKeyEvents first retrieves the Window and then calls takeKeyEvents on that Window.In my case, the Window is null.What this means is that I never receive onKeyUp and onKeyDown calls, which I need in order to intercept some key presses from external input devices (similar to a handsfree set for example).

View 10 Replies View Related

Android :: Create Transparent Window Without Starting A New Activity?

Mar 19, 2009

I have a 2D app. When the user presses a button, I need to quickly open a translucent 3D animation and overlay that on top of the 2D app. This is similar to the "Translucent GLSurfaceView" demo in APIDemo.

However, with APIDemo on G1, it takes about 100~200ms for the new Activity to come up. For me, this is too long. Is there any way to make it faster (to about 30~60ms).

My idea is to create a transparent Window object that contains a SurfaceView and hide it. When user presses button, the Window is shown.

View 2 Replies View Related

Android :: Starting Activity Witouth Window From Widget

Apr 17, 2010

I recently (yesterday in fact :)) started creating widgets.

So my first widget I want to create is something like: * A 2x2 widget * Containing 2 buttons * Button

1: Register current time and location * Button

2: Open up an activity where configuration can be modified, registered times and location can be viewed,...

Now the problem for me is button 1. As I only try to do some registration data (so no further user input required after pressing the button) I would like to just show a loading bar and after wards Toast a message to screen, or a popup if anything goes wrong.

This is what I do now:

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

So what happens: I click the button, a plain black screen pops up (Altough I did not specify a layout upon creating the activity), and after my work is done the Toast shows up and the activity gets 'killed'. Basically that is what I want to do except for the black screen to show up. Is it possible not to show a screen upon creating the activity?

View 2 Replies View Related

Android :: Progress Dialog Unable To Add Window In Preference Activity

Jun 17, 2010

I encounter a problem with a ProgressDialog in a PreferencesActivity in my application.What I want to do is pop up a ProgressDialog after the user has changed his username or password during the check on the remote server. In the onSharedPreferenceChanged() I call the ProgressDialog.show() method. Sometimes it works fine, sometimes not at all.

View 2 Replies View Related

Android : How Can I Get A Dialog Style Activity Window To Fill Screen?

Sep 1, 2009

I am using an activity with the dialog theme set, and I want it to be full screen. I tried all sorts of things, even going through the WindowManager to expand the window to full width and height manually, but nothing works. Apparently, a dialog window (or an activity with the dialog theme) will only expand according to its contents, but even that doesn't always work. For instance, I show a progress bar circle which has width and height set to FILL_PARENT (so does its layout container), but still, the dialog wraps around the much smaller progress bar instead of filling the screen. There must be a way of displaying something small inside a dialog window but have it expand to full screen size without its content resizing as well?

View 2 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 :: Downloader Activity - After Downloader Has Completed Window Disappears And Nothing Happens

Jan 1, 2010

I have integrated the downloader activity (Google provided) into my application.. On the whole a very straight forward process. A problem I have though, is, after the downloader has completed the window disappears and nothing happens. If I hold down the HOME key I see my app and if I click on it my appss window comes up and runs correctly. Also when I run it subsequently it works correctly. Has anyone else experienced this? It certainly looks like the downloader should trigger my app when it is done; I am not sure if the window is just not getting focus or someething. It is a fullscreen GL app.

View 2 Replies View Related

Android :: Difference Between Phone Window And Mid Window

Sep 1, 2010

What is the basic difference between the PhoneWindow and MidWindow policies? I found that the emulator version takes the implementations of the PhoneWindow.When the MidWindow implementations will be used? Also, I found that PhoneWindow handles the call settings implementation and the same is not there in MidWindow? Please someone help me pointing out the differences between both the policies and under which circumstances which one will be used.

View 6 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 :: 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.

View 3 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 Use ActivityGroup

May 12, 2009

About ActivityGroup or give me some hints on how to use it? I looked at the documentation but I wasn't able to understand how it works...

View 4 Replies View Related

Android :: Add MapActivity To ActivityGroup

Mar 3, 2009

I want to add a MapActivity in an ActivtyGroup. As only single level inheritance is supported, my class can either extend from either MapActivity or ActivityGroup. As far as I know MapActivity is not a part of ActivityGroup. I want an activity to extend MapActivty as well be a part of an ActivityGroup.

View 2 Replies View Related

Android :: ActivityGroup And LocalActivityManager

Mar 24, 2010

I need a to create a layout that holds to other layouts. each one of the layout should be populated by a different activity.

I've done some research and came across the fact that I need to implement an ActivityGroup and use it's LocalActivityManager. problem is that I don't understand the View hierarchy in such a situation. a naive attempt to find the view of the parent window (simple findViewById) fails (returns NULL).

I can't find any examples on the web. have anyone done it before?

View 6 Replies View Related

Android :: ActivityGroup And SearchDialog

Aug 19, 2010

So I have a default searchable Activity in my app, and if I press the search button in simples activities it works. But when I'm in a tab where the content is an ActivityGroup, and not an Activity, the app crashes.

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

Even if I add this code in my activityGroup, I'm still crashing :

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

View 1 Replies View Related







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