Android :: After Killing Task Droid Not Launching Correct Activity / What Is Happening?

Aug 19, 2009

Our application is defined to launch a SplashScreenActivity from Intent { action=android.intent.action.MAIN categories= {android.intent.category.LAUNCHER} . After the SplashScreenActivity does its work, it launches another intent to launch MainMenuActivity and finish() is called on SplashScreenActivity.

When we run our app for the first time on our phone, the SplashScreenActivity launches OK, and correctly launches the MainMenuActivity.

However, if we kill the app using TaskKiller, LOGCAT indicates that the application has been killed. I can't debug the app, because launching it from eclipse with the debugger makes it work OK, because it reinstalls the app. Perhaps there is a way to launch the app without reinstalling it?

Here is the Log of us killing our app...

When we launch the application again, the LOG messages for SplashScreenActivity are not logged and it looks from LOGCAT that Android is launching the MainMenuActivity instead. Here is the log...

Can someone Romaine, Diane help us understand what is happening? We saw this happening because some variables are initialized in SplashScreenActivity that aren't available with MainMenuActivity and we were getting NPEs.

Android :: After Killing Task droid not launching correct Activity / what is happening?


Android :: Launching Correct Activity On Resume

Jan 22, 2010

I'm currently working with a two-activity application. The first activity allows the user to choose options for their upload, and the second activity displays a ListView of their results once processed.I have code in place that performs the uploads/downloads in the background, regardless of whether the application is currently in focus or not (thanks to Matthias Kaeppler's Droid-Fu).I would like to have my application Resume into my second (results) activity when a user clicks on the icon from the top-level launcher, regardless of how long they have been away from the app. I thought that the 'alwaysRetainTaskState' flag in the Manifest would do it, but I've not had success with that. Can anyone tell me how I need to set up my Manifest to get this functionality?

View 19 Replies View Related

HTC Droid Eris :: Memory Management - Task Killing?

Feb 22, 2010

Ok after seeing the somewhat heated threads on here about whether or not to use a task killer to help mange memory and improve performance on the droid Eris I decided to run my own little unscientific test.

So just a bit of background, Ive been in enterprise wide IT for 10 years now. I will say that my O/S knowledge is not exactly current but that may not be a bad thing for this. I will also state that what I report is just my own experience and I have not repeated is several times to validate anything. YMMV!

About four weeks ago my Eris was running like poo. Slow, lag city and getting almost unusable. I had been using Advanced Task killer quite liberally during this time trying to keep the device usable. Short term it seemed to help restore some of the response issues but it didnt take long before I was trying reboots to get the phone working well. Here is a list of apps I had installed at the time.

Pandora
Weather Bug
Shop Savy
Google Sky
Daily Dilbert
Bloom County
WiFi Analyzer
Silent Mode Toggle
Taskiller
SpareParts
battery Widget
Robot Guitarist
keyring reward
tv.com
NPR News
Movies
Shazam
Zedge
ip-calc
aldiko
JogTracker
UnitConverter
Backgrounds
photoshop mobile
plink art
Weather channel
Radar now
Last.fm

Plus a few others that had been removed.

That quite a few apps but not overboard in my book, and most seem to be pretty stable.

Anyway I decided to wipe the device and start over again, but with the debate raging I decided that I was not going to run any sort of task killer or other memory manager. And that I was going to run for at least four weeks and report the results. I will say I trimmed some of the redundant apps (weather bug replaced all the other weather apps nicely)

I have to say that over all I dont feel like I need a memory manager or task killer. It would be hard to say that the phone is a zippy as it was right after I wiped it, but as of now its no where near as laggy as it was before I wiped it. I feel my battery life is just fine, but I am not one who thinks that battery is an issue anyway. If there is 10% left when my head hits the pillow at night then I am a happy camper.

So this does beg the question what does using a memory manager really do for your experience on the phone? I cant for sure state that using a task killer caused my lag issues before, but it was not helping at the time either. My apps and usage have not changed very much other then not using a task killer and as of now my phone is running pretty darn well.

For me I am pretty firmly in the do-not-need-a-task-killer-camp for now. And before you flame or argue with me I challenge you to try it both ways for a while (with a clean wipe). I am sure that others have had a different experiences and maybe using one works for them.

View 3 Replies View Related

Motorola Droid X :: Advanced Task Killer - Killing My Alarms Text VM

Aug 5, 2010

