Android :: Home Button On Samsung Galaxy Tablet Is Causing My Activity To Re-launch

Nov 22, 2010

On my droid phone, I get what I consider a proper pause/stop/resume/restart sequence when the home button is pressed and I then select my application. However, I'm testing on a new Samsung Galaxy tablet and when I select my application after having pressed the home button, a new activity is being launched. I do not understand why the behavior is different on the Galaxy. Any ideas? I have removed orientation config changes in the manifest, so it's not that.

Android :: Home button on Samsung Galaxy tablet is causing my Activity to re-launch


Android :: Launch The Same Activity From Widget With Different Extras - Prevent Same Instance Show Up After Returned From HOME Button?

Nov 5, 2010

I have a widget that contains 4 buttons to show 4 stock prices, each of them will launch into the same activity Quote.class to show stock details. In onUpdate(), it will set up the pendingIntent with extras with stock symbol. After I hit button A, it goes to Quote activity that shows stock A. Then I hit the BACK button to the homescreen, Quote activity calls onDestroy() and when I hit button B, stock B will show properly. However, when i hit HOME button after it shows stock A, the Quote activity only calls onStop without calling onDestroy(), then as i hit button B, it will call onStart() and it shows the same instance that shows stock A.

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

Originally I thought adding a flag in the Intent should solve this problem. But I have tried
i.setFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK or FLAG_ACTIVITY_NEW_TASK or FLAG_ACTIVITY_NO_HISTORY), none of them makes any difference.

So is there any ways to make it work? How can i remove the history stack from HOME button? How can I call onCreate in Quote activity and get new extras when i hit button B?

View 4 Replies View Related

Samsung Galaxy S :: Possible To Get Home Button Replacement App?

Oct 17, 2010

Is there an app which can take me home after opening an application...my home button on my galaxy s has stopped working, i am waiting for it to be fixed but is there a temporary solution for me.

I am basically looking for something to replace my physical home key.

View 2 Replies View Related

Android :: Launch MultiTask Manager By Holding Home Button?

Jun 26, 2010

Is it possible to launch MultiTask Manager by holding home button..?

View 2 Replies View Related

Android : Droid Problem Quick Launch / Home Button / Bookmarks

Feb 17, 2010

this is my first post as a Droid user, coming from a BB Curve. Have had about a month with my Motorola Droid and am running into several problems that are a pain. 1. The phone seems to load the corp calendar, gmail, settings, messaging, alarm clock everytime I slide the phone to ON. I have gone into the Quick launch and turned off everything but it is useless. So how do I turn off the quick launches so I don't eat up so many resources. 2. The HOME button obviously has a mind of its own and usually take 3 or 4 touches before it activates and sends me back home. This is especially true if I am on-line or in my gmail. Has anyone else had this problem? Is there a fix or is this related to the resource issue? 3. Whenever I open one web site from my BM's it shifts the position of all of the other of my BM's. What is the use of a BM if the OS is going to bounce them around. Idiot design as for as I am concerned. I down loaded the app 'BookmarksBR' and it organizes my bookmarks in BookmarksBR but not in the browser. 4. Other than being slow at times I 'think' I like it better than the BB but jury is still out. Is there any word on OS updates.

View 1 Replies View Related

Android :: How To Control Activity Flow - Back Button Versus Home Button

Sep 2, 2010

I have 3 activities in my app: Activity1 -> Activity2 -> Activity3. Inside Activity3, if the user presses Back, I would like to return to Activity2. In Activity3's onPause event, I added a finish() statement. That's probably not even necessary, but I wanted to make sure this Activity gets cleaned up. This works fine.
However, while in Activity3, if the user presses Home or starts a new app (through notification bar or some other means), I want both Activity3 and Activity2 to finish. If the user returns to this app, he should resume with Activity1.

I have figured out how to do one or the other, but I can't figure out how to handle both cases, if it's even possible. Can I trap the "Back" button in Activity3 and send a message back to Activity2 telling it not to finish()? It seems like the Activities follow the same lifecycle flow (Pause, Stop) regardless of what you do to send them to the background. Just to answer the question of why I want this behavior, imagine that Activity1 is a login screen, Activity2 is a selection screen, and Activity3 is a content screen. If I press Back from the content page, I want to be able to make a new selection. If I exit via any other means (Home, notification bar), I want the user to be "logged out".

