Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry® Z10

Reply
New Contributor
hiteshiitg
Posts: 2
Registered: ‎05-30-2014
My Device: black berry z10

unable to start the android app while clicking the appropriate file

Hi I have developed andoid app and now I am porting it on bb z10 using eclipse plugin. I have set intent filter in AndroidManifest.xml which should allow any file with .camem extension to start the app. It happens in original android app in android mobile but it does not happen in ported BB app in BB z10 phone. Please help. My AndroidManifest.xml is given below:

 

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.ca.secure.mail"
    android:versionCode="1"
    android:versionName="2014Q2 Sprint1" >

    <uses-sdk
        android:minSdkVersion="10"
        android:targetSdkVersion="16" />

    
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_ALL_DOWNLOADS" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

    <application
        android:name=".util.DatabaseManager"
        android:enabled="true"
        android:icon="@drawable/app_icon"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:theme="@style/EmailTheme" >
        <activity
            android:name=".ui.ReadHTMLActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:excludeFromRecents="true"
            android:label="@string/app_name" >
             <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:pathPattern="*.htm" />
                <data android:mimeType="text/html" />
            </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:pathPattern="*.camem" />
                <data android:mimeType="application/octet-stream" />
            </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:pathPattern="*.camem" />
                <data android:mimeType="application/camem" />
            </intent-filter> 
        </activity>
        <activity
            android:name=".ui.SaveArcotIDActivity"
            android:configChanges="orientation|keyboardHidden|screenSize" >
            <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="esend" >
                </data>
            </intent-filter>
        </activity>
        <activity
            android:name=".ui.PasswordActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:exported="false"
            android:label="@string/app_name" />
        <activity
            android:name=".ui.SplashScreen"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:excludeFromRecents="true"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".ui.DecryptedContentActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:exported="false"
            android:label="@string/app_name" />
        <activity
            android:name=".ui.TutorialActivity"
            android:exported="false"
            android:label="@string/app_name" />
        <activity
            android:name=".ui.RRFActivity"
            android:configChanges="orientation|keyboardHidden|screenSize"
            android:exported="false"
            android:label="@string/app_name" />
        <activity
            android:name="com.ca.mam.emmlib.app.LibLoginActivity"
            android:exported="false"
            android:label="@string/app_name" />
    </application>

</manifest>

 

Elite II
BillJ
Posts: 8,978
Registered: ‎01-05-2009
My Device: BlackBerry Z30

Re: unable to start the android app while clicking the appropriate file

You're in the Device Support Forums. You might be best to post this in the Developer Forums for better exposure to those who could assist you. Chances are a moderator will move it for you.

 

 

Cheers.  :smileyhappy:


- If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.