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?

Android :: ActivityGroup and LocalActivityManager


Android :: ActivityGroup - Get Reference Of The LocalActivityManager

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

Android :: Possible To Embed External Activities Using LocalActivityManager?

Jan 25, 2009

Is it possible to embed some external activities, lets say, com.android.calculator 2.Calculator in my activity?

i always get exception saying that my activity's uid != Calculator's uid. should i use some permission? or from security reasons its not possible at all?

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

Android :: GetCurrentActivity() And ActivityGroup

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

Android :: ActivityGroup Menu ?

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

Android :: Shadow On Top Of A Layout On ActivityGroup / Fix It?

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

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 :: ActivityGroup And Subactivities Lifetime

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

Android :: SubMenu - Dialogs And ActivityGroup

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

Android :: OnActivityResult Is Not Working When Used In ActivityGroup

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

Android :: OnActivityResult Never Called On ActivityGroup

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

Android :: ActivityGroup Not Handling Back Key For ListActivity

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

Android :: Removing/adding Activities From/to An ActivityGroup

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

Android :: Nesting An ActivityGroup As AtTab Content

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

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 :: 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 :: Android How To Send Data From Server To Android With No Request From Android?

Oct 19, 2010

today i meet the problem.i need technic can control the android machine from server.then i want send data from server to android with no request from android.

View 2 Replies View Related

Android :: Android 1.6 - Android - View - WindowManager$BadTokenException - Unable To Add Window - Token Null Is Not For An Application

Apr 14, 2010

I'm trying to open a dialog window, but every time I try to open it it throws this exception:

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

I'm creating it by calling showDialog with the display's id. The onCreateDialog handler logs fine and I can step through it without an issue, but I've attached it since it seems like I'm missing something:

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

Is there something missing from this? Some questions have talked about having this problem when creating a dialog from onCreate, which happen because the activity isn't created yet, but this is coming from a call from a menu object, and the appContext variable seems like it is correctly populated in the debugger.

View 3 Replies View Related

Android :: Android WebView Not Loading A JavaScript File But Android Browser Loads It Fine

Jun 3, 2010

I'm writing an application which connects to a back office site. The backoffice site contains a whole slew of JavaScript functions, at least 100 times the average site. Unfortunately it does not load them, and causes much of the functionality to not work properly. So I am running a test. I put a page out on my server which loads the FireBugLite javascript text. Its a lot of javascript and perfect to test and see if the Android WebView will load it. The WebView loads nothing, but the browser loads the Firebug Icon. What on earth would make the difference, why can it run in the browser and not in my WebView? Any suggestions.
More background information, in order to get the stinking backoffice application available on a Droid (or any other platform except windows) I needed to trick the bakcoffice application to believe what's accessing the website is Internet Explorer. I do this by modifying the WebView User Agent.Also for this application I've slimmed my landing page, so I could give you the source to offer me aid. package ksc.myKMB;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.Window;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebSettings;
import android.webkit.WebViewClient;
import android.widget.Toast;
public class myKMB extends Activity {
I already have JavaScript on the web browser on, the problem is the web view is acting to different from the web browser.

View 1 Replies View Related

Android :: Resolve The Error - Com.android Internal R Cannot Be Resolved - Using Android File MultiAutoCompleteTextView.java

Aug 15, 2010

I want to implement my own Tokenizer base on the file
"MultiAutoCompleteTextView.java",

but I encounter an error "com.android.internal.R cannot be resolved" when I try to

import "MultiAutoCompleteTextView.java" to my project.

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

I haven't research any solutions to resolve this problem.How to correct "com.android.internal.R.attr.autoCompleteTextViewStyle" my own attr?

View 1 Replies View Related

Android :: Does Android Eclair Code Base Support Plugins In Android Browser?

Jan 11, 2010

1- Does Android Browser (Éclair code base) support the "plug-in" or not?

2- Why "Google Gears" support is removed from the clair code base?

I searched the forum and came to know that earlier version of the Android does not support it at all? Here is the link for that, but this query asked in Dec'2008.

View 2 Replies View Related

Android :: Android How To Edit Specific Record From Database In Android Programming

Jan 5, 2010

At first,I have a database created by using Ruby on rails.I just already implement insert function(HTTPPost) in my Android Application and it's work.But I don't know how to retrieve specific record from my databases and insert it back to specific record in Android (Like edit function in RoR)This is my insert code :
private void insertComment() {DefaultHttpClient client = new DefaultHttpClient();HttpPost post = new HttpPost("http://10.10.3.87:3000/comments");
// Configure the form parameters
List<NameValuePair> nvps = new ArrayList<NameValuePair>();
nvps.add(new BasicNameValuePair("comment[content]", t_comment.getText().toString();
nvps.add(new BasicNameValuePair("comment[id_account]", "1"));
nvps.add(new BasicNameValuePair("comment[id_place]", Integer.toString(position)I really try many ways out but it doesn't work and it takes very long time to fight with this piece of code. Actually, I really don't know how to specify RowID to HTTPPost.

View 2 Replies View Related

Android :: Android.. How To Upload Data From Android Phone To Remote Database?

Sep 17, 2010

I am doing some android development, and now I need to send some android application generated data onto a remote server (a database)?How can I do that? can I use direct JDBC connection and sql?

View 1 Replies View Related

Android :: Sending Info From Android Phone To An Computer IP With Android Emulator

Oct 9, 2010

So i am making a android app, and i want it to be so if i call lets say 911 it sends my GPS coordinents to a certain IP, i know everything but how i make it so if i call 911 it sends the info and how i can make it send the info to the IP via 3g,

View 3 Replies View Related

Android :: Android Market Hiding Apps With Bluetooth Permissions From Android 1.5 And 1.6

Jul 10, 2010

I released updates of my apps yesterday and they are being hidden from android 1.5 and 1.6 phones.

This is due to a Market bug which hides apps with bluetooth permissions from android 1.5 and 1.6.

Come on Google fix the market. We spend countless hours making are apps work on ALL android versions and now you do this...

This issue has been raised since June, but has only affected me since i made an update to the market yesterday.

View 1 Replies View Related

Android :: Mock And Performance Tests Available In Android For Testing Android Application

Dec 23, 2009

What exactly are mock tests... I need to know the mock and performance tests available in android for testing android apps..what is the best tool for testing android apps and how..

View 1 Replies View Related

Android :: Android - Add Menu Item To Android's Built-in Apps

Aug 17, 2009

I'd like to add a menu option to the Android camera app. Is this possible to do using the current SDK? I know I need to add an intent-filter tag in my activity. But I don't know what I should put in the mime type. I want to be able to process the live camera previews if the user selects the menu option. So what do I put into the type tag of the intent-filter? Also I suppose I won't be using ALTERNATIVE or SELECTED-ALTERNATIVE for the category as I want to deal with the whole intent?

View 3 Replies View Related







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