Android :: Prevent Duplicate Browser / Activity Launching

Jun 29, 2010

I would like to know if there is a way of preventing a duplicate launch of browser/activity, while the user is already focused on it.mybe there is a way to detect before if the user's current screen is already focused on the same activity/browser i intent to launch?

Android :: prevent duplicate Browser / Activity launching


Android :: Way To Prevent Duplicate Activity?

Nov 30, 2009

I have an Activity which is launched from a Service. This Activity can spawn other children Activities. Now under certain conditions (particularly related to using screen lock), I can end up with the Service starting a second copy of the Activity again. For reasons of performance, the Service is being started and stopped at various times, and cannot be relied on to hold state. What is the best way to prevent this second launch? Can I (for example) detect that the Activity is already running in the stack and do finish()?

View 5 Replies View Related

Android :: Opening Browser Activity / Prevent It From Being In Activity History

Aug 12, 2010

I'm working on an app that launches the browser activity to perform a Twitter OAuth authorization. This process uses a callback url which will re-launch the activity that started the browser activity in the first place.My problem is that the browser pages remain in the history stack and when the user then clicks back from the preferences activity that launched the browser in the first place, they don't go back to the app's main activity, but instead are brought back to the browser. I've tried adding flags to the launching intent to prevent history and reset on clear, but it doesn't seem to work when running on my phone, only on the emulators.

View 1 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 :: Prevent Saving Browser Pages In Activity Stack History?

Oct 27, 2010

1. User click one button on Activity#1 to start Activity#2.

2. One button on Activity#2 start system default browser(Intent.ACTION_VIEW) to get Twitter authorized.

3. After user allow, Twitter redirect user to Activity#2(Custom intent- filter+data) and it save the tokens.

Now, if I press back key, the app back to browser, how to prevent this and return to Activity#1? Try several Intent.Flag before start browser with no luck.

View 4 Replies View Related

Android :: Google Market - Prevent Duplicate Charges For Reinstalling Apps

Aug 15, 2010

I have purchased several apps through the Google market. Updating to Froyo required a system reset for me so the apps had to be reinstalled from the market. My google checkout and login ID are the same but Google charged me again for the apps and they showed up on my CC. Tried to resolve through google but gave up in frustration trying to find some way to dispute or rectify the situation. I disputed the charge through my CC but I have a feeling that is going to cause more trouble. Surely there is some way this is SUPPOSED to work and a planned way to rectify easily when it does not.

View 2 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 :: Launching An Application Using Browser

Oct 13, 2010

I want to launch an application in the phone by clicking its link in the browser..

View 2 Replies View Related

Android :: Launching A Reduced Browser

Mar 23, 2010

Here is my question: Is it possible to launch a browser on Android and don't give the option to change page?For instance, if I launch a browser to stackoverflow.com, i want the user to navigate on the site, but don't give the ability to go to another site.

View 1 Replies View Related

Android :: Launching Barcode Reading From Browser

Aug 9, 2010

On the Google Products page, from an Android device, there is a "scan barcode" button that launches a 3rd party barcode scanning app, which returns results back to the browser. 1) How did they do this? 2) Is this available for any web developer to do, or a Google -> Google api only?

View 5 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 :: How To Stop Browser From Launching Phone Dialer?

Oct 12, 2010

Is there a setting to keep the browser from launching the phone dialer if I click a string of numbers by mistake?

View 2 Replies View Related

Android :: Hide Address Bar While Launching Native Browser

Feb 18, 2010

I am able to launch browser and open site "google.com" and from my App successfully. I have a requirement that when the browser is launched from my application, I have to hide the address bar visible at top for that browser session. So can think of that I dont want the address that I am trying to open to be visible to users.Please let me if this is possible and and if yes how.

View 5 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 :: App Launching - Execute Local Javascript File Using Phones Browser

Jul 12, 2010

Instead of launching a UI I was wondering if I could have a process monitor the execution of a javascript in the emulator's browser and read in the output data. Is it possible to execute a local javascript file using the phone's browser?

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

Android :: Launching An External Activity From Widget

Dec 22, 2009

I have written a widget that cycles through a series of movie poster images with next/prev buttons.This works.There is another button on the widget that needs to launch an external activity, sending it the name of the shown movie.The other activity is not in the same namespace, package or eclipse project as the widget.It is written by another developer and its apk is installed on my emulator.

View 7 Replies View Related

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

Android :: Launching Activity From Overlay OnTap

Feb 10, 2009

I am wondering if I am going about this problem the correct way.I am making an app that places overlays on top of google maps.When you click on the overlay it should launch a dialog type window that will give you options on what to do with that overlay.It is the line startActivity where the app throws an exception.I did the setFlags because an error message said it was needed because I was trying to start the Activity while outside an Activity.That makes me think I am going about this wrong.I have 'MyActivity' listed in my manifest so I don't think that is the issue.I have searched for this problem on the internet and I can't seem to find anyone else running into this so that is another reason I think I may be trying to do this the wrong way.

View 3 Replies View Related

Android :: Launching Activity At Its Current State

May 17, 2010

I am trying to make a task switcher and i succed in it. My only problem is that when I launch activities, they are relaunched as they were new activities ( for instance, I am writing an email, i press home and go into my activity,launch email, and then the app launch the email bout goes back at the inbox and the email is lost) So that's not true multitasking.

View 2 Replies View Related

Android :: Launching Intent Can't Find Activity

Jul 2, 2010

My program has a list of tabs that each contain a list of people.Clicking a person should edit their details, but instead, clicking a person throws an ActivityNotFoundException.

View 2 Replies View Related

Android :: Launching Intent From Class Outside An Activity

Jul 28, 2010

I've got two activities, one of them is called MyActivity. I want both of them to be able to use a function located in a class othat we may call MyClass. In MyClass, I try to use an intent to launch the activity AnotherActivity. Since the constructor takes a context as parameter, I simply tried to store a context from the activity in the constructor, and then use it when I try to create my intent.However, even thought none of the arguments are null (checked that with a simple if-statement), intent seems to be null and a NullPointerException is thrown. Why does it not work, and what can I do to solve the problem?
I'm quite new to Android and Java development, so please explain it as basic as you can.

View 2 Replies View Related

Motorola Droid :: GPS Starts Up When Launching Web Browser?

Jan 15, 2010

Anyone know why, when I launch the browser (the droid is not rooted or modified in anyway) I get the GPS icon in my notification bar? Then sometimes it will not do this or the icon will go away after a minute or so.

View 6 Replies View Related

Android :: Starting Activity Through Notification - Avoiding Duplicate Activities

Feb 24, 2010

I am currently showing a notification. When the user clicks this noticiation, the application is started. The notification persists, to indicate that the service is running in the background.

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

However, I have detected a case where a bug appears. If the user starts the application through clicking the normal icon, and while the activity is running clicks the notification, then a new activity is started without the earlier one exiting, the later being on top of the earlier. And that is not all: Further clicks on the notification will create additional activities and place them on top of those already running. How can I prevent this? Is there a nice check to do to see if a certain activity is currently being shown or is loaded?

View 1 Replies View Related

Android :: Application Component Not Instantiated Before Launching Activity

Dec 17, 2009

I got a null pointer exception in an Activity onCreate() while trying to access my Application object (extended from android.app.Application).This exception occurred very rarely and i have no way to reproduce this again.My App starts a service on BOOT_COMPLETED intent and the null pointer exception seems to have occurred during boot up. Can somebody please throw some light on this issue? Application should have been created before creating any activities.

View 2 Replies View Related







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