Custom scheme doesn't seem to launch in the app intent

前端 未结 4 1202
梦毁少年i
梦毁少年i 2021-02-06 15:54

I\'m trying to create an Android app that needs to use OAuth to authenticate (with the Google Wave data API)

I\'ve specified a custom scheme in my AndroidManifest.

4条回答
  •  我寻月下人不归
    2021-02-06 16:24

    I had the exact same problem (OAuth) and this is how I fixed it.

    I've separated my Main from the class that will act on the URI.

    Here's how the AndroidManifest.xml should look like:

    
    
    [snip]
    
              
               
                
                
               
              
              
               
                
                
                
                
               
              
             
    
        [/snip]
    

    And I was able to open URIs like myscheme//oauth?oauth_verifier=xxx&oauth_token=yyy

提交回复
热议问题