How to get Android IMEI / UDID with Flash CS6?

Hi. I understand that a Native Extension is needed to get the IMEI or UDID of the Android device. I found one here:
http://blog.snowflax.com/native-imei-action-script-extension-for-android/
I ran the compiled sample this site provided and it retrieved my IMEI fine, so I know it works.
However, the code for this sample is in Flex. When I tried to incorporate it into my Flash CS6 .fla it didn't work. There were no errors, but when I ran in on the Android device nothing happened when I clicked on the button to retrieve the IMEI. I don't know what went wrong. Here is what I did:
1. First, I imported the "IMEI.ane" file using the steps below:
http://www.adobe.com/devnet/air/articles/using-ane-in-flash.html
2. Then in my AIR 3.2 for Android settings I included the "IMEI.ane" file in the publish General settings.
3. In my program there is a textbox and a button. When the button is clicked with a mouse, it calls the function below and places the returned string in the textbox. I know the string to textbox part works, however, when I call the function below it doesn't.
       import com.chi.imei.Deviceimei;
       import com.chi.imei.DeviceStats;
              private function mGetImei():String
                     var tImeiStr:String = " ";
                     var obj:DeviceStats = Deviceimei.deviceimei.deviceinfo();
                     tImeiStr = obj.imei.toString();
                     return tImeiStr;
4. My FlashDevelop intellisense recognizes all the lines above so I think it properly found the classes. However, it doesn't work on the device! Can anyone tell me how to fix this?
Thank you!

As usual, this problem which frustrated me for days had a very simple solution. To others who also ran into the same problem, remember to set Android's READ_PHONE_STATE permission to TRUE. And voila! It will work.

