Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Android Intents - send picture from gallery to app

$
0
0

Hi developers around the world, today I've spent about 3 hours, trying to open an image from gallery in my app, but I'm having some trouble.

I read about this in android development documentation, titanium, some questions here and an exemple that most of you share to make a lot easier to we understand, but I can't find the right way to do this.

In this piece of tiapp.xml code that can be found in here, every time that we want to go to this site, this menu appears with your app, correct ?

My doubt is the following one, I've only to change the action, data and category on this tiapp.xml activity in order to add mine to share icon on image gallery (I'm developing only for android 4+), but I can't find an good exemple of this, only this one:

<activity android:name=".IntentFilterTestActivity"
    android:label="Intent Filter Test" android:theme="@style/Theme.Titanium"
    android:configChanges="keyboardHidden|orientation">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
    <intent-filter>
        <data android:scheme="http" android:host="www.appcelerator.com"/>
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <action android:name="android.intent.action.VIEW" />
    </intent-filter>
</activity>

Viewing all articles
Browse latest Browse all 8068

Trending Articles