[android-developers] Re: Directing user to webpage, then back to app

2011-11-08 Thread Neilz
Ok, I have a related, but unrelated, question about this! More about managing Activities and Intents, but within the above scenario. Let's say my app has started ActivityA, ActivityB, and ActivityC. This last activity opens the browser, which does its stuff until the user clicks the link

Re: [android-developers] Re: Directing user to webpage, then back to app

2011-11-08 Thread Mark Murphy
On Tue, Nov 8, 2011 at 8:00 AM, Neilz neilhorn...@gmail.com wrote: Ok, I have a related, but unrelated, question about this! More about managing Activities and Intents, but within the above scenario. Let's say my app has started ActivityA, ActivityB, and ActivityC. This last activity opens

[android-developers] Re: Directing user to webpage, then back to app

2011-11-08 Thread Neilz
Yes I rather thought that would be the case. Unfortunately I don't think the 'intent' link works from within a WebView, so I'm stuck with the browser, which would probably be the client's preference anyway. I don't want to actually 'get rid' of the browser as such, rather just move it to the

Re: [android-developers] Re: Directing user to webpage, then back to app

2011-11-08 Thread Mark Murphy
On Tue, Nov 8, 2011 at 8:58 AM, Neilz neilhorn...@gmail.com wrote: Yes I rather thought that would be the case. Unfortunately I don't think the 'intent' link works from within a WebView, so I'm stuck with the browser, which would probably be the client's preference anyway. Well, if you're

[android-developers] Re: Directing user to webpage, then back to app

2011-11-07 Thread Neilz
Thanks Mark. Now that I know what to be searching for, I've found several similar topics mostly on stackoverflow. Most topics have a response by Hackbod, stating not to do it that way, but I'm struggling a little to understand what it is he's suggesting instead.

Re: [android-developers] Re: Directing user to webpage, then back to app

2011-11-07 Thread Mark Murphy
On Mon, Nov 7, 2011 at 9:55 AM, Neilz neilhorn...@gmail.com wrote: Thanks Mark. Now that I know what to be searching for, I've found several similar topics mostly on stackoverflow. Most topics have a response by Hackbod, stating not to do it that way, but I'm struggling a little to understand

[android-developers] Re: Directing user to webpage, then back to app

2011-11-07 Thread Neilz
On Nov 7, 3:11 pm, Mark Murphy mmur...@commonsware.com wrote: FYI, hackbod is Dianne Hackborn. Ah, thought so... Finally, you may want to set the package of the intent to your app with this:http://developer.android.com/reference/android/content/Intent.html#se...) Um, that seems

Re: [android-developers] Re: Directing user to webpage, then back to app

2011-11-07 Thread Mark Murphy
On Mon, Nov 7, 2011 at 11:00 AM, Neilz neilhorn...@gmail.com wrote: Hmm, I don't get it, I'm missing something obvious :-/ At the moment I have a webview (which is mimicking what may be a stock browser) which has a link, such as: webView.loadData(a

[android-developers] Re: Directing user to webpage, then back to app

2011-11-07 Thread Neilz
Right, I see. No, the path option doesn't make a difference, it still offers me a choice of apps to open with. Ok, it's the other approach that I'm struggling to find an example for. Just lots of messages discussing it! The appears to be an example on the following page, but it simply doesn't

Re: [android-developers] Re: Directing user to webpage, then back to app

2011-11-07 Thread Mark Murphy
I have one in http://github.com/commonsguy/cw-advandroid/Introspection/URLHandler (though that URL is from memory, as I am sitting in a conference keynote right now...) Mark Murphy mmur...@commonsware.com On Nov 7, 2011 8:35 AM, Neilz neilhorn...@gmail.com wrote: Right, I see. No, the path

[android-developers] Re: Directing user to webpage, then back to app

2011-11-07 Thread Neilz
Right, so if I'm looking at the correct part of the sample, you end up logging a strange 'intent' url, like this: intent:#Intent;action=com.commonsware.android.MY_ACTION;end I'm not sure what I do with this... I've tried using it in a link, as another sample suggested, but I just get a 'Web page

Re: [android-developers] Re: Directing user to webpage, then back to app

2011-11-07 Thread Kostya Vasilyev
07.11.2011 21:11, Neilz пишет: Right, so if I'm looking at the correct part of the sample, you end up logging a strange 'intent' url, like this: intent:#Intent;action=com.commonsware.android.MY_ACTION;end That strange URL is the result of calling intent.toUri().

Re: [android-developers] Re: Directing user to webpage, then back to app

2011-11-07 Thread Mark Murphy
I can't speak for WebView. Point a browser at http://commonsware.com/sampleto see a page that uses links to be picked up by the sample app's activity. Mark Murphy mmur...@commonsware.com On Nov 7, 2011 9:12 AM, Neilz neilhorn...@gmail.com wrote: Right, so if I'm looking at the correct part of

[android-developers] Re: Directing user to webpage, then back to app

2011-11-07 Thread Neilz
Ah... it works when I run it from your sample page, yes. It doesn't work from a WebView, hence my initial confusion. At least I have the principle working... I can't actually test it in full, as I want to pass parameters too, but don't have a webpage I can manipulate at this moment. Thanks for