2012-06-03 67 views
-1

我無法讓我的應用註冊打開特定的網址。我嘗試使用pathPatter,如:「。*/spreadsheet /.*」和類似的,機智或沒有主機......但沒有任何反應。我的應用程序只是不會註冊打開這些網址。Android - 意圖過濾器中的網址格式

我想打開網址一樣 https://docs.google.com/spreadsheet/viewform?formkey= ...

我的清單

<activity 
     android:name=".MainActivity" 
     android:label="@string/app_name" > 
     <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.BROWSABLE" /> 

      <data 
       android:host="docs.google.com" 
       android:pathPrefix="/spreadsheet" 
       android:scheme="http" /> 
      <data 
       android:host="docs.google.com" 
       android:pathPrefix="/spreadsheet" 
       android:scheme="https" /> 
     </intent-filter> 
    </activity> 

回答

1

解決!一行失蹤。

<category android:name="android.intent.category.DEFAULT" /> 
1

你可能已經使用谷歌的GData庫訪問電子表格從Android和嘗試後的幾個小時嘗試,你開始谷歌的任何替代解決方案。我也花了數小時沒有任何解決方案。 (More for this

所以,我已經開發了電子表格的客戶端庫[在Android :-)工作]和在任何Java平臺 - http://code.google.com/p/google-spreadsheet-lib-android/,類似的問題Using Google Docs and Google Spreadsheet APIs for Android理想的工作,終於不要錯過這個Google Spreadsheets API enables developers to create applications that read and modify the data in Google Spreadsheets

這裏也討論或代碼這個問題。(More)和programmatically access and manipulate user data stored with Google DocumentsJava Client for google docs.

我認爲這可能是解決你的問題的幫助。