Android :: Tasks & Browser Activity
Aug 5, 2009I am trying to have the browser part of my task. The reason being is that I am awaiting a callback from the browser before continuing.
View 3 RepliesI am trying to have the browser part of my task. The reason being is that I am awaiting a callback from the browser before continuing.
View 3 RepliesHas anyone any idea on how to solve the generic problems related to starting a task in background from an activity and when the task is finished posting the result to the activity that created ? (the activity might get destroyed in the meantime due to a orientation change ,or receiving a call , or might be in the process of destroying and recreation)
View 2 Replies View RelatedHow do you create unit tests for an Android activity that starts async tasks in onCreate? I would like to test the result of these tasks.
View 1 Replies View RelatedAnyone else experience this? I have a bunch of Google Tasks but clicking the more arrow beside each tasks actually crashes the Hero browser. Maybe I need to switch browsers just for Tasks...
View 2 Replies View RelatedI'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 RelatedI have a main activity, then i call a new activity intent from this. Lets call this SecondActivity. Then from my secont activity i call a browser intent. Then my browser intent call my second activity's onNewIntent method.Evereything work fine, but when i click on "back" button on my phone on my second activity, i will not going to my main activity, but the browsers activity, why?
View 1 Replies View RelatedI can launch several activities by clicking on link. These Activities are - phone dialing, web browser and probably couple more. My question is how to extend this list? How to make new Activity launch-able by link clicking? Let's say if someone receives email with link myapp://something.here?par1=val1 and clicks on this link my Activity starts. Is it doable?
View 4 Replies View RelatedIs there a way to launch an activity from the web page? Like <a href="dialer:123456">Call me </a>?
View 4 Replies View RelatedMy activity calls a browser activity where the users submits their info to retrieve a PIN. That PIN is then sent as a parameter to a url specified in the request.
View 4 Replies View RelatedI 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 RelatedOur application has a fair amount of java script. As far as we known, WebView widget doesn't handle AJAX, therefore we want to bring up the brower to load the url. The problem is, after user done with browser, how can it goes back to where it left in our application? ( when user quit the browser, our application will show up the activity before went to browser)
View 2 Replies View RelatedI want to have an image open from a URL to an intent, most likely the browser or maybe a picture previewer like the one built into twidroyd.I've gotten plain URLs to open to the browser. I just can't figure out what action or category to specify,
View 1 Replies View RelatedI 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?
View 2 Replies View RelatedSo I read through the SDK docs and I thought that calling a new activity(browser) as part of a task (myTask) will mean that activity* (browser) will close when a user closes the task (myTask) But I am left with a browser window.
Here is my scenario (in sudo code);
CODE:..........
Question 1: What is the cleanest way to ensure that when a user closes my app, any outside activities called will be closed to.
Question 2: Does a callback URl start a new Task, or use one in the stack if available?
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.
I want to specifically run the default Android browser for a given URL. I'm using this code: I also tried adding <uses-library android:name="com.google.android.browser" /> to the manifest. Am I missing something here? PS: I'm not interested in using startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"))) as it will list all the choices for the browsing Intent.
View 3 Replies View RelatedWhat is the best performing app to set a reminder to do something? Not an appt, but just to remember to do. a task list or todo app that shows up on the home screen. For instance, I need to remember to bring something to work for tomorrow. Or, like, remember to buy eggs on the way home. On previous non android phones, it had the task list showing on the home screen.
View 6 Replies View RelatedI am currently using Gtasks and I like being able to add a task that will allow an audible alert but lately for some reason the program has been buggy and its starting to frustrate me. I was wondering if anyone knows of an app that will do something similar All I want something that has a widget so I can see upcoming events or tasks and it must also be able to alert me audibly - the built in calendar on my Captivate is terrible. A calendar type app would be fine as well. I saw this in the market Pure Calendar Widget - anyone out there that can recommend this app? I would appreciate any info on an app I should try.
View 2 Replies View RelatedI'm not talking about a startup app like startup auditor, or a task killer, but something that will actually prevent the tasks I don't want, from opening at all. I can't STAND moxier mail. It always opens in the background. I don't want it opening EVER, so I'd love an app like this.
View 4 Replies View RelatedI had a question regarding this concept. Suppose i have an application that defines a task. This task has some activities that belong to another Android application. The Dev guide says, that to maintain a uniform user experience, Android will maintain such 'distributed' activities as part of the same 'task' even if they belong to different applications.
I refer to it from here: http://developer.android.com/guide/topics/fundamentals.html
Some lines later, the Dev guide says and i quote: * * *"**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. 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. When the user presses the BACK key, the screen does not display the activity the user just left (the root activity of the previous task). Rather, the activity on the top of the stack is removed and the previous activity in the same task is displayed."*
I think "three under the current activity" should be "four under the same task".
I think this paragraph i quote above has nothing to do with activities distributed across applications..and belonging to the same task. This para is maybe talking about two applications, that share a common application launcher and each application has defined its own tasks (stack of activities).
The user is simply toggling from one application to another, thus demonstrating that all activities (of a task) move together. However, the "three under the current activity" phrase is confusing me.
New to Motorola droid. I was wondering if there is a shortcut to show you what apps/tasks you have running, and allows you to easily switch between them? Currently, I just hit the home button to get out of one app/task and then switch to the screen with the app I want, and click on the app/task. I imagine there is an easier way via a key or shortcut that will pop up my open apps and allow me to choose which one to go to. I figure with all the talk of the droid being a multitasker, I figure there would be an easy way to switch between tasks.
View 3 Replies View RelatedIs there a PC desktop application that can sync with Android calendar, tasks, and reminders?
I know on Windows Mobile I can use Outlook for this.
But I don't know how is this on Android.
I am a WinMo user and seriously thinking to jump move to Android because HTC Desire will be released soon
WARNING: Back up your Astrid 2 before doing the Astrid 3 upgrade!I just updated to Astrid 3.0 ("Update Available"). Silly me, I didn't read the notes other than to see that Astrid 3 was "all new". My tasks vaporized! The I tried to "restore" and it said I had to buy an add-on pack to do that. No indication of whether the restore in V3 is compatible with saved tasklists from V2. The experience left me cold. I uninstalled Astrid 3 and reverted to V2 via the link http://bit.ly/oldastrid. Then I restored from the saved list on my SD card from the scheduled backup that Astrid did last night. I still lost some tasks I entered today.
View 22 Replies View RelatedI have now had my Desire for over a month and very happy with it so far except for one small annoyance. I'm a heavy user of my Outlook Tasks and am desperatly trying to find an app that allows me to sync my Outlook Tasks with my phone and add/amend for either side. Anyone know of a suitable app?
View 12 Replies View RelatedI don't know how to elegantly solve the following task:
I have several blocks of code (operation) to execute. Each block can return true of false to indicate that further execution is possible. Inside of each block I have to use asyncronous methods calls (Because Android is completeley asynchronous).
Example of processing operations (not working now as expected):
CODE:.......
The problem is that inside of the operation I need, for example, display AlertDialog and wait for the input. But after I call dialog.show() my method execute finishes and it returns incorrect result.
Example of the button listener, registerd with AlertDialog is below:
CODE:..........
How should I modify processing of operations to support asynchronous model of Android?
In the documentation, I read that it is not possible for executing 2 Async Tasks. If execute is called again, it should throw an exception.
The following is given under the heading of "Threading Rules", and i quote:
"The task can be executed only once (an exception will be thrown if a second execution is attempted.)"
I wish to understand the meaning of this statement.
Does this mean, that if i try and execute the same task twice (concurrently) when the first execution of the task was still going on...an exception will be thrown ? Will i need to wait for the completion of the first task, before i spawn a second task ?
A possible use case:
The user wishes to download a set of files. He clicks on the download button by providing the URL. When the first download is still going on, he wishes to download another file and provides another URL. Both these user actions are serviced by a DownloadTask, that extends the AysncTask.
If i wish to change this default behavior, is there a configuration option?
An activity can use AsyncTask or Handler framework for background work. Both will continue to work even after user has moved away from the activity that started them and the onDestroy for the activity has been called. In other words, an activity is fully capable of doing background work even after its GUI has been shutdown.In this scenario, use of Service for background work seems like redundancy. What does Service bring to the table that an activity can not do?
View 3 Replies View RelatedSimple question - any android app that syncs with outlook tasks?
this is important for me, as much as gmail, calender and contact sync exists - tasks are ALSO VERY IMPORTANT?
I installed the latest version of Astrid, added two tasks, then added the Astrid widget on one of the screens on my phone. I went back and added more tasks, but they don't show up in the widget. Is this a bug, how do I get Astrid to always show the latest list of tasks?
View 2 Replies View RelatedWhat is the best way or app to sync my existing Google tasks to my phone?
View 2 Replies View Related