Android :: Android - External Activities Launched In New Or Current Process?

Jul 19, 2010

When you launch an external activity (from another application), is the new activity loaded in the existing applications process or does Android spawn a new process corresponding to the other application?

Android :: Android - External Activities launched in New or Current process?


Android :: How To Launch External Activity In Current Activity's Process?

Aug 27, 2010

My app is comprised of a set of reusable Activities that other apps can reuse. For various reasons, I would like my Activities to be launched in context of the invoking Activity's process, instead of always being launched in my Activity's process (default behavior on Android). How can I achieve this?

View 1 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 :: Neither User Nor Current Process

Mar 3, 2009

I'd like to revisit a topic that was previously posted, but never resolved. http://groups.google.com/group/android-developers/browse_thread/threa."Neither user 10002 nor current process has android.permission.SET_PREFERRED_APPLICATIONS" I'm running into the same problem as the original poster. Currently my development is blocked until this problem is resolved. What is causing this problem and how do I resolve it? If you need more information about the application I'm writing, I'm happy to provide it.

View 5 Replies View Related

Android :: How To Clear Current Activities In Stack?

Jul 26, 2010

Support App starts activity A, then A starts activity B and finishes itself. After that activity B starts activity C. Now the stack contains B and C, with C at the top. Then I click a button in activity C, and want it to clear B and C and start activity A, i.e. I want activity A to be the only activity in the stack. How can I make it?Edit: I made a test to use FLAG_ACTIVITY_CLEAR_TOP. But it didn't work in my case, because activity A is not running when button in activity C is clicked.

View 1 Replies View Related

Android :: Updating Views Of Sub Activities Of TabActivity From Background Process

Jul 25, 2010

I am using a TabActivity (Main) with 3 TabSpecs

I am using Intents for the content of the 3 Tabs

TabA, TabB, TabC for example.

All these tab activities use common data that is stored in SharedPreferences

In the Main TabActivity I have an options menu which has a refresh option.

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

This refresh uses an AsyncTask (updateCommonDataFromWeb) to reload the common data from the web.

I need a way to tell the 3 tab activities to refresh their views and rebuild their content from the newly downloaded data.

When the tab activities are first created they load the data from SharedPreferences like so:

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

I thought about making a common method on each of the tab activities
like.... reloadViewData()

I thought maybe I could use the activity manager from the Main TabActivity to get the activity of the current tab like so:

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

Unfortunately i cant get this approach to work, whilst activity is the correct instance its an Activity instead of a TabA,TabB or TabC

Maybe i've completely taken the wrong approach to the whole thing.

I have also read alot about not using Activities for tab content instead using views.
However I dont know what view to use to replace my <RelativeLayout /> as i cant use my R.layout.* as views.

View 2 Replies View Related

Android :: Starting One Activity Brings All Other Activities In Same Process To Front

Apr 20, 2010

I have an application consisting of two activities (call them Display and Preferences) and one service which listens for incoming phonecalls. When it detects one it launches the Display-activity with a delay of 3sec in order to let the PhoneApp launch first. The Display- activity is transparent so the user can still use the PhoneApp as normal (ie answering the call) even though my Display-activity is "on top". So far so good

Now to my problem. Lets say that the Preferences-activity is active when there is an incoming call. The PhoneApp is launched on top of the Preferences-activity as expected. However when the Display-activity is launched the Preferences-activity pops up as well, hiding the PhoneApp. My question is if it is possible to work around this in some way? Since I do not want my Preferences-activity to block the PhoneApp and hence making it impossible for the user to answer the incoming phone call.

View 3 Replies View Related

Android :: How To Detect If Current Stack Of Activities (task) Moves To Background?

Jul 23, 2010

The official documentation describes tasks as follows: All the activities in a task move together as a unit. The entire task (the entire activity stack) can be brought to the foreground or sent to the background. Suppose, for instance, that the current task has four activities in its stack three under the current activity. The user presses the HOME key, goes to the application launcher, and selects a new application (actually, a new task). The current task goes into the background and the root activity for the new task is displayed. Then, after a short period, the user goes back to the home screen and again selects the previous application (the previous task). That task, with all four activities in the stack, comes forward. Is there a way to programmatically detect when the task of the current Activity moves into and out of the background? I would like to know when the user has switched switched to another application, vs. when the user navigated to another Activity in the current app.

View 2 Replies View Related

Android :: Resulting Thread Id Scoped Per Process / Current Activity / Service?

Jul 21, 2010

When you do a Thread.currentThread().getId(), is the resulting thread id scoped per process or scoped to the current Activity/Service?

View 1 Replies View Related

SetContentView Of Activity Within Activities Current View?

Feb 17, 2012

So I have my main activity. It starts out adding a custom SurfaceView called DrawView as the content view with

DrawView drawview = new DrawView(parameters);
this.setContentView(drawview);

