You have specified in your intent filter that you match against the
host "com.edwardawebb.myapp.class"
but the URI in your message from the browser doesn't have a host name at
all.
Even if you fix that, I don't think this is the approach you want to take,
because at the point where the URI is started the best outcome is that the
user is prompted to pick either your app or the browser to view it.  (In
Donut you will be able to create a URI that is limited to a specific package
for intent resolution, which should help you get around that problem.)

On Mon, Sep 14, 2009 at 1:18 PM, Pedro Fernandes <[email protected]> wrote:

>
> >
>
>
> My 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.
>
> I tried adding a scheme to my activity
> --
> <data android:scheme="myscheme" android:pathPrefix="myscheme"
> android:host="com.edwardawebb.myapp.class" />
> --
> And setting the callback url to myscheme://?reponseParameter=868668687
>
> I want the method below to recieve the callback, but it gets nothing
>
> --
>        public class PinReceiver extends BroadcastReceiver{
>            // retrive PIN after user links withwebsite thorugh browser
>            @Override
>            public void onReceive(Context context, Intent intent){
>                    // Send a text notification to the screen.
>                NotificationManager nm = (NotificationManager)
>                context.getSystemService(Context.NOTIFICATION_SERVICE);
>
>           }
>        }
> --
>
>
> What Happens;
>
> -The browser launches (first page loads successfully)
> -User enters info
> -But the browser just says
> "the webpage myscheme://?reponseParameter=868668687 is not available"
>
>
> How do I get the browser to recognize myscheme:// as an internal
> scheme?
>
> --~--~---------~--~----~------------~-------~--~----~
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
>
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to