Iv'e had nothing but weird problems since day one of my DroidX. I just received a DX hoping it was Hardware issue's (even though I was convinced it was software related). Everyone kept telling me it was because I rooted my droid, but I disagree.

Come to find out it was Advanced Task Killer causing my problems. I had it set to "Auto Kill" and set the level to "Crazy" and set it to "When Screen Turns Off".

It was killing my alarms, Killing Txt, VM, missed call Notifications, and restarting my phone because it was killing an important process....

IDK if anyone has already posted something about this (I didnt see anything) so I figured i'd throw it out there. Im still currently using ATK but the Auto Kill is turned off. Sending New DX back to Verizon.

View 49 Replies View Related

HTC Droid Eris :: Advanced Task Manager Killing Home Screen

Apr 5, 2010

I set my screen to use HOME versus Sense UI. Well, I put the ATM widget on my screen for single click app ends...when I do this, though, it kills home.

Anyway I can exclude Home from this. It doesn't appear to be an option in my Apps list when i open Advanced Task Manager

I have YET to receive a single email from androidforums.com when I use "Instant Email Notification" for thread replies.

View 3 Replies View Related

Android :: Multitasking / Task Killing Apps

Feb 17, 2010

I am considering getting a Motorola Milestone, which should ship with Android 2.something.I have a Nokia, and I really like the multitasking of the Symbian environment. How is it going to be different with Android? Is it a true multitasking os like Symbian or is it not, like the iphone? How do I switch from one application to another? Is there a button which shows all running apps? I read comments that, on some phones, switching from the web browser to another app and then back to the browser causes the page to reload from scratch. Is this still true or was it a limitation of older versions? Is there a task killer? I read very contradicting opinions on this, but I must say I do not understand why I should leave open an app I don't need, and how much an app left open uses system resources (battery life and RAM): I would have thought that its impact on system performance might have been minimal, but still > 0, right? Then why not close it altogether? Or am I missing something here?

View 6 Replies View Related

Android :: Can My App Avoid Killing Process By Task Manager

Jul 30, 2010

My Alarm App. didn't operate because Adavanced task manager killed alarm app....

How can alarm avoid to kill process by task manager except including alarm into ignore list??

Or Can I hide alarm app. in killing list of task manager?

View 3 Replies View Related

HTC Desire :: Task Killer Not Killing Apps

Jul 29, 2010

I have tried 3 different task killers but each one do not seem to be killing the task even though it says it is. When i open the "killed" apps, they open to the last screen before they were killed. I am using the froyo ROM. On 2.1, when the apps were killed and then re-opened them, it always went back to the main screen.

View 19 Replies View Related

General :: Task Killer Not Killing Apps?

Dec 31, 2013

I downloaded advanced task killer and select all the extra apps that I want to stop running however I can clearly see from the status bar that the app is still running. Things like brightness slider and stuff. Greenify seemed to actually really work but since I'm not rooted I cannot use that anymore.

View 3 Replies View Related

General :: Make HTC Task Killer Avoid Killing App

Aug 11, 2012

I set my min free values on my phone so that it would be more aggressive in killing apps. But I don't want to kill juice defender when I hit kill all. Is there a way to make HTC task killer on sense 4 to avoid killing the app or setting juice defenders oom values lower?

HTC Sensation 4G

View 1 Replies View Related

Android :: Avoid Launching A Task Twice From Notification Manager?

Mar 18, 2010

From notification manager, how do I resume a task instead of creating a new instance of it?

I want to create a link in the status bar on the phone through notification manager. When I click on it, I want want a particular task to come to the foreground.