now my layout.main.xml is a layout with a video view which I am using to play my cutscenes. I am able to switch to this view by calling a method I made which switches the content view by

this.setContentView(R.layout.main);

which works fine when I am calling this method within the Activity. Only problem is I need to call this method from within DrawView! The method I made to switch to my cutscene is public and I do pass the Activity (named Draw) as a parameter of DrawView.

So when I do call this method from within DrawView my game freezes and will subsequently crash! however it works when method is called locally?

View 3 Replies View Related

HTC EVO 4G : Want Calendar Widget On Homescreen With Days Current Activities?

Jun 7, 2010

Is there a way to have a calendar widget on the home screen with the days current activities? I saw it on one of the scene layouts.. I think it was the work one but I want to use the sprint scene and add that widget. Is this possible? Also, is there a to do list or task list app built in or do I need to download one. If I do have to download one are there any recommendations.

View 1 Replies View Related

Android :: DDMS Not Listing Process - Via Command Line To Attach Process To Debug

May 21, 2010

Sometimes the DDMS in the Eclipse not listing the process.

To do the debug in this condition,

1) Is their any way force the DDMS to list the process?

2) Any command to attach the process from the command line?

View 2 Replies View Related

Android :: Remote Service Process Persists - I.e. Won't Disappear From Process Table

Feb 21, 2009

At a certain point in my program, when I'm completely done with my service, my activity executes unbindService() and stopService() -- yet the process persists. I can tell that it persists because I run "ps" in "adb -e shell":

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

"adb logcat", I can show you the sequence of events:

ACTIVITY: context.unbindService(serviceConnection);

SERVICE: onUnbind();

ACTIVITY: stopService(serviceIntent); & returns true!

SERVICE: onDestroy();

First, my activity calls unbindService(serviceConnection). According to the documentation, unbindService() will "Disconnect from an application service. You will no longer receive calls as the service is restarted, and the service is now allowed to stop at any time." So that is fine, and it is happening.

Appropriately, we see the onUnbind() call happen on the service side. According to the documentation, onUnbind() is called when "all clients have disconnected from a particular interface published by the service." So this confirms the correct service connection is being passed, and that the service is responding accordingly.

Next, my activity calls stopService(serviceIntent), and returns true. According to the documentation, stopService() does the following: "If there is a service matching the given Intent that is already running, then it is stopped and true is returned; else false is returned." Again, this is happening and returning true.

In response, the service's onDestroy() method is called. According to the documentation, onDestroy() is "Called by the system to notify a Service that it is no longer used and is being removed. The service should clean up any resources it holds (threads, registered receivers, etc) at this point. Upon return, there will be no more calls in to this Service object and it is effectively dead."

At this point I expect the process to disappear from the process table. Yet it remains indefinitely. But why?

Also, the process is so persistent that I can bind to it again, and I see that it is the same exact process responding because the PID (process ID) is the same!

View 4 Replies View Related

LG Ally :: Process' Won't Open - Pop-up - The Process Com.android Phone Has Stopped Unexpectedly

Nov 24, 2010

So, I decided to give Tridents ROM a try about 10-minutes ago.

I used ROM Manager, backed-up my old ROM, then downloaded Velocity 0.2.

Now, my phone will do nothing, it turns on and shows the red Droid eye, then when it's time to go to the home screen I get pop-up after pop-up saying that "The process com.android.phone has stopped unexpectedly. Please try again."

I have no way of getting on my phone at all, what can I do?

View 11 Replies View Related

Motorola Droid :: Update App - Message Process Android Media Process Stopped Unexpectedly

Nov 12, 2010

I Just installed a new theme (Live Wire) for my Lithium Mod Rom. Don't know if there is a connection, but when I need to update an app, I get the message something like "process android media process stopped unexpectedly" and it will not allow the update. Everything else works well. I have turned it off for awhile, and have done a battery pull.

View 1 Replies View Related

HTC Droid Eris :: Error Pops Up Sorry The Process Android.process.acore Has Stopped Unexpectdly

May 11, 2010

Every 5 minutes this error pops up "Sorry! the process android.process.acore has stopped unexpectdly. please try again." It doesnt actually close anything. It pops up even when im not in an app. So it's more annoying than anything.

View 3 Replies View Related

Android :: Switching Activities / Passing Data Between Activities

Jun 30, 2010

how to call BarCodeScanner, and return the value to a field.so now, i have a toast that says "successful scan" and then i want to pass the result to a new activity. when i comment out my intent, everything works (minus the passing of data/switching of screen, obviously) but when i run my project as is, it FC's no errors reported by eclipse in code or xml. any insights?

View 2 Replies View Related

Sony Ericsson Xperia X10 : Phonebook Not Working - Message Appears The Process Android.process.acore Has Stopped Unepectedly

Jul 30, 2010