View 2 Replies View Related

Android :: Override Code That Launch Home Screen Activity?

Aug 3, 2010

Launch of My Activity at startup with out using Action_boot_complete. Instead of displaying home screen for the first time I want to display my activity for device setup when device_provisioned == 0. How can I override the code that launches the home screen activity.

View 1 Replies View Related

Android :: Trying To Launch Activity / When Home Screen Widget Is Pressed

Dec 20, 2009

I'm trying to do something which really ought to be quite easy, but it's driving me crazy. I'm trying to launch an activity when a home screen widget is pressed, such as a configuration activity for the widget. I think I've followed word for word the tutorial on the Android Developers website, and even a few unofficial tutorials as well, but I must be missing something important as it doesn't work.

View 6 Replies View Related

Android :: Launch Activity From Droid Home Screen Widget

Apr 24, 2010

I am desperately trying to get my head wrapped around how to implement home screen widgets. Right now, I (finally) was able to get a button on my widget respond to a button press setting up an intent filter in the manifest.

However, I cannot for the life of me figure out how to launch an activity when the button is pressed. Basically, here's the code i have...

What I really want to do, though, is start a new activity, not display a toast message. I know it has something to do with pending intents, but I can't figure out how to get that to work.

View 1 Replies View Related

Android :: How To Launch An Activity From A Widget And Return To Home Screen

Sep 14, 2010

I have a widget that when clicked opens an activity from same app as the widget. When the activity is closed/dismissed via a button, the user will see the full app window IF the app was previously open/in memory. Is there a way for the activity to finish and return to the home screen and not to an existing instance of the app?

Intent i = new Intent(this,RateIt.class);
i.putExtra("com.sporadicsoftware.NetQ.movie_id",aMovie.title_id);
i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET|Intent.FLAG_ACTIVITY_NO_HISTORY|Intent.FLAG_ACTIVITY_CLEAR_TOP);
PendingIntent pendingIntent = PendingIntent.getActivity(context,
0, i, PendingIntent.FLAG_UPDATE_CURRENT);
updateViews.setOnClickPendingIntent(R.id.movie_one_title, pendingIntent);

View 1 Replies View Related

Android :: Launch Activity From On-screen Camera / Capture Button?

Feb 8, 2010

Is it possible to start an activity from the built-in Camera app after the user touches the on-screen Capture button?

View 4 Replies View Related

Jelly Bean :: Galaxy S4 Home Button Not Taking Phone To Home?

Jan 11, 2014

it keeps acting as if I long pressed it when I only click it once.

View 2 Replies View Related

Android :: Home Button Not Resuming Last Activity

Sep 23, 2010

I am trying to solve an issue sort of similar to what was done here (link text)Except in my case where Activity A, started Activity B, started Activity C, when the user resumes the app after pressing the home button - I want C, the last Activity, to be displayed. Instead what is happening is I am back to A.Also on a side note I have discovered that even when I exit the application, if I hold down the Home button, my app is still listed as an active app even though in the LogCat I can see that it exited OK.Also, in case it matters, I did recently add android:launchMode ="singleTask" in order to make some notification logic work correctly. I was seeing the Home button behavior before that though.

Activity B actually has several Activities that it chooses from (it has a list of Intents) to display based on input it receives but launches them all the same way as Activty A launched B. Once the first Activity is displayed the user swipe the screen to navigate to the left or right screen. When the user swipes left or right, the current activity puts info in its return Intent that Activity B uses to display the next Activity. Also since logic outside of the user's control could prompt a change in the screen displayed, each Activty calls finish on itself in onStop to avoid back-button issues.

View 2 Replies View Related

Android :: Home Button - Does Not Show The Last Activity

Jan 23, 2010