However, it seems my code always launch a new task even if there is an existing one running. For example, I click on the link the first time, a task shows up. When I click the second time, I see an animated task showing up again ... repeat that 5 times. And then when I hit "back" button, the 5 instances will disappear one by one (proving it's not just a single instance). code...

View 2 Replies View Related

HTC Hero :: Advanced Task Killer / Not Killing Apps Properly

Sep 7, 2010

ok so i click call apps and 2 secs later most of them are back,I just killed these and they are back within 2 secs and i have not even used them for atleast a day how can i kill them until i click to open and automatically close when i come out of any program

View 3 Replies View Related

HTC Desire :: Task Killer - When Killing Some Apps The Screen Seems To Restart

Jun 1, 2010

I've been using a Task killer without problem since I got the Desire but since yesterday when reading through one of the threads on here and downloading a load of stuff the Task Killer has started behaving badly, I've tried two different Task Killers and they're both doing the same.

When killing some apps the screen seems to restart, like it killed the Sense UI but I've put all the system processes on the ignore list.

View 5 Replies View Related

HTC EVO 4G : How To Refresh Web Site / Facebook Without Killing Internet With Task Killer?

Jul 1, 2010

I cannot figure out how to refresh a web site or facebook without killing the internet with a task killer. I can go back to the web or facebook hours after closing them and the same page comes up. Any tips for how to fix this?

View 19 Replies View Related

Android :: Disable Activity Slide-in Animation When Launching New Activity?

Feb 18, 2010

have an activity which launches another activity, via a button click. By default, on newer OS versions of android, the OS will animate the new activity sliding in from right to left.Is there a way to disable this animation? I just want the new activity to appear without any sort of animation.

View 5 Replies View Related

Android :: Launching Activity From Status Bar Creates New Activity / Even When One Already Exists

Nov 9, 2010

I have an activity that starts a long-running service which in turn adds an icon to the status bar. When the activity gets invisible, e.g. by pressing the Home button, and the pressing the icon in the status bar a new activity is created instead of showing the already created activity. If you now press the back button the new activity is destroyed and the activity created in the first place gets visible. How do I make the invisible activity brought to front when pressing the icon in the status bar instead of creating a new activity?

View 1 Replies View Related

Android :: Difference Between Task Killer And Android OS Killing An Application

Sep 29, 2010

Is there any difference between what happens when you use a Task Killer App to kill an app vs. what happens when the Android OS kills an app due to scarce resources? The Android SDK says that the Application.onTerminate() method isn't called when the OS kills an app due to scarce resources. So it sounds like the OS doesn't cleanly close apps and that it does exactly what the much-debated task killers do. If they do the same thing, then task killers don't do any more harm than the OS itself, right?

View 3 Replies View Related

Android :: Finish Not Killing Activity

Apr 12, 2009

I've got an application that has (among other things) three Activities, let's call them A, B, and C. A is the main navigation point for the entire application, and launches B and C directly using startActivity(). They work fine that way. However, when I call C from inside B, I get a strange problem. The code for launching Activity C is exactly the same in both places. The problem is the hardware back button. In the emulator, it takes two presses of the back button in order to close Activity C and come back to B. On a G1, it takes 3 or 4 presses. Upon seeing this, I implemented the usual suspects in C - onPause(), onStop(), and onDestroy(), and onResume() in B. When I press the back button from C and it doesn't work, I get onPause(), onStop(), onDestroy () - in that order, but nothing happens. When it works (on press 3 or 4 on the G1), I get onPause(), then onResume() in B, then onStop() and onDestroy().

I've tried catching the key press of the back button and calling finish (), but that doesn't make a difference. Has anyone seen this? To pre-empt some questions: All C does is display some data. There are no threads or any other special resources that C might have an active handle to that's preventing it from closing. But out of curiosity, if it did, how would I detect that? Any ideas for further diagnostics here?

View 12 Replies View Related

Android :: Task Panel Auto Kill Feature Not Auto-Killing?

Dec 7, 2009

I installed it on my Droid and when I open the list and long press on an app it gives me the option to Auto-Kill. I assume this means I won't have to kill this app any longer so I select this option but I find that I keep having to kill the same apps over and over again. What's the point of Auto-Kill or what am I doing wrong? There are lots of programs (most I didn't even install) that run all the time and I'm having battery issues so I don't have battery to waste on programs I'm not using and will probably never use.

View 22 Replies View Related

Android :: Simulate Killing Activity To Conserve Memory?

Mar 1, 2010

Android doc say:"When the system, rather than the user, shuts down an activity to conserve memory, ... "
But how to simulate this situation?I want to debug the onRestoreInstanceState method,but don't know how to.

View 2 Replies View Related

Android :: Handle Existing Instance Root Activity Launching Root Activity From Intent Filter

Apr 3, 2010

I'm having difficulties handling multiple instances of my root (main) activity for my application. My app in question has an intent filter in place to launch my application when opening an email attatchment from the "Email" app. My problem is if I launch my application first through the the android applications screen and then launch my application via opening the Email attachment it creates two instances of my root activity. steps: Launch root activity A, press home Open email attachment, intent filter triggers launches root activity A Is it possible when opening the Email attachment that when the OS tries to launch my application it detects there is already an instance of it running and use that or remove/clear that instance?

View 1 Replies View Related

Android :: Launching Another Activity From Application

May 22, 2010

I am trying to launch another application from my Activity. Something weird happens when I am running this code :
Intent myIntent = new Intent( Intent.ACTION_MAIN, null );
myIntent.addCategory( Intent.CATEGORY_LAUNCHER );
myIntent.setFlags( Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED );
ComponentName compName=new ComponentName(myArray[i][0], myArray[i] [1] );
// String[][] myArray myIntent.setComponent( compName ); startActivity( myIntent );

I have this error :
android.content.ActivityNotFoundException: Unable to find explicit activity class { com.android.settings/com.android.settings.Settings};
Have you declared this activity in your AndroidManifest.xml?
But when I replace this line
// myArray[i][0] = "com.android.settings" // myArray[i][1] = "com.android.settings.Settings" ComponentName compName=new ComponentName(myArray[i][0], myArray[i] [1] );
with ComponentName compName=new ComponentName("com.android.settings","com.android.settings.Settings");
And without any modification in my manifest, it works!

View 2 Replies View Related

Android :: Launching Activity Through Intents

Aug 9, 2010

I am implementing a simple app. I need to start an activity based on the state of the Activity. Lets take i am using a button to start the activity.
1. If the activity is not started, I need to start XYZ activity.
2. If the XYZ activity is on focus, then i need to close the activity on the button press.
3. If the XYZ activity is not in focus (like onPause) state then, I need to change the button state.Can you please help me in the flags that i need to use for starting the intent. Is it possible to get the state of activity before I start that activity?

View 2 Replies View Related

Android :: Launching An Activity Using Linkify

Jul 22, 2010

I'm not sure if this can be done, but is it possible to launch an activity from text that has been Linkified? I'm basically providing an illustrated glossary, and when the user clicks on a highlighted term, I want the activity that handles display of the image and associated text to fire up. I also need to pass in some parameters to the activity being launched.

View 3 Replies View Related

Android :: Activity Not Launching MapActivity

May 6, 2010

I have a TabActivity that loads in 3 activity classes.In those Activity classes I have a button and an OnClickListener that tries to open a MapActivity class.I have searched to find an example of an Activity class launching a MapActivity class but cannot find one. If I swap out my MapActivity class with a Activity class it works.

View 2 Replies View Related

Android :: Close Activity Hierarchy In Droid / Show New Not Present In Current Task?

Sep 26, 2010

How do I close a whole hierarchy of activities and show a new activity not present in the current task?

Context

Consider a FTP browser that resumes the previous session on launch. Each folder is displayed in its own activity. When I click on a folder, a new activity is started for the folder. If I press the back button, the app returns to the previous activity, which corresponds to the the parent folder.

I can logoff from the menu at any time. Logging off should bring me to the login activity (not present the current task when the app has resumed the session), and close all the other activities. How can I do this?

From what I've read, if the activity were in the current task I could use FLAG_ACTIVITY_CLEAR_TOP in the intent, but this is not my case.

View 1 Replies View Related

Android :: Correct Way To Start An Activity?

Feb 16, 2010

Code...

This would start a new activity, and then close the current Activity forever, right?

View 1 Replies View Related

Android :: Dialog Theme When Launching From Another Activity

Aug 24, 2009

I am facing a strange problem. I have 2 activities.The Second activity having the theme.Dialog (set in manifest). when I launched the second activity from first activity via startActivityforResult(). The Second activity is not Visible.

View 8 Replies View Related

Android :: Launching Browser In Preference Activity

Jan 11, 2010

I want to List Item in Preference activity. and I want to launch a Browser with a URL which can change dynamically, When I click on that Item. Can anyone let me know how can i Achieve?

View 4 Replies View Related

Android :: Launching An Activity From Widget Click

May 19, 2009

I am working my way through oh my first widget (so this is 1.5, obviously) and I'm stuck. I've poked around a problem involving the launch of an Activity when clicking on a widget. Scenario: User drags widget on home screen without prior launch of the Activity in question. I am following this post: http://android-developers.blogspot.com/2009/04/introducing-home-scree... Instead of launching the browser through ACTION_VIEW, I am trying to launch an Activity by class. I've toyed around with different Intent settings, but no luck.

View 7 Replies View Related







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