Problem Create ANE,ArgumentError: Error #3500: The extension context does not have a method with the name

I little confuse about build ANE, I already follow all the direction, but the error always #3500 when I try to call the ANE.
I create ANE using java android.
The tools I use : Flash Builder running on Win-64 win.7. I think I must straight to the point, here what i made it first step by step;
1. I create the JAVA application first, with package senigo.extension.android then I create 3 file, Sample.java, SampleContext.java, PassTextFunction.java
Sample.Java Source Code
package senigo.extension.android;
import android.util.Log;
import com.adobe.fre.FREContext;
import com.adobe.fre.FREExtension;
public class Sample implements FREExtension {
  @Override
  public FREContext createContext(String arg0) {
  // TODO Auto-generated method stub
  Log.i("Sample", "createContext");
  return new SampleContext();
  @Override
  public void dispose() {
  // TODO Auto-generated method stub
  Log.i("Sample", "Dispose");
  @Override
  public void initialize() {
  // TODO Auto-generated method stub
  Log.i("Sample", "Initialize");
SampleContext.Java Source Code
package senigo.extension.android;
import java.util.HashMap;
import java.util.Map;
import android.util.Log;
import com.adobe.fre.FREContext;
import com.adobe.fre.FREFunction;
public class SampleContext extends FREContext {
  public SampleContext()
  Log.i("SampleContext", "constructor");
  @Override
  public void dispose() {
  // TODO Auto-generated method stub
  Log.i("SampleContext", "dispose");
  @Override
  public Map<String, FREFunction> getFunctions() {
  // TODO Auto-generated method stub
  Log.i("SampleContext", "getFunctions");
  Map<String, FREFunction> functionMap = new HashMap<String, FREFunction>();
  functionMap.put("passText", new PassTextFunction());
  return functionMap;
PassTextFunction.Java Source Code
package senigo.extension.android;
import com.adobe.fre.FREContext;
import com.adobe.fre.FREExtension;
import com.adobe.fre.FREFunction;
import com.adobe.fre.FREObject;
public class PassTextFunction implements FREFunction {
  @Override
  public FREObject call(FREContext arg0, FREObject[] arg1) {
  // TODO Auto-generated method stub
  FREObject result = null;
  try{
  result =  FREObject.newObject("Hello World");
  }catch(Exception e)
  return result;
after all the file I create the jar file using click right on the tree view >> Export >> Jar File >> Sample.Jar (i already create jar file that just contain the src folder and after i frustrated, i create .jar file contain all the whole project folder but still didn't work out).
Ok, After that I create project Flex Library Project, That's contain the actionscript to call the native and the extension.xml, here the code.
Test.as Source Code, FYI : i already create public function and the static function the error still same #3500.
package senigo.extension.android
  import flash.external.ExtensionContext;
  public class test
  private static var extContext:ExtensionContext = null;
  public function test()
  trace ("Test Constructor");
  if (!extContext)
  initExtension();
  public static function get passText():String
  trace ("Test Pass Text");
  if (!extContext)
  initExtension();
  return extContext.call("passText") as String;
  private static function initExtension():void
  trace ("Vibration Constructor: Create an extension context");
  extContext = ExtensionContext.createExtensionContext("senigo.extension.android", null);
extension.xml source code
FYI: in Flex when i put the Native Extension, they said must have Windows-x86 so I already create 3 ANE, that just contain Android-ARM , Contain Android-ARM and Default, Contain Android-ARM,Default and Windows-x86 but the error still same. I didn't got it where is the error.
<extension xmlns="http://ns.adobe.com/air/extension/3.1">
  <id>senigo.extension.android</id>
  <versionNumber>1.0.0</versionNumber>
  <platforms>
  <platform name="Android-ARM">
  <applicationDeployment>
  <nativeLibrary>Sample.jar</nativeLibrary>
  <initializer>senigo.extension.android.Sample</initializer>
  <finalizer>senigo.extension.android.Sample</finalizer>
  </applicationDeployment>
  </platform>
  <!-- <platform name="Windows-x86">
  <applicationDeployment>
  <nativeLibrary>sample.jar</nativeLibrary>
  <initializer>senigo.extension.android.Sample</initializer>
  <finalizer>senigo.extension.android.Sample</finalizer>
  </applicationDeployment>
  </platform>
  -->
   <platform name="default">
<applicationDeployment/>
</platform>
  </platforms>
</extension>
After I create it, I copy the .swc file and extension file sample with the Sample.jar file.
I extract the .swc file, copy the library.swf to folder Android-ARM,Default,Windows-86 and I create build.bat that contain the command like this
adt -package  -storetype PKCS12 -keystore senigo.p12 -storepass l10nk1ng -target ane senigo.extension.android.ane extension.xml -swc AndroidLib.swc -platform Android-ARM -C ./Android-ARM/ . -platform default -C ./default/ .
the I put the ane to Flex mobile project that I created:
I run it but got error #3500, I really confuse?? what's wrong with my code? is there something I wrong or I Miss it?
Please any one help me.. and when is already ane file can I debug it in Flex Mobile Project? I wanna looks the log.i code that i wrote but i confuse how to looking up in flash builder.
at the end, I wanna said Sorry if my english not very goods, and thanks, because wanna see my problem and thank you very much if You can gave me a solution's

Alex Rekish wrote:
Why you comment Windows-x86 in your extension.xml ?
I think that is a problem. You launch your application on Windows but ANE haven't got Windows-x86 implementation (also you don't include it while packaging). So your application use default implementation. But default implementation don't use any native code and cannot use ExtensionContext. And you got error.
If you don't need Windows-x86 native implementation than you need implement default implementation that different than Android-ARM. You don't need to use ExtensionContext in default implementation.
Thanks for you answer Alex Rekish, Sorry I didn't screen shoot all about the extension.xml. I comment it because the latest ANE that I build is contain Android-ARM and default. so I commented. but I already try it using just ANE that's just contain Android-ARM, with Android-ARM and windows-x86,and Android-ARM, and default, and Android-ARM,default,Windows-x86 the error still the same.
here the screen shoot, I embeded the ane that's i contain Windows-x86
in action script test.as I didn't change it anythings, I just play it on extension.xml to build the ane. is there any mistake over there? I interact with your answer that "If you don't need Windows-x86 native implementation than you need implement default implementation that different than Android-ARM. You don't need to use ExtensionContext in default implementation." I didn't need to user ExtensionContext? is means? in the actionscript? or in extension.xml? can you explained

Similar Messages

  • Adobe air windows/C++:Error #3500: The extension context does not have a method with the name

    I created a C++ dynamic dll called by air.
    If the dll depends on other dlls, then the error#3500 occured. However removed other dlls, it works.
    Could that mean the air can only call one dynamic dll that doesn't depend any other dlls?
    does anybody met this problem before, or let me know what can I do?

    Alex Rekish wrote:
    Why you comment Windows-x86 in your extension.xml ?
    I think that is a problem. You launch your application on Windows but ANE haven't got Windows-x86 implementation (also you don't include it while packaging). So your application use default implementation. But default implementation don't use any native code and cannot use ExtensionContext. And you got error.
    If you don't need Windows-x86 native implementation than you need implement default implementation that different than Android-ARM. You don't need to use ExtensionContext in default implementation.
    Thanks for you answer Alex Rekish, Sorry I didn't screen shoot all about the extension.xml. I comment it because the latest ANE that I build is contain Android-ARM and default. so I commented. but I already try it using just ANE that's just contain Android-ARM, with Android-ARM and windows-x86,and Android-ARM, and default, and Android-ARM,default,Windows-x86 the error still the same.
    here the screen shoot, I embeded the ane that's i contain Windows-x86
    in action script test.as I didn't change it anythings, I just play it on extension.xml to build the ane. is there any mistake over there? I interact with your answer that "If you don't need Windows-x86 native implementation than you need implement default implementation that different than Android-ARM. You don't need to use ExtensionContext in default implementation." I didn't need to user ExtensionContext? is means? in the actionscript? or in extension.xml? can you explained

  • I'm getting this error with bootcamp "The startup disk does not have enough space to be partitioned"

    Here's the story...
    I had a dual boot configuration on my mac with Mac OS X Lion and Windows XP (made with bootcamp).
    I decided to reinstall windows.
    I deleted the windows partition using BootCamp.
    Tried to recreate the Windows partition with Boot Camp and got: "The startup disk does not have enough space to be partitioned  You must have at least 10 GB of free space available"
    After reading several posts on this forum I decided to defrag the hard drive and try again. 
    The defrag did not work and I'm still getting the error, I have 22 gb of free space on my drive.
    Any suggestions?
    Also, I tried repair disk and repair permissions
    Hmm, my external harddrive says on the box "OS X 10.5.8 or higher (32-bit kernel only)"  Could the 32-bit requirement be an issue? Is lion 64-bit?

    Boot Camp must be able to allocate a contiguous block of space on the drive. If it cannot find 10 GBs of contiguous space, then you cannot create the Windows partition.
    You will have to backup your OS X partition to an external drive, boot from the external drive, use Disk Utility to repartition and reformat your hard drive back to a single volume, then restore your backup to the internal hard drive.
    Get an empty external hard drive and clone your internal drive to the external one.
    Boot from the external hard drive.
    Erase the internal hard drive.
    Restore the external clone to the internal hard drive.
    Clone the internal drive to the external drive
    Open Disk Utility from the Utilities folder.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.
    Restart the computer and after the chime press and hold down the OPTION key until the boot manager appears.  Select the icon for the external drive and click on the downward pointing arrow button.
    After startup do the following:
    Erase internal hard drive
    Open Disk Utility in your Utilities folder.
    After DU loads select your internal hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.  Do not quit Disk Utility.
    Restore the clone to the internal hard drive
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the internal hard drive. Source means the external startup drive.
    Note that the Source and Destination drives are swapped for this last procedure.

  • The problem is that I select as a pdf document does not open completely but leaves the mail. Also I can not open more even Ibook other documents already saved

    the problem is that I select as a pdf document does not open completely but leaves the mail. Also I can not open more even Ibook other documents already saved

    http://www.microsoft.com/mac/support
    http://answers.microsoft.com/en-us/mac/forum/macword?auth=1
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/microsoft-wor d-for-mac-2011-will-not-open-error/ecc42616-6f49-40bb-b8f5-e21c711ea359

  • On windows, while cloning error The destination file does not have write pe

    Hi,
    I am cloning in windows 2003, 11.5.10.2. After copying files while runnig
    adcfgclone.pl dbTier it is hanging at 13% and throwing error "The Destination file does not have write permissions ......\9.2.0\OPatch\perl_modules\Command.pm"
    i am not using MKS perl.
    i changed directory to $ORACLE_HOME\Apache\perl\5.*\MS*\
    perl .....\appsutil\clone\bin\adcfgclone.pl dbTierPlease any pointers will be helpful.
    Regards
    Taher

    Hi Taher;
    Please check:
    perl setting windows:
    Re: cloning oracle applications 11i on windows
    Also check:
    Setting the Perl Environment PERL5LIB [ID 395294.1]
    Common Perl Setup Issues and Solutions for E-Business Suite 11i [ID 404055.1]
    Regard
    Helios

  • HT201210 when trying to update my iphone 4S software to OS6 on itunes on my pc, i get an error request saying that i do not have permission to access the required reource?

    when trying to update my iphone 4S software to OS6 on itunes on my pc, i get an error request saying that i do not have permission to access the required resource?

    Are you using iTunes version 10.7?

  • I am using firefox 3.6.17 i upgraded it to 4.1.but it does not work properly sometimes it opens every website and most of the time it does not work . so what is the problem please help . thank you

    i am using firefox 3.6.17 i upgraded it to 4.1.but it does not work properly sometimes it opens every website and most of the time it does not work . so what is the problem please help . thank you

    Did you check your security software (firewall)?
    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process.
    See:
    * [[Server not found]]
    * [[Firewalls]]

  • Login problem in FaceTime in my MacBook Pro.... "The registering device does not have appropriate credentials."

    I am not able to loing FaceTime and have tried to get support from apple communities also, but none of those worked out.... Please help me to resolve "The registering device does not have appropriate credentials."

    Hello GAURAV,
    Thank you for providing the details of the issue you are experiencing with logging into FaceTime.  I recommend the following article:
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • Help with Error: $host does not have a method 'messageBox'

    Greetings Everyone:
    I get this error in my Log window:
    Error: $host does not have a method 'messageBox'
    I'm calling xfa.host.messageBox("MyMessage") from form's initialize event.
    What am I doing wroing?
    Acrobat Pro 9 - Java Script is enabled.
    Thanks in advance,
    iL

    Hi Steve:
    Thanks for your prompt responses. I appreicate that. I got the latest version.
    I'm OT on at home looking for more answers...I'm guessing it's an installation issue...
    I even tried console.println("Message"); CTRL + J and blank. I did this on Acrobat and LC.
    I'm gonna do a full unistnall and reinstall when I get back to office.
    The software is coming from our IS dept so I know it's squeaky clean.
    I did an Installer Repair but the problem has returned.
    I also can't use/access any xfa.layout memebers....
    I get this errors even on newly created forms...it hasn't crashed again so I can't get any bucket ID log yet.
    Here's whats on my office box that giving me grief:
    LC version 8.2.1.4029.1.523496
    Acrobat Pro 9
    Java Version 6 Update 15
    OS Platform: (HP Box)
    SQL Server 2008 Express (HotFix installed)
    VS2008,Office2k7.
    XP SP3
    iL

  • Re: Error: $host does not have a method 'messageBox'

    Hello Experts:
    I'm experiencing strange behavior on my LC Designer ES application.
    I recieve a warning and my console window (ctrl+j) doesn't show up nor does the message box.
    I cannot see xfa.layout members on the object drop-down menu. I have re-installed to no avail.
    This occurs on every all forms. The default script is set to JavaScript.
    Can anyone explain this behavior.  Is it an installation issue?
    Thank you for your time, iL.
    Log:
    Generating PDF Document...
    Script failed (language is javascript; context is xfa[0].form[0].form1[0])
    script = xfa.host.messageBox("My Message");
      Error: $host does not have a method 'messageBox'
    PDF generated successfully.
    Script:
    form1::initialize - (JavaScript, client)
         xfa.host.messageBox("My Message");
    System Info:
    LC version 8.2.1.4029.1.523496
    Acrobat Pro 9
    Java Version 6 Update 15
    SQL Server 2008 Express (HotFix installed)
    XP SP3, Office 2k7

    Hi Steve:
    Thanks for your prompt responses. I appreicate that. I got the latest version.
    I'm OT on at home looking for more answers...I'm guessing it's an installation issue...
    I even tried console.println("Message"); CTRL + J and blank. I did this on Acrobat and LC.
    I'm gonna do a full unistnall and reinstall when I get back to office.
    The software is coming from our IS dept so I know it's squeaky clean.
    I did an Installer Repair but the problem has returned.
    I also can't use/access any xfa.layout memebers....
    I get this errors even on newly created forms...it hasn't crashed again so I can't get any bucket ID log yet.
    Here's whats on my office box that giving me grief:
    LC version 8.2.1.4029.1.523496
    Acrobat Pro 9
    Java Version 6 Update 15
    OS Platform: (HP Box)
    SQL Server 2008 Express (HotFix installed)
    VS2008,Office2k7.
    XP SP3
    iL

  • How to find the deliveries which does not have Carnot and SHPCON

    I have a scenario where for some of the deliveries no CARNOT idoc or SHPCON idocs were not been created or went into error, i have verified it in by going to we05 and found there were many idcos in error and some of the idocs were been set to status 68 and they were manually processed by users.  is there any table where i can extract the deliveries which does not have SHPCON idocs created.

    hi,
    you have to take two steps in this:
    first step:
    Table EDIDC which contains EDI Control records.
    which stores the partner number,partner functions & message types.
    2nd step:
    take that partners and get deliveries from LIKP table.
    regards,
    balajia

  • Since I installed Lion on my macbook the LED light does not pulse when I close the screen - the sleep function does not work.

    Since I installed Lion on my macbook the LED light does not pulse when I close the screen - the sleep function does not work neither when chosen after pressing the button nor chosen in the apple menu..

    I have had the same problem but on another forum it was suggested that disabling internet sharing would solve this. This fix seems to work on my machine - why it works I do not understand

  • ITunes installation error: does not have program associated with it for performing this action

    Repeated tries to install iTunes continues to fail. Installing on Acer laptop using Windows 7.
    Error: does not have program associated with it for performing this action
    We have done the following: open Default programs, clicked associate a file type, clicked on change program button and selected a program to open with and clicked OK/enter.
    The installation continues. we get to the finish window; click finish.
    Next error: iTunes has been installed incorrectly.
    So, what do we do to get iTunes working?
    Thank you.

    Hi normeagle,
    Welcome to Apple Support Communities.
    You may find this article helpful for troubleshooting your iTunes installation:
    Trouble installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/HT1926
    Best,
    Jeremy

  • My Mac has FaceTime 2.0 and it is terrible, I tried to download a new copy but the apple store does not have 2.0 Also I chat was the way I communicated before I upgraded. What happened?

    I upgraded to Lion X and have been having problems with FaceTime my version is 2.0 and the Apple store does not have this version, what happened to the changes, I used to use IChat and it was great, this is no longer available. Any hints for video conferencing or for what is going on.

    You can video conference with the iChat component of Messages. Not sure if that's possible with Facetime. I have been using Facetime for video chat without any problems. Quality is no different than with iChat.

  • HT204408 When trying to log into face time I get the registering device does not have appropriate credentials, I have OSX 10.8.4 on my Mac Pro. I can log in using my IPAD

    When trying to log into face time I get the registering device does not have appropriate credentials after I sign in, I have OSX 10.8.4 on my Mac Pro. I can log into face time without a problem using my IPAD.>

    Please take each of the following steps that you haven't already tried, until the issue is reolved. If there's no resolution after Step 3, post your results.
    Step 1
    Sign out of iMessage in the Accounts tab of the preferences dialog, then sign back in.
    Step 2
    Log out of your user account and log back in.
    Step 3
    Boot in safe mode and test, then reboot as usual and test again.
    Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain iMacs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.

Maybe you are looking for

  • File to Http Scenario

    Hello All,         My Requirement is File to HTTP Scenario Where i would read a  xml file and send the data to webpage using Http receiver adapter. what are the steps for this scenario.  How to configure Http adapter. Thanks

  • Export to pdf of page with MIME images and analysis

    Hi, I have created a web application template where i have a table in its first row i further created a table and designed a static page including images from mime repository, in second row included a analysis based on a query, and in third row a but

  • Is there any function module to give absolute value of a number?

    Hi, Is there any function module to give absolute value of a number? That has similar functionality to the Built in Function ABS. Please let me know. Thanks, cs

  • Need help for Unlocking 6630.

    Hello, I have a Nokia 6630 from Vodafone UK, it was locked, and I got the Unlock Code. When I enter the Unlock Code it says "Not Allowed" And I remember I tried before couple of Codes in the mobile. Is the phone is Hardlocked now? Can this problem be

  • Does anyone know?

    my ipod is kaput Posted on: Jun 21, 2006 10:19 PM, by user: oldyipod -- Relevance: 100% "ok it started skipping... and then it has been fine. then it froze. i reset it... and i wanted to listen to my music... and everything was gone. i tried to plug