This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<android> | |
<manifestAdditions><![CDATA[ | |
<manifest android:installLocation="auto"> | |
<uses-permission android:name="android.permission.INTERNET"/> | |
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | |
<application> | |
<activity android:name="com.distriqt.extension.camerarollextended.activities.BrowseForAssetActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:configChanges="orientation|screenSize" /> | |
<activity android:name="com.distriqt.extension.camerarollextended.activities.MultiImagePickerActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:configChanges="orientation|screenSize" /> | |
<activity android:name="com.distriqt.extension.camerarollextended.activities.SelectorActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:configChanges="orientation|screenSize" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<android> | |
<manifestAdditions><![CDATA[ | |
<manifest android:installLocation="auto"> | |
<uses-permission android:name="android.permission.INTERNET"/> | |
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> | |
<uses-permission android:name="android.permission.READ_CONTACTS" /> | |
<uses-permission android:name="android.permission.WRITE_CONTACTS" /> | |
<!-- Optional: Needed if you are planning to save contact images --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contacts.init( APPLICATION_KEY ); | |
Contacts.service.addEventListener( AuthorisationEvent.CHANGED, contacts_authorisationChangedHandler ); | |
switch (Contacts.service.authorisationStatus()) | |
{ | |
case AuthorisationStatus.SHOULD_EXPLAIN: | |
case AuthorisationStatus.NOT_DETERMINED: | |
// REQUEST ACCESS: This will display the permission dialog | |
Contacts.service.requestAccess(); | |
return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Before here we have already requested access and performed initialisation | |
Contacts.service.addEventListener( ContactsEvent.GET_CONTACTS, contacts_getContactsHandler ); | |
Contacts.service.addEventListener( ContactsEvent.GET_CONTACTS_ERROR, contacts_getContactsErrorHandler ); | |
Contacts.service.getContactListAsync(); | |
... | |
private function contacts_getContactsHandler( event:ContactsEvent ):void |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Before here we have already requested access and performed initialisation | |
Contacts.service.addEventListener( ContactsEvent.CONTACT_SELECTED, contact_selectedHandler ); | |
Contacts.service.addEventListener( ContactsEvent.CONTACTPICKER_CANCEL, contacts_contactPickerCancelHandler ); | |
if (!Contacts.service.showContactPicker()) | |
{ | |
trace( "Access to contacts list denied by user" ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dialog.service.toast( "An amazing toast" ); | |
// com.distriqt.Dialog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Application.init( APPLICATION_KEY ); | |
if (Application.isSupported) | |
{ | |
Application.service.setStatusBarColour( 0xFF0000 ); | |
} | |
// com.distriqt.Application |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var alert:DialogView = Dialog.service.create( | |
new AlertBuilder() | |
.setTitle( "Alert" ) | |
.setMessage( "Test Message" ) | |
.addOption( "OK", DialogAction.STYLE_POSITIVE, 0 ) | |
.build() | |
); | |
alert.addEventListener( DialogViewEvent.CLOSED, alert_closedHandler ); | |
alert.show(); |