This file contains 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
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main); | |
lView = (ListView) findViewById(R.id.list1); | |
PackageManager pm = this.getPackageManager(); | |
Intent intent = new Intent(Intent.ACTION_MAIN, null); | |
intent.addCategory(Intent.CATEGORY_LAUNCHER); | |
List list = pm.queryIntentActivities(intent, PackageManager.PERMISSION_GRANTED); |
This file contains 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
<?xml version="1.0"?> | |
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd"> | |
<!-- Policy file for xmlsocket://socks.example.com --> | |
<cross-domain-policy> | |
<!-- This is a master socket policy file --> | |
<!-- No other socket policies on the host will be permitted --> | |
<site-control permitted-cross-domain-policies="master-only"/> |
This file contains 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
[Embed(source="assets/socketMessages.json", mimeType="application/octet-stream")] | |
public var SocketMessages:Class; |
This file contains 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
package com.creativedrewy.app.model.assetlibrary | |
{ | |
import flash.display.Sprite; | |
import flash.utils.describeType; | |
import flash.utils.getDefinitionByName; | |
/** | |
* Base class for asset libraries that index their clips based on the "asset helper" | |
* model, where assets are ref'd only by class name | |
*/ |
This file contains 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
<manifestAdditions> | |
<![CDATA[ | |
<manifest android:installLocation="auto"> | |
<!-- I left out the "default" AIR manifest additions that are there by default. You should keep those. --> | |
<uses-permission android:name="android.permission.NFC" /> | |
<uses-feature android:name="android.hardware.nfc" android:required="true" /> | |
<application android:enabled="true"> | |
<activity android:excludeFromRecents="false"> |
This file contains 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
package | |
{ | |
import flash.desktop.NativeApplication; | |
import flash.events.InvokeEvent; | |
public class NFCDataHandling extends Sprite | |
{ | |
/** | |
* Constructor | |
*/ |
This file contains 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
#Calling a function with arguments: | |
returnData = processData "First Argument", 3, "third" | |
#Pretend the same function had no arguments, call like this? No, wrong: | |
returnData = processData |
This file contains 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
#The right way to call the no-argument function: | |
returnData = do processData |
This file contains 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
switch message | |
when "hi" then returnData = "bye" | |
when "goodbye" then do -> | |
part1 = "This is just " | |
part2 = "a sample of how to do this" | |
returnData = part1 + part2 |
This file contains 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
Programming Language/Frameworks URLs: | |
http://commons.wikimedia.org/wiki/File:Java_logo_and_wordmark.svg | |
http://commons.wikimedia.org/wiki/File:Ruby_on_Rails_logo.svg | |
http://commons.wikimedia.org/wiki/File:PHP-logo.svg | |
http://commons.wikimedia.org/wiki/File:HTML5_logo_and_wordmark.svg | |
http://commons.wikimedia.org/wiki/File:Python-logo-notext.svg | |
http://commons.wikimedia.org/wiki/File:Android_logo_2.svg | |
http://commons.wikimedia.org/wiki/File:Apple_iOS_new.svg |
OlderNewer