I'm using Xperia x10 mini. Whenever I try to add a contact to my phonebook, before clicking save this message appears: "The process android.process.acore has stopped unepectedly. Please try again." And I have no other choice but to click "force close"... Another thing is, even though my contacts' names appears in the messages in my inbox, when I click on the phonebook icon, the phonebook is empty...

View 4 Replies View Related

Android :: Process Synchronization - How To Conclude Process Executed?

Feb 1, 2010

Are the processes in android asynchronous? If they are asynchronous then how can we conclude when the activity or process is finished or completed its execution.

View 2 Replies View Related

Android :: Blocking Current Activity / Screen Till Current Task Is Complete

May 13, 2010

The default behavior of an activity when BACK softkey is pressed is, GO BACK TO PREVIOUS ACTIVITY. If some the same activity is waiting for some response from server or some data updation is going on and then press BACK, I want to wait on the same screen till the current task is completely processed and then move out to the previous activity.

You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscribe@googlegroups.com For more options

View 12 Replies View Related

Android :: Craft A Daemon Process As To Make It "unlistable" To A Process Viewer?

Aug 25, 2010

Is there a way to craft a daemon process as to make it "unlistable" to a process viewer?

OR

is there a way to dynamically change a process name?

I'd like to design a security application without having to modify the firmware, if possible (yes I know about "security through obscurity"...).

View 1 Replies View Related

Android :: Get Notification When A Application Is About To Be Launched

Mar 16, 2009

I need to execute some operation when the specific application is launched, it is possible to get notification when an application is to be launched, or after it is launched?

View 11 Replies View Related

Android :: Emulator Not Getting Launched With 2.1 Platform

Jan 24, 2010

I have updated my android sdk to 2.1 version and was trying to build one application on that target.My application was bulid properly bt i am unable to launch tha emulator with the target 2.1. Its showing the message as:- "System image file too large for device's hardware configuration <74MB

View 2 Replies View Related

Android :: Detecting When Launched By An Alias

Sep 2, 2009

I'm trying to figure out how my Activity can detect if it was launched by an alias as opposed to by the main icon.

Is it possible to do this?

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

alias1 and alias2 appear as expected in the Launcher, but I don't see any way in multipleEntryPointTestActivity to tell which of these icons launched the application.

View 2 Replies View Related

Android :: ResolverActivity Or ChooserActivity Getting Launched

Aug 31, 2009

I am studying android's code, I can find how ResolverActivity or ChooserActivity is being launched? how do they get launched?

View 4 Replies View Related

Android :: Get Instance Of The Launched Activity

Jul 19, 2010

Is there any way to get the instance of a launched activity(or any view in that activity )of a application in another application.

View 1 Replies View Related

Samsung Fascinate :: Random Process Com.google.process.gapps Has Stopped Unexpectedly

Sep 11, 2010

So since I got the phone on Thursday, at random, I'll get these popup crash messages, that say "The process com.google.process.gapps has stopped unexpectedly" it has a "Force Close" button, which doesn't seem to change anything other than to acknowlege the message.It will happen at random, sometimes while I'm on the home screen, or sending a text message, but more recently, as I was trying to manage & link contacts. When I searched for this message it seemed to be related to people using Gmail, but I always get this message when I'm doing other things and not even touching my Gmail account.

View 1 Replies View Related

Samsung I7500 :: Process Com.google.process.gaps Has Stopped Unexpectedly - Please Try Again

Sep 19, 2009

I bought a new phone, but I can not run it.

I get the following information: "Sorry! The process com.google.process.gaps has stopped unexpectedly. Please try again".

View 1 Replies View Related

Samsung Moment :: Getting Process Com.google.process.gapps Stoped Unexpectedly

Apr 17, 2010

I've searched around the forums (here and SDX forums) and although it seems the few people that had this issue were able to solve it, my case seems a bit different.

It's different because of the people I've read solving the issue, it was a problem with something they changed / removed with gmail / gmail storage or talk / talk storage. And when they cleared the cache or re-installed the problem went away. Also, it seemed that the same people had a problem with downloading from the market...

Neither of the above apply to me, but yet I'm still getting this FC error all the time!

I was helping a friend with their CL14 Moment out of the box...and went from stock 1.5 CL14 to 2.1 DD03 w/Joey recovery to EclairDD10 and v5 root. I then did the streaming media fix, and then the private app (build.prop) fix (all previously done with my phone no problems). I did all of these update right in a row, and after my last re-boot the FC error (process com.google.process.gapps has stoped unexpectedly) started showing up and won't go away.

The only .apk / odex files I removed were the preloaded Sprint apps

Does anybody have any other ideas on how I can get this FC error to stop? I've tried clearing the cache / data for all the mail / talk apps, rebooted, cleared dalvik cache...

View 6 Replies View Related

Samsung Fascinate :: Process Com.google.process.gapps Stooped Working

Sep 17, 2010

Keep getting this message "The process com.google.process.gapps has stooped working unexpectedly. Any thoughts on what this is and how to resolve?

View 3 Replies View Related







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