Similar Messages

  • Difficulty with Licensing Android apps developed with Flash CS6

    Hi, I'm heading down many a blind alley with this one. I have developed an Android app using Flash CS6 and it is ready to be published on Google Play. However, as it is a paid app, it is strongly advised to license it to protect it.
    There is a bit of documentation on how to do this with Flash Builder, but I need to be able to do it with Flash. The following link provides some info, though it is far too confusing for me to follow.
    http://www.rybram.com/index.php/blog/61-air-30-android-licensing-tutorial-project
    The Android developer page has info about it here, but it keeps refering to the Manifest file.
    http://developer.android.com/google/play/licensing/adding-licensing.html
    I've seen a few other threads on here touching on this subject, but I have not had any luck with them. There's lots of references to Air Native Extensions that handle licensing but I don't understand them.
    I'm quite surprised that there is no support from Adobe on such a fundamental stage of the app production. Basically, anyone developing Android apps using the otherwise fantastic Flash CS6 will have trouble protecting their apps with licenses once published, meaning that anyone can just grab the .apk file and redistribute it anywhere.

    I think what I need is the idiot's guide
    As long as you don`t make this attudude a habit
    It might be best that you hire someone to look into the matter, pushing out sth. on the market with no real plan
    I'm heading down many a blind alley with this one
    could get you into serious trouble with customers that buy your product, experiencing trouble with some kind of DRM you are blindfoldedly implementing and having no clue how to fix it.
    Just saying.
    You wouldn`t surely feel comfortably buying from a developer who is admitting to have no clue what he/she is doing, would you?

  • How to get BC to work with DW CS6

    When I click on import BC site a screen flashes so fast I cannot even see what it says.  I have the BC extension downloaded.  Please help!

    Possibly related:
    BC servers are being migrated to Amazon beginning Aug 31.
    http://www.businesscatalyst.com/bc-blog/north-american-data-center-migration-complete 
    IMPORTANT: Updating your DNS settings
    http://www.businesscatalyst.com/bc-blog/aws_migration_details
    If you have further problems connecting to your BC sites, contact support / online chat.
    Nancy O.

  • How to get the last version of flash in MSI format automatically?

    How to get the last version of flash in MSI format automatically?
    Roberto Neigenfind
    Bravo Tecnologia
    www.bravotecnologia.com.br

    Hi Barbara,
    Flash Professional CS5.5 is a 32-bit application which can be installed on computers with either 32-bit or 64-bit operating systems.
    You can purchase this by Adobe's backward Licensing policy :
    " Adobe allows program members to order a current-version license but use a prior version. These members can contact Adobe Customer Service to request a serial number for the earlier version if they do not already have one. Prior-version software is available via ESD and can be purchased through standard resellers. The program member must follow all guidelines of the current-version EULA. "
    Please check the doc : http://www.adobe.com/volume-licensing/policies.html

  • Has anyone figured out how to get speech recognition working with sticky keys enabled on mountain lion?

    I'm trying to use speech recognition to input text on my iMac running the latest mountain lion, 10.8.3.
    I have sticky keys enabled.
    When I try to start speaking by pressing the function key twice nothing happens. I can only get it to work if I disable sticky keys.
    The same problem occurs with all the other modifier keys as shortcut, they do not work with sticky keys.
    When I try to select a different shortcut, I am unable to select a two key combination, but am limited to one.
    If I select the F6 key, or any other single key, I am able to start speech recognition. However the second time that I press the key, it does not stop recognition and process my words. Instead, it restarts the recognition.
    Has anyone figured out how to get speech recognition working with sticky keys enabled?
    Or a way to get an individual key shortcut to start on the first press and process it on the second?
    Or a way to get key combinations to work, as specified by the help:
    Dictation On and Off
    To use Dictation, click On.
    When you’re ready to dictate text, place the insertion point where you want the dictated text to appear and press the Fn (function) key twice. When you see the lighted microphone icon and hear a beep, the microphone is ready for you to speak your text.
    Shortcut
    By default, you press the Fn (Function) key twice to start dictation. If you like, you can choose a different shortcut from the menu.
    To create a shortcut that’s not in the list, choose Customize, and then press the keys you want to use. You can press two or more keys to create your shortcut.

    I noticed with version 10.8.4 of OS X that I am now able to select F6 to activate, and the return key to complete the speech recognition. This is still different than the description of how these should function that's included in the help, but at least it's an improvement.

  • How to get gui_download and gui_upload with popup filename?

    how to get gui_download and gui_upload with popup filename?

    Here is a short example.
    report zrich_0003 .
    data: ifiletab type filetable.
    data: xfiletab like line of ifiletab.
    data: xstring type string.
    data: rc type i.
    data: itab type table of string.
    data: xtab type string.
    start-of-selection.
      call method cl_gui_frontend_services=>file_open_dialog
        changing
          file_table              = ifiletab
          rc                      = rc.
      read table ifiletab into xfiletab index 1.
      xstring = xfiletab-filename.
      check not xstring is initial.
      call method cl_gui_frontend_services=>gui_upload
        exporting
          filename                = xstring
      changing
        data_tab                = itab.
      loop at itab into xtab.
        write:/ xtab.
      endloop.
    Regards,
    Rich Heilman

  • How to get the contents associated with a component.

    How to get the contents associated with a component.
    Like i have 2 buttons and i want to get the contents associated with these button without clicking them i.e without firing the event.
    By Contents i mean, whatever things we get after firing the event,we get some other window and some thing is added to the current page and so on.

    grab all the code inside the actionPerformed(ActionEvent e) method

  • How to get a minus sign with the cost  field in ALV.

    Hi ,
    How to get a minus sign with the cost field in ALV.
    The Ouput will be displayed like  Rs -1500 instead of 1500-
    I can't use concatenate also as i may have to use the sum functionality of ALV .
    Cheers
    Sunny

    Hi sunny,
    1. The OTHER FIELD
       has to be character field of say length 15.
    2. Write the original numeric value to
       this character field (in a loop)
    3. But simply writing won't help.
    4. use this kind of logic.
    5.
    REPORT abc.
    DATA : m TYPE i.
    DATA : chr(15) TYPE c.
    m = -100.
    WRITE m TO chr.
    IF m < 0.
      SHIFT chr RIGHT BY 1 PLACES.
      CONDENSE chr.
      CONCATENATE '-' chr INTO chr.
    ENDIF.
    WRITE chr.
    regards,
    amit m.

  • How to get a copy of stagecraft (flash lite 3.1) source distribution

    Hi everyone,
    I am a PhD student doing embedded system development. As the flash lite for digital home is pretty attractive to me, I am wondering how to get a copy of stagecraft (flash lite 3.1) source distribution. I cannot find download link anywhere. Does it require a license or is it free? Can anybody tell me how to get a copy of that. Your help will be highly appreciated.
    Seamus

    Adobe usually license to OEMs or operators on a per-unit royalty basis for each device. Not for small clients or individuals. You can get commercial-grade flash player source code from Zeeis, many embedded devices vendor use Zeeis Embedded Flash Layer to play SWF files.

  • How to get vlan tag programe with mac book air

    how to get vlan tag programe with mac book air,i'm using the usb ethernet adapter

    For prompt help contact TATA.
    For more on this: https://discussions.apple.com/thread/3680625?tstart=270

  • How to get an error icon with tool tip in a displaying table   in a particu

    How to get an error icon with tool tip in a displaying table   in a particular field..
    Thanks.

    Hi,
    In the context  create an attribute of type string .
    Create the attribute in the node which you bind for table.
    In the layout .
    1.create a Table UI element.
    2 create binding for UI element.
    3Right click on the Table UI and select insert table column.
    4.once the table column is inserted right click on table column and select insert cell editor.
    5.create the cell editor of the type image.
    6.Bind the source property of the image to the attribute in the node which you have created.
    so depending on what image(type of icon) needs to be displayed set the attibute accordingly.
    refer to the link for image :
    [http://help.sap.com/saphelp_nw70ehp1/helpdata/en/d1/af8841349e1909e10000000a155106/frameset.htm]
    Priya

  • How can I link my database with flash?

    Hi…
    How can I link my database with flash to display image (to
    display it in master details page)
    Please your help ASAP.
    Regards,

    You could use some server-side scripting like PHP or ASP.
    http://www.kirupa.com/web/index.htm

  • HT4061 My ipad was stolen, i would like to ask how to get the IMEI using the serial number DL*******FJ1.

    my ipad 2 was stolen last january 7, 2013.  i want to know how to get the IMEI.  unfortunately i was not able to connect it to my pc even once.  but i can tract my ipad using my find my iphone in icloud. the serial no is DL*******FJ1.

    Do you have the original retail box the tablet came in? If so its where the barcode is located, ideally labeled as the IMEI.

  • How to get phone IMEI code using J2ME?

    Is it possible to get the IMEI code for Nokia N70 / N90 / N91 / 6620 / 6600 / 6670/ 6682 / 7610 /9500 and Motorola SLVR / Motorola RAZR V3i, RAZR V3x?
    If possible, how to get the IMEI code?
    Thanks in advance..

    http://forum.java.sun.com/thread.jspa?forumID=76&threadID=736302
    http://onesearch.sun.com/search/onesearch/index.jsp?qt=imei&qp_name=null&subCat=siteforumid%3Ajava76&site=dev&dftab=siteforumid%3Ajava76&chooseCat=javaall&col=developer-forums

  • HT4061 how i get my imei no if i lost my phone?

    how i get my imei no if i lost my phone?/

    Call your carrier, as they have a record of your phone's IMEI number.

Maybe you are looking for

  • Itunes shuts down on optimizing photos during sync

    Hello So when I connect my iPad it begins to sync and it goes through steps 1-5 with no problem.  when it gets to step 6 it says it is optimizing photos 1-17 and every time it gets to number 13 or 14 windows dialog shows up and says itunes has to clo

  • DBMS_XMLSave.insertXML Fails on decimal format

    DBMS_XMLSave.insertXML Fails on decimal format The following example fails when using collections of complex elements. The error is: java.lang.NumberFormatException: 1.0' Example is: create table test_parent(p_id NUMBER(18), test_col number(10)) alte

  • Incoming Vs Outgoing Excise Invoices...

    Hi All, Is there any link between, Incoming Excise invoice Vs Outgoing Excise invoice? In any table can i get data like against 1 incoming Excise invoice How many Excise invoices are created? Reg, Amol

  • Qosmio F60 - Change screen settings when using DVD player

    When I try to play DVD using BD DVD Player a message appears that tell me to change the screen setting I have followed their instruction to no availo. I am running Windows 7. The DVD plays on windows media ok. Any help would be appreciated

  • Serialization using XMLEncoder/XMLDecoder - problems for SpringLayout

    I am using JDK 1.4.0 (obviously, as I have problems with XMLEncoder... :o) What I need to do is create a JFrame with some Swing components inside (JPanel's, JLabel's, etc.), to save it as an XML file and be able to restore it later. Everything went O