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
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
Nov 22, 2010
Is there a way to embed the progress bar in the UI with out an dialog. And not programmatically but with layout xml files. I am guessing it has to be some sort of animation or a "drawable"
View 2 Replies
View Related
Aug 18, 2009
I have an application that uses the webview to load webpages so user can download media off them, but i get a crash when any sort of popup tries to show (eg from a select box or save password dialog) - the error is that for some reason the webview doesnt provide the new dialog with the application context (even though it as passed to the webview component when it was created).
Is there some method to use to supply the application context to dialogs launched from the webview?
View 3 Replies
View Related
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
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
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
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
Aug 23, 2010
I am using an ActivityGroup and when I finish a top-level Activity (e.g. with destroyActivity method) and display one from history, the getCurrentActivity method returns the last Activity - the finished one. I need to access currently displayed activity, which is actually shown.
View 1 Replies
View Related
Jul 1, 2010
I have one problem using ActivityGroup. I have two activities inside an ActivityGroup and both of them use a menu (overriding the onCreateOptionMenu and onOptionsItemSelected).
Well, the problem is that the second activity in the group doesn't show the menu when I press the menu Key. The first activity works fine showing the menu.
I have this code in child activity:
CODE:...........................
View 3 Replies
View Related
Jul 16, 2010
I'm trying to give my first steps on working with ActivityGroups. To be more specific, I have a parent activity with a layout containing several buttons, and another layout below them in order to add other activities' layouts by means of the "addView()" method. Well, everything works fine in functionality terms; but I'm experiencing a weird behavior inside the layout where other activities are kind of loaded into. A black line along the top border of the layout plus a slight shadow do appear when I run the application on the emulator. I have tried to play changing the paddings, margins, etc. with no success.
Has any of you experienced such weird behavior?
View 2 Replies
View Related
Nov 23, 2009
I'm extending ActivityGroup class and implemented a custom tabHost and widgets for my app. Can someone shed a light on how are the Activities fife-time inside an ActivityGroup?.
Im getting a weird behavior when using the following code to send a new intent to the current sub-activity, then change tab, and getting back to original tab. (TAB1 -> TAB2 -> TAB1)
CODE:.......
What i see from debug..
onSaveInstanceState() is called on TAB1, then TAB2 is current subActivity, but when going back to TAB1 onCreate() is called.
onCreate() is not called with the same test without using the onNewIntent() described above.
View 8 Replies
View Related
May 31, 2009
I have 6 options to put in options Menu, but 3 of them are not so important and i want to hide them in submenu. All of my Activities are started from one ActivityGroup which creates Menu on MENU button press. Problem is that when I open SubMenu or Dialog (which is created and displayed by ActivityGroup) my current foreground activity makes onPause, onStop and onDestroy, and when I close this submenu (using "back" key) or dialog (by "ok" button for ex.) I don't have any response (onCreate, onResume) from any of my activities registered in LocalActivityManager.
View 3 Replies
View Related
Feb 22, 2010
I have a Activitygroup and some activities are part of it.
lets say Activitygroup is DetailsGroup which has a activity by name DetailsActivity.
On certail events DetailsActivity launches another activity ExtraActivity by calling startActivityForResult(intent, 2);
The extraActivity is launched it does its work and before calling finish() of it I am calling setResult(RESULT_OK,mintent);
By doing this I was expecting that the DetailsActivity's onActivityResult() would be called, but instead DetailsGroup activities' onActivityResult() is getting called.
Any idea what changes are required to get DetailsActivity's onActivityResult() called in above scenario?
View 2 Replies
View Related
Jul 21, 2010
I'll be brief. I have an application with the following Activities Schema:
A (ActivityGroup) | |__
B (Activity Group) | | | |__
C (Activity) | |__ ... (Other Activities) | |__
D (ListActivity) | | | |__
ListView with a custom adapter with two buttons per row
All the Activities shown on the "diagram" are displayed and visible in real time while the application is being executed.
I'm pushing new list elements from C to the ListView in D. And by clicking each row's buttons I'm trying to edit the data of the row by means of a dialog. The problem is when, in the dialog activity, I perform the setResult() and finish(); the D's onActivityResult() is never called, and I do not know why.
View 3 Replies
View Related
Aug 20, 2009
I have a tab with an activitygroup as the intent of tab1.
My code of the activity(group):
CODE:..................
View 2 Replies
View Related
Sep 29, 2010
I am using an ActivityGroup to spawn multiple activities and switch views from within the same tab in a TabActivity.
When I press the back key this method is called inside my ActivityGroup
CODE:..............
This method allows me to keep a stack of my activities and go back to the previous one when the back key is pressed.
This is working well on all my nested activities, except on a ListActivity where a press on the back key will simply exit the application.
View 1 Replies
View Related
May 18, 2009
I have an ActivityGroup containing three embedded Activities (A, B and C). Sometimes I need to "destroy" A and B to start another one, D, and when D is finished, A and B are re-created. Is it possible? If so, how can I do it?
View 5 Replies
View Related
Oct 11, 2009
I have a tab bar and within one tab want to implement an activity flow (without leaving the tab screen). I tried to get this up with an ActivityGroup and it partly works, but certain commands like the onCreateOptionsMenu must be dispatched to the ActivityGroup child activity manually.
The main issue is that showDialog() in my child activity of the ActivityGroup fails with the following exception:
CODE:.............
How I can get the child activities fully working? I expect this to happen with more of the built-in activity methods and there is not much documentation for the ActivityGroup.
View 7 Replies
View Related
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
Apr 12, 2010
I have a dialog with edittext for input. when i click yes button on dialog, it will validate the input and then close dialog. However, if the input is wrong, i want to remain in the same dialog. every time no matter what input it is, the dialog always automatically close when i click button. How can i disable this. By the way, i use PositiveButton and NegativeButton for the button on dialog
View 2 Replies
View Related
Jan 25, 2010
I am having a problem about repeating Login dialog (an AlertDialog) and progress dialog, coordinating with http thread. I suppose repetitive Login dialog (if fail, continue) handling should be common and straightforward. I guess my approach must be wrong somewhere. I already spent 2 days on this and am desperate. So please help. User starts the app, the main activity starts.Show a login dialog (generated by the main thread, i.e. from on Create. The main thread then starts a wait_thread, which will wait for http to return data and check the data and decide what to do.After user input username/password and press login, a progress dialog starts.The progress dialog starts an http_thread to talk to the server and get replies. Once done, it will notify the waiting thread.If the user type in the right username password first time, the code works fine.But it always fail for 2nd time Login, i.e. When first login fail(wrong username/ password),the wait_thread will generate 2nd Login dialog to let user repeat the login process. But after user hit the login on this 2nd Login dialog, the system always crashes.
View 3 Replies
View Related
Dec 29, 2009
I want to make a custom Dialog,because i donot like it"s style,i want get a rounded rectangle rather than rectangle . i know to implement it by theme in Manifest.xml . for example :the code
at activity write:
CODE:............
My question is how to implement this Similar result by extends dialog or alertDialog.
View 1 Replies
View Related
Aug 13, 2010
I'm trying to get my list view to open up an alert dialog to display information when a person clicks on a selection. I have been trying several different things on the Google Developers website that have to do with this but have yet to come up with a result. Here is my code. package table.periodic;
import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; import android.content.Context; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.ListView; import android.widget.AdapterView.OnItemClickListener;...........
View 1 Replies
View Related
Apr 14, 2010
how to create an Alert dialog in a dialog? is it possible to create? My requirement is to show mulitple dialogs simultaneously. I tried creating with the following code snippet onClick of a Button in the first Dialog and got an "BadToken" exception from WindowManager: "Unable to add window -- token null is not for an application"
AlertDialog.Builder builder = new AlertDialog.Builder(getContext()); builder.setTitle("Test Title"); builder.setOnCancelListener(new Dialog.OnCancelListener() { public void onCancel(DialogInterface dialog) { dismiss(); } });
View 4 Replies
View Related
Sep 2, 2010
I have a really weird problem, which I am unable to debug so far. thing is. my app needs to download something to work. So in the beginning of the onCreate() method, I check if that something is already downloaded. If not, I pop a dialog up asking the user to download it.My dialog is shown and I am clicking, so aManager.install() is called. I am passing the context because that aManager.install() pops up a ProgressDialog to show downloading progress and spawns a new thread in which everything is downloaded. So obviously before creating my dialog I make a Handler to receive the response from that aManager.install(). And the response MAY vary, because for example the internet connection isn't available (Exception raised and catched and listener called with different code).Now, when that happens (Exception) I would like to call another dialog saying "something went wrong, would you like to retry?" so another call to showDialog(DIALOG_REINSTALL) (this time with another code).thing is the showDialog() gets called (I can verify this by logging) but the dialogs doesn't show up. Instead my application JUST HANGS Does someone have a clue why it's doing this? No exception raised, absolutely nothing from logcat, I can't tell WHERE it's hanging...just see that the method is called and the dialog should be displayed.
View 2 Replies
View Related
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
Sep 1, 2009
I'm playing around with an idea in the back of my head, was wondering if there were any Android devices that had touchscreen and wifi - no other requirements necessary. The GiiNii Movit Mini is as close to what I'm looking for as I can find. Are there hardware vendors that make custom Android products such as this? Inexpensive, ARM or MIPS, run Android, touchscreen, wifi, that's it.
View 9 Replies
View Related
Jun 14, 2010
Recently a client asked me to make their site "work on smart phones", which normally wouldn't be too much of an issue... However it's a video site, and I have absolutely no idea where to even begin. Right off the bat I'm not even going to consider allowing the site to even function in anything other than Android (Maybe even 2.0+) and iPhone, maybe Blackberry and WinMo. But beyond that... What do I do? I'm looking at using the tag, however I'm unsure what, if any, codecs which phone uses. Is HTML5 even adopted in their browsers yet?
Could someone please point me in the right direction? Am I going about this the right way, using the tag? Or is there some magical html element both iPhone and Android (And BB and WMo) that lets them run video in their native video players (Like on youtube).
View 1 Replies
View Related
Mar 1, 2010
I'm trying to make a somewhat advanced settings Activity (one that has a RadioGroup in one of the cells). The layout xml file contains the following:
CODE:.......
View 4 Replies
View Related