Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7627217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:25:48+00:00 2026-05-31T05:25:48+00:00

(post updated for working code) I’ve been trying to get my android app to

  • 0

(post updated for working code)

I’ve been trying to get my android app to authorize with Twitter and then catch the auth token with a callback URL in my app.

I think I have something wrong in my AndroidManifest.xml though. From what I understand, if I launch my app using android:launchmode=”singleTask” then I need to retrieve the AccessToken object in the onResume() method of my main activity.

If I do not specify singleTask launch, then I need to do the retrieval in the onNewIntent() method instead.

I’ve tried both ways in my manifest file but I’m not getting control in onNewIntent() or onResume(). What happens is Twitter redirects with my callback URL but then the webbrowser just says “Webpage not available”. and logcat says:

Tab  E  onReceivedError -10 myapp://www.authtoke.app?oauth_token=2Y3jZMfHZ06Teezzy3l1KvlWqs961tsqXFlTgMHrA&oauth_verifier=PBfCueZLEzEteBoLTksDARQDRi3raVi5FiEJllCYus The protocol is not supported.

anyone know what I’ve got mucked up? Here’s the manifest entries:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.test.twitterLib"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="4" />

    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />

    <application  android:name=".myAppVars"    android:icon="@drawable/ic_launcher"  android:label="@string/app_name" >
        <activity  android:name=".TwitterLibActivity"  android:label="@string/app_name"  android:launchMode="singleTask">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" > </action>
                <category android:name="android.intent.category.LAUNCHER" ></category>
            </intent-filter>

            <intent-filter>
                <action android:name="android.intent.action.VIEW" > </action>
                <category android:name="android.intent.category.DEFAULT" ></category>
                <category android:name="android.intent.category.BROWSABLE" > </category>
                <data  android:scheme="myapp" android:host="www.authtoke.app"> </data>
            </intent-filter>
        </activity>

    </application>

</manifest>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T05:25:49+00:00Added an answer on May 31, 2026 at 5:25 am

    Found the answer here: androidforums.com/introductions/…. Edited manifest so it works. I moved the VIEW, DEFAULT and BROWSABLE items into a second intent-filter stanza.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get my backbone associations working inside a rails app , and
I'm trying to use the code below, but it's not working: UPDATED WORKING: $(document).ready(function()
I am trying to debug the reason why my ajax get/post is not working
Update: This turned into a blog post, with updated links and code, over at
Maybe I've been working on my site for to long, but I can't get
According to my previous post I am trying to get back some information from
I've been working on a single page app based on Knockoutjs' excellent mail example
I'm currently working with the Google Picasa API trying to list albums. The code
UPDATED See post #3 below. There is a need to upload a file to
Sorry for the double post, I will update this question if I can't get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.