2012-05-31 13 views
16

मैं एक ट्विटर ऐप में ओउथ का उपयोग कर रहा हूं जो आपको उस ऐप के भीतर ट्विटर पेज पर भेजता है जहां आप साइन इन करते हैं और टोकन को संभालने वाले ऐप पर रीडायरेक्ट किया जाता है। यह एंड्रॉइड 2.0.x और 3.0.x में पूरी तरह से काम करता है लेकिन 4.0 में मुझे "वेब पेज उपलब्ध नहीं है" जब मैं अपने एप्लिकेशन पर वापस रीडायरेक्ट करने का प्रयास करता हूं। क्या कोई मुझे बता सकता है कि यह क्यों है ?? मैं अपने मैनिफ़ेस्ट फ़ाइल में निम्नलिखित है:गतिविधि यूआरएल कॉलबैक 4.0.3 में काम नहीं कर रहा है आईसीएस

<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="myapp" android:host="myactivity"/> 
</intent-filter> 

चहचहाना पेज कॉलबैक URL जो काम कर रहा है दिया जाता है, लेकिन अब एंड्रॉयड 4.0 आईसीएस में नहीं है, किसी को कृपया कर सकते हैं? धन्यवाद।

+3

+1 +1 +1 मुझे 4.0.3 फोन (एचटीसी अमेज़ 4 जी) के साथ एक ही समस्या है हालांकि रीडायरेक्ट अन्य सभी चीज़ों पर काम करता है। मैं हर किसी को इसका जवाब खोजने के लिए खोज रहा हूं। मुझे लगता है कि इसमें नई अनुमतियों के साथ कुछ करना है, अन्यथा यह 4.0.3 में एक बग है। रीडायरेक्ट 4.1 में काम करता है, लेकिन 4.0.3 में नहीं। – tbjers

+0

@tbjers - क्या आप इस के लिए समाधान ढूंढने में सक्षम थे? – DeRagan

उत्तर

0

मेक सुनिश्चित करें कि आपके CALLBACK_URL

myapp://myactivity 
0

है मैं इस का इस्तेमाल किया और यह मेरी समस्या हल:

<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="x-oauthflow-twitter" android:host="callback" /> 
</intent-filter> 
0
<activity 
     android:name=".MainActivity" 
     android:label="@string/app_name" 
     android:launchMode="singleTop" > 

<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:host="t4jsample" 
      android:scheme="oauth" /> 

    </intent-filter> 

यह क्या मैं चहचहाना एकीकृत करने के लिए अपने आवेदन में इस्तेमाल किया गया है। और यह मेरे लिए काम करता है मैं आईसीएस 4.0.3 के साथ एचटीसी इच्छा वी का उपयोग कर रहा हूँ।

मैंने इस ट्यूटोरियल को एकीकरण के लिए संदर्भित किया। http://www.androidhive.info/2012/09/android-twitter-oauth-connect-tutorial/

0
<activity 
     android:name=".StartupActivity" 
     android:launchMode="singleTask" 
     > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
     <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:host="www.healthcompanion.com" 
       android:path="Common//Registration.jsp" 
       android:pathPattern="*.*&amp;data=2&amp;*" 
       android:scheme="https" /> 
     </intent-filter> 
    </activity> 
1

यह Manifesh फ़ाइल गतिविधि प्रवेश

<action android:name="android.intent.action.VIEW" /> 
    <category android:name="android.intent.category.DEFAULT" /> 
    <category android:name="android.intent.category.BROWSABLE" /> 
    <data 
     android:host="www.yourpage.address" 
     android:scheme="alocola" />    //scheme name 

</intent-filter> 

है और यह यूआरएल उपयोग में html पृष्ठ खुला है वापस कॉल करने के

जाना क्लिक करें
> <html> Visit my blog <?php $homepage = 
> file_get_contents('http://www.example.com/api/parameters'); echo 
> $homepage; ?> <a href="alocola://other/parameters/here"> ////alocola use scehma 
> <metahttp-equiv="alocola://other/parameters/here"content="5; 
> url="alocola://other/parameters/here" > mysite </a> or run the <a 
> href=\"alocola"> myactivity</a> callback</html> 
संबंधित मुद्दे