I'm experiencing kind of strange behavior of my application after hard Home button is pressed. When you press Home, everything is OK - my app goes to the background, showing Home screen. But if you try to choose my app in the main menu or in the list of last tasks it behaves like it was not started before and does not show the last activity you were on - it just starts from scratch, namely, shows the splash screen and starts next corresponding activities. Moreover, old activities of this app remain on the activities stack, and previous instance of the app is not terminated - so if you press Back for a few times you'll just run into those activities which were undoubtedly started during the previous session of work with my app. Splash screen activity is filtered by "android.intent.action.MAIN" filter and "android.intent.category.LAUNCHER" category. The strange thing is that all of that happens despite the fact that I do not intercept any Back key hits, or override any onPause or onResume methods. What's happening contradicts with my understanding of Android app lifecycle - I was sure that when you hit Home an app just goes to the background, and when you choose it in the menu later - it just unwinds and does not start anew. (Of course, unless stuff like that is stated in the app manifest or corresponding methods are overridden or something else). I also checked it for some other lifecycle events - such as changing orientation or flipping hard keyboard out - and none of those led to such strange results. It appears that the problem occurs when you try to start the app from main menu or menu of last applications.

View 1 Replies View Related

Android :: 1.5 And 1.6 After Calling Finish Activity And Home Button

Jan 12, 2010

