• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps can't launch my android app from url scheme in android manifest

sofia1405

Lurker
hi i have created an android app, and i want to use an external qr code reader to call the app. However, the qr code reader prompt me with this message: "Sorry we cannot find an app to launch the request action. The qr code contents may be invalid". i did register the scheme in android manifest.xml, but it still cannot launch my app the following is the android manifest.xml

Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.ttest"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="21" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".MainActivity"
            android:label="@string/app_name"
            android:launchMode="singleTask">
            <intent-filter>
                  <data android:scheme="cedemo" android:host="com.cedemo.scan" />
                 <action android:name="android.intent.action.VIEW"/>
                 <category android:name="android.intetnt.category.DEFAULT"/>
                 <category android:name="android.intent.category.BROWSABLE"/>
              
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
           
           
        </activity>
    </application>

</manifest>
and the text encoded in the qr code is as follow
cedemo://com.cedemo.scan
 
how to move?
I already moved it.:) There is a link to it in the forum you originally posted in. We try to use multiple methods of notification for thread moves with new folks that may not familiar with our forum layout so we can be sure they find their thread.:)
 
Back
Top Bottom