Hi,

i'm trying to implement a twitter connection in an android app using
jtwitter (http://www.winterwell.com/software/jtwitter.php).

The OpenAuth authentification process opens an URL in a WebView, asks
the user to allow access to his/her account, and redirects to a
specific URL i can setup in the twitter application.

As far as i've understood, i need to implement an Intent-Filter for
the Activity that launches the WebView, so the WebView redirects back
to my application, and not to the URL in the Browser.

I'm not able to redirect back to my app unfortunately. Here's the
intent-filter i've setup in my AndroidManifest.xml:


<activity android:name=".android.activity.PlayerActivity">
    <intent-filter>
      <action android:name="android.intent.action.VIEW" />
      <category android:name="android.intent.category.DEFAULT" />
      <category android:name="android.intent.category.BROWSABLE" />
      <data android:scheme="http" android:host="www.example.com" />
    </intent-filter>

        </activity>

The URL which twitter redirects to is "http://www.example.com"; (of
cours in the reall app it's our domain). However, the intent-filter
doesn't seem to work, as the WebView simply opens http://www.example.com
in the browser.

Has anyone a hint what i'm missing out here?


thanks!

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