I open splash screen at the end i call finish() then i moved to browse page. At the browse page when i click on home button it hide the application.(b/c of Android's Multi tasking feature) When i go to Android's desktop launch application again it starts from splash screen. Android Platform 1.6

I open splash screen at the end i call finish() then i moved to browse page. At the browse page when i click on home button it hide the application.(b/c of Android's Multi tasking feature) When i go to Android's desktop launch application again it always starts from browse screen instead of splash screen why is that..............

View 1 Replies View Related

Samsung I7500 :: Galaxy Won't Start Up / Causing Of This?

Apr 15, 2010

2 days ago, I received my new I7500 in the mail. I've been playing around with it and installing apps from the market. Just 10 minutes ago, while trying to unlock the screen of my phone, it crashed and started to reboot, however its stuck on the flashing "Samsung" icon boot screen (like literally stuck there), and when I pull out the battery and place it back in, the phone still boots and gets stuck on the same screen. What is causing this to occur?!?

Samsung I7500
Firmware: 1.5
Baseband Version: I7500ZHJA1
Kernel Version: 2.6.27

View 10 Replies View Related

Android :: Exit Current Activity To Homescreen (without Using Home Button)?

May 3, 2010

What I am trying to do is emulating the "Home" button which takes one back to Android's homescreen. So here is what causes me problems: I have 3 launcher activities. The first one (which is connected to the homescreen icon) is just a (password protected) configuration activity. It will not be used by the user (just admin) One of the other 2 (both accessed via an app widget) is a questionnaire app. I'm allowing to jump back between questions via the Back button or a GUI back button as well. When the questionnaire is finished I sum up the answers given and provide a "Finish" button which should take the user back to the home screen.

For the questionnaire app I use a single activity (called ItemActivity) which calls itself (is that recursion as well when using intents?) to jump from one question to another:

Questionnaire.serializeToXML();
Intent i = new Intent().setClass(c, ItemActivity.class);
if(Questionnaire.instance.getCurrentItemNo() == Questionnaire.instance.getAmountOfItems()) {
Questionnaire.instance.setCompleted(true);
} else Questionnaire.instance.nextItem();
startActivity(i);

The final screen shows something like "Thank you for participating" as well as the formerly described button which should take one back to the homescreen. But I don't really get how to exit the Activity properly. I've e.g. used this.finish(); but this strangely brings up the "Thank you" screen again. So how can I just exit by jumping back to the homescreen?

View 2 Replies View Related

Android :: State Of Activity Saving When Home Button Pressed

Oct 24, 2009

I am having an issue related to home key . when i press home key all current activity gets hidden. but when i press the executable it again starts from the fisrt screen . I have overidden all methods nsaveInstaceState opPause onStop onResume

but there are still issues what is the right way to handle those conditions. When i am pressing home button i am storing the widgets state in database and when i again click the exectable i am checking the database state and starting the new Intent as saved when user presses the home button .Is it the right way to do that as i am facing the problem when user does the same and again presses the back button , there is already on intent available in stack of activity .

View 2 Replies View Related

Android :: How To Close An Activity When User Clicks On Home Button

Feb 19, 2010

I understand that trying to capture home button clicks is a hack, but I need to atleast close my current activity when the user clicks on home button. Is there anyway I can tell the system to close this activity is the user clicks on home button? If so how can I do that? I need to do it as I am listening for location updates and I want to stop the updates and also need to trash any location that was available to me previously. I need to do this just in case any user while in that activity clicks on home button and changes the location settings.

View 7 Replies View Related

Android :: Activity State On Pressing Back And Home Button On Screen

May 6, 2009

Whenever I press the home button when Im in the root task of my application and when I click on the icon of my app again the state of my task (activity) is retained, but when i press the back button on the emulator and when I open my application its state is not retained. I want the state to be retained in both the scenarios.

In the mnifest I have given the below entries,

android:alwaysRetainTaskState="true" for the root activity

android:launchMode="singleTask" for the application

View 2 Replies View Related

General :: Lock Button Isn't Working / Home Button Gives Power Screen (Samsung Vitality)

Jul 26, 2012

My phone was working just fine and randomly the lock button stopped working and the home button brings up the power screen!

View 1 Replies View Related

Samsung Captivate :: Home Screen When Hitting The Home Button

Jul 21, 2010

Is there a way to set the which of the home screens the phone goes to when you hit the home button?

View 4 Replies View Related

Samsung Fascinate :: Way To Change Messaging Button To Launch Handcent SMS / Instead Of Default App?

Sep 14, 2010

is there any way to change the "Messaging" button to launch Handcent SMS instead of the Defualt app? I love handcent and wanna use this button to launch that instead of the app I won't be using.

View 1 Replies View Related

Android :: ADT Causing CDT To Build All C Projects On Android Application Launch?

Aug 27, 2010

I doubt there are too many people who run CDT in eclipse for native apps also with ADT installed for Android, but in the off-chance that someone here knows anything about this, my problem is that any time I run any android app, my C builder kicks in for projects totally unrelated. I have no idea why and have been digging through settings on everything, unable to find out why. All I can think is that the ADT pre-launch process triggers it via a refresh or some kind of catch- all type call in eclipse API land that I'm unaware of. Does anyone know anything about this? It's very annoying to have a C builder run for a different project than the one you're working on every time you launch the app.

View 4 Replies View Related

Samsung Epic 4G :: Second Icon To Left Not Launch Requested Activity

Sep 15, 2010

I am new to the android phone. The button settings on my home screen on my Epic have 5 icons. No matter which icon is 2nd to the left, it never opens. It gives me "could not launch the requested activity". Currently it is the "envelope" icon.

View 2 Replies View Related

General :: Galaxy S3 Home Button Lag (S Voice Is Disabled)?

Sep 6, 2013

My problem with my s3 is the home button, when i'm on a app ( doesn't matter wich one) and i press the home button, it takes like 4-5 seconds before i see the home screen, and then it has to redraw itself. I already searched here but all i coild find was the animation set to 0, 5 and disable-ing tje s voice command.(what i already did)

I tried removing every home screen and put 1 app in it. Didn't work.I didnt try factory reset , because i dont want to lose all my data.. ( even tough i could backup it somewhere)

View 2 Replies View Related

Samsung Galaxy S :: App That's Hiding - Can't Launch

Sep 25, 2010

When I go into Settings/Apps/Manage Apps/. I see an app that I installed last week. The problem is that I can't launch it because it doesn't show up on my home screen or under apps. How can I find this app so I can launch it?

View 7 Replies View Related

General :: Galaxy Note 2 Home Button Won't Work For Long Press?

Jan 14, 2013

i just got my note 2 and week ago and until yesterday when i hold down the home button to get to my tasks manager it wont work. Ill hold it down but it will vibrate but nothing comes up -_- im not sure if i turned something off or if its broken. anything i should try before i go to the verizon store or something?

View 5 Replies View Related

General :: Galaxy K Home Button Broken - Phone Stuck In Recovery

Feb 22, 2014

My galaxy k's home button has been broken. And i wannted to use recovery.So I attached it with my computer, used cmd(adb reboot recovery). After that i was able to go in recovery. But after that I couldnt reboot it. I tried to use cmd. But it cant find my device.

View 2 Replies View Related

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







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