Tip : AS3 Libraries and mobiles applications

This is a quick tip.
If you need to serialize AS objects to XML (and deserialize), you will probably look for an existing library for ActionScript. You must know that the major part of those libraries aren't made for mobiles applications.
Those libraries will usualy work on Android but might crash your application if you deploy for iOS. This is usualy because the library try to use IO methods.
I tried asx3m and it crashes on iOS.
I suggest you to use FlexXB. This one worked for my project. Unfortunately, you will have to add anotations in your classes or create custom marshallers.
I also tried to use Blooddy crypto library to encode JPEG (this library is way faster than Adobe one). It works well on Android, but it crashes on iOS. The md5 hasher of this library is also unstable on mobiles devices (but work well in the Flex Emulator). On Android, the first hash is not accurate. You must hash 1 time to "initialise" the hash. On iOS, the hash is never accurate.
Libraries that are not made for mobiles should be avoid when possible, even if they offer nice features. If you are forced to use one, I suggest you to check the sources to see if they try to call IO methods.
Have fun coding!

really usefull  many thanks

Similar Messages

  • Antivirus scan and mobile applications files

    Hi, Folks.
    My nightly full systems disk antivirus scan takes a bit of time when handling <my account>/music/itunes/mobile applications (folder).  Is it strictly necessary to scan this folder given that, in theory, it's contents come from Apple and and are aimed at iOS devices?  Another way to word the question, I suppose, is: is it a low risk to have my antivirus scanner skip the Mobile Applications folder?
    I assume, however, that skipping my iTunes media folders would present a considerably greater risk.
    Thanks.
    Don

    Linc.
    Your response is useless and tedious.  All you had to do to make it of great interest is explain, in a semi-technical manner, *why* antivirus software is useless on Mac's.  You see, if you had, then I would have been able to judge for myself and might even have joined you in your enthusiasm. 
    BTW, the other day,  my antivirus software did point out that MACDefender.zip was, shall we say, suspicious.  Of course, by then, we all knew that, right?
    How about trying again with a more informative response.  Even a url or two would be better, yes?
    Don

  • Why are there iOS Applications AND mobile Applications folders?

    I am cleaning up my hard drive for 2013 and have disovered that my iTunes folder is the largest folder. Good for me.
    Within my itunes folder are both an iOS Applications folder and a Mobile Applications folder They both have recent Modifed Dates and there is some .ipa overlap in terms of applications and serial numbers, it seems like the older stuff is in the iOS Applications folder. I own both an iPad and iPhone but cannot seem to fathom any consistency as to which apps go where.
    Do I need both of these and if not is there an easy way to resolve the "problem"? (Assuming it really is a problem.)

    Interesting, I only have the Mobile Applications folder. If there are any applications that appear in the iOS folder but not in the mobile folder, you can move them over to the mobile folder, and then delete the other one.

  • J2Me and mobile application interact with PHP

    Our company intend to develop a mobile application to enable customer to login to our url by using mobile phone which enable to update their contact details and check their accounts status. As our Web-server does not equipped with any Java Server, we will use a php program/script to listen to any incoming string from the client's connection.
    As we are new to java /J2ME programming; Is there any sample code that we can refer for this project.
    Please Help.

    yhkok wrote:
    Ok. I managed to post data. and the domain returned a page content like "true" or "false", how can I capture the content in order for me to process next step ?I don't mean to be mean but is there nobody at your company that knows how to do this? It conerns me a bit that you don't seem to really have a grasp on how any of this works which is going to be problematic for your project I think.
    I don't know what you mean by "page content like true or false". To capture the content you use HttpURLConnection and read the content of the returned InputStream. As far as what you do with this content from there I can't say. I don't know if the server is sending you some HTML which has the words true or false somewhere in it, or XML with some sort of response code, or just plain text with true or false, or something else entirely.
    I think you should read the networking tutorial, at least the part on working with URLs [http://java.sun.com/docs/books/tutorial/networking/index.html]

  • Flex 4.5 problem using image in Mobile Application (Android)

    I have a problem using flex and mobile application...
    I have an image with path = "/mnt/sdcard/images/20120202172020990.jpg"
    Simply using
         <s:Image id="image" source="/mnt/sdcard/images/20120202172020990.jpg" />
    Get me an empty image on device, still using it on computer (desktop build / debug) it works fine...
    I have enabled every kind of permission in the app.xml
    Why I got this error?

    I actually solved the problem using:
    image.source = File.desktopDirectory.resolvePath(file_name).url;
    using instead this one it will work only under windows...
    image.source = File.desktopDirectory.resolvePath(file_name).nativePath;
    I don't know if it's a bug or whatelse, but I think that the source property of Image passing a filename that start with / (/ is root for unix based OS, android, linux, ios, etc), will take is as a relative path instead of complete path...

  • BSP and PDA application

    I have developed a small was bsp application for Pocket PC running on WIFI and GPRS.
    It's very strange. If I test application on my windows explorer all works perfectly but when I try on a pocket PC when I click on a button on second visable is the same page is reloaded but a (auto)attribute is modified ...
    Is there some restriction when we develop a was application for Internet Explorer for Pocket PC ?

    Actually there is a SAP Note regarding what designs and everything work on the PDA's if you search this forum you'll find quite a bit on PDA and MOBILE applications.

  • DVR Upgrade; Remove Old DVRs from List on Web and Mobile User Interfaces

    I have upgraded two HD DVRs to the hardware with more storage space.  The new DVRs appear on the list of available DVRs on both the web and mobile applications for DVR management.  The old, uninstalled DVRs also continue to appear.   How can I remove the old DVRs from these lists?

    Provided you returned the old DVR's using the materials and instructions that should have been provided when you received your new units, the old DVR's should disappear from your account in a week or two after they've been received and processed by Verizon.   I just renamed mine to "Returned" or something like that so that I would know to ignore them until they went away.
    If it takes more than one full billing cycle and they still haven't disappeared, then I'd call to find out why they are still in your account (i.e. have your tracking information ready because it sounds like they may have gotten lost along the way).

  • Shared codebase for both mobile and web applications?

    I've been developing a mobile application for a while now. It runs on iOS and Android as well as on the desktop as an AIR app. This is great and I'm very excited about it. However, last week I was asked why I couldn't export a version of the app that ran within a web browser. I said that I assumed I could and that I would look into it.
    But why would you want to run mobile code on the desktop?
    A couple of reasons:
    Greater re-use of code. This doesn't make sense in all cases but it does in many cases. (I won't elaborate because I think this is self-evident. If you disagree I'd be happy to talk about it but I'd rather not clog this description with it.)
    Quicker/easier client demos. Rather than having to install an apk or an ipa on a mobile device, I can just send a URL.
    So what have I found? Well, from what I've tried so far.. it.. doesn't work. Or rather I haven't been able to make it work.
    I started by creating a Flex Library project for all shared code. Then I created 2 application projects that reference it- one for mobile and one for web. The mobile project works fine but the web project does not. Here's what I've tried so far to make it work:
    I tried adding the mobilecomponents.swc and the mobile.swc theme to my web project so that Flash Builder knows about MobileSkin (and other mobile-only classes). This enables my app to compile but when I launch it immediately throws a runtime error inside of UIComponent: VerifyError: Error #1014: Class flash.text::StageText could not be found. I've found very little about this error, and the one tip I did find (adding the --swf-version=13 compiler option) does not work.
    I tried using conditional compilation to control which class my skin components inherited from: MobileSkin or SparkSkin. This was just a quick experiment to see if it worked. I know it's disgusting and not a production solution. My thinking though was that if MobileSkin was really just an optimized version of SparkSkin, my skins should be okay inheriting from either. This didn't work right away- app wouldn't compile b'c certain methods were missing (ex. layoutContents) and so I bailed on it because it felt dirty to begin with.
    I tried replacing MobileSkin with UIComponent as the super class for all of my skins thinking that MobileSkin was probably just a lightweight subclass of UIComponent anyway. This approach resulted in some compiler errors at first (ex. no layoutContents method, no measuredDefaultWidth/measuredDefaultHeight properties, addChild vs addElement, etc.). Once those issues were resolved the app compiled but crashed with runtime errors inside of UIComponent's "getState" method. (Looks like MobileSkin overrides this method to prevent UIComponent's default behavior.)
    So none of those approaches have worked for me so far... but what about you guys? I have no hopes of Adobe reading this thread or responding to it in any way, but I would love to hear from other people in the community. Have you encountered this issue yet? Were you able to make it work or can you spot any obvious oversights I've made in the methods I mentioned trying above? Thanks in advance if you can.

    Update: I've been able to make progress with the first route mentioned above: adding the mobilecomponents.swc and the mobile.swc theme to my web project
    Turns out that Flash Builder had led me wrong in this regard. Adding the mobile SWCs to your Library project with the "merged into code" setting results in the compiler warning:
    The swc '/Applications/Adobe Flash Builder 4.6/sdks/4.6.0/frameworks/themes/Mobile/mobile.swc' has style defaults and is in the library-path, which means dependencies will be linked in without the styles.  This can cause applications, which use the output swc, to have missing skins.  The swc should be put in the external-library-path.
    Seeing this the first time, I changed my linkage type to "External" and the warning went away. Then in my web project, I also added the mobile SWCs and set the linkage type to "merged into code" there. Flash Builder seemed happy with that approach, but upon running my application I got bizarre runtime errors (as mentioned above).
    Turns out that my first attempt was the correct way. Set the linkage type on the library project to "merged into code" and then don't re-link from your web project. Flash Builder will warn you about it but ignore the warning. Things seem to work pretty well for the most part now! I have an issue or two to look into (ex. List component doens't scroll) but things look pretty promising overall!

  • ADF Mobile application and DMS synchronization

    Hi all,
    I'm working on a demo based on a multi-platform mobile application working mostly offline (using a local database which must be manually synced when the device is online).
    I've started watching at ADF Mobile Framework and Oracle Database Mobile Server.
    Now I'm a little confused about how these two components interact each others.
    Looking at some video/documentation I see that using ADF MF I can create a mobile APP for iOS/Android writing pure java code. Then I can deploy the application using a deployment profile to obtain my application, ready to be installed on my device.
    The question is, how my mobile app can be kept synced to a MW running DMS?
    I've read Invoking Synchronization in Applications With the Mobile Sync APIs,  Using an Android Application on the SQLite Mobile Client , Integrate ADFm applications into Database Mobile Server
    but I didn't get how that is supposed to work.
    It seems like I have to add osync_me.jar library to my project, set parameters for my ose.ini file (using SetParam.run) then create a OSESession and use sync() method. This is supposed to get from DMS delta modification and put into it my modifications performed locally.
    That's it? Do I need something more?
    Here How to Integrate Oracle Adf Mobile App and DMS? there's a very similar question without public response, is there any detailed documentation about this topic?
    thank you all

    Thank you for the answer.
    The link you suggested is the one where I've found http://www.oracle.com/technetwork/database/database-mobile-server/documentation/dmstoadfm-2228124.pdf
    Looking at that document it seems I should import libraries, edit programmatically ose.ini and than invoke OSESession.sync() using my user e pass as stated in my previous post, and everything is supposed to work fine.
    But I'm a bit confused because looking at more tutorials and documentation I saw more steps like application publication through mobile server (packaging wizard), installation of oracle update app on mobile device and so on... and I didn't get what these steps are useful for and if they are mandatory for ADFm developed app too? (I'm referring to Database Mobile Server Demonstration - YouTube for example)
    Thank you

  • I am using an expense tracker and when I export the file for use it says it is in location /var/mobile/applications/666E-4BC6-8FF1-50CAD35FA541/documents/MyExpenses.csv where do I find this? Assistance greatly appreciated

    I am using an expense tracker and when I export the file for use it says it is in location /var/mobile/applications/666E-4BC6-8FF1-50CAD35FA541/documents/MyExpenses.csv where do I find this? Assistance greatly appreciated

    Attached is Dennis Linam’s Audition – “Log File” and “Log – Last File”
    Contact information Dennis [email protected]
    Previous contact information with your organization (DURIM):
    Dennis - i just finished my audition trial and bought the subscription the 2014 version.
    created by durin in Audition CS5.5, CS6 & CC - View the full discussion 
    DURIM - Okay.  I would expect the "Cache Warning" message because your default directories would not be the same as the ones in the settings file I generated.
    If you go back to the "7.0" directory and open the "Logs" folder, can you copy the "Audition Log.txt" file and send it as an attachment to [email protected]?  We'll take a look in that logfile and see if it gives us more information about why this is failing now.
    Also, do you have any other Adobe applications installed on this machine, such as Premiere Pro?  If so, do they launch as expected or fail as well?
    I do have the trial Pro version of Adobe reader, but I have not activated it, because I fear the same thing will happen did it. I cannot afford to activate the subscription for that product and take the chance of it not working either. I depend on those two programs religiously. Here is the files that you requested. I appreciate any help you can give me to get this audition program started
    Audition Log- file
    Ticks = 16       C:\Program Files (x86)\Common Files\Adobe\dynamiclink\7.0\dynamiclinkmanager.exe
    Sent from Windows Mail

  • List View Report with pipelined function in Mobile application and ORA-01007: variable not in select list

    Hi!
    I have a problem with List View Report in mobile application (theme 50 in apex) after updating to apex 4.2.2. I created Report -> List View. I used select from pipelined function in Region Source. Then when page is running and submited three times (or refreshed three times) I get an error:
    Error during rendering of region "LIST VIEW".
    ORA-01007: variable not in select list
    Technical Info (only visible for developers)
    is_internal_error: true
    apex_error_code: APEX.REGION.UNHANDLED_ERROR
    ora_sqlcode: -1007
    ora_sqlerrm: ORA-01007: variable not in select list
    component.type: APEX_APPLICATION_PAGE_REGIONS
    component.id: 21230833903737364557
    component.name: LIST VIEW
    error_backtrace:
         ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS", line 4613
         ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS", line 3220
    I get this error only when I use select from pipelined function in Region Source (for example: "select value1, value2 from table(some_pipelined_function(param1, param2)) ").
    You can check it on http://apex.oracle.com/pls/apex/f?p=50591 (login - demo, password - demo).
    In this application:
    - I created package TAB_TYPES_PKG:
    create or replace PACKAGE TAB_TYPES_PKG IS
    TYPE cur_rest_r IS RECORD (
        STR_NAME          VARCHAR2(128),
        INFO              VARCHAR2(128)
    TYPE cur_rest_t IS TABLE OF cur_rest_r;
    END TAB_TYPES_PKG;
    - I created pipelined function TEST_FUNC:
    create or replace
    FUNCTION TEST_FUNC
    RETURN TAB_TYPES_PKG.cur_rest_t  PIPELINED IS
    r_cur_rest TAB_TYPES_PKG.cur_rest_r;
    BEGIN
    r_cur_rest.STR_NAME := 'ROW 1';
    r_cur_rest.INFO := '10';
    PIPE ROW (r_cur_rest);
    r_cur_rest.STR_NAME := 'ROW 2';
    r_cur_rest.INFO := '20';
    PIPE ROW (r_cur_rest);
    r_cur_rest.STR_NAME := 'ROW 3';
    r_cur_rest.INFO := '30';
    PIPE ROW (r_cur_rest);
    r_cur_rest.STR_NAME := 'ROW 4';
    r_cur_rest.INFO := '40';
    PIPE ROW (r_cur_rest);
    r_cur_rest.STR_NAME := 'ROW 5';
    r_cur_rest.INFO := '50';
    PIPE ROW (r_cur_rest);
    RETURN;
    END TEST_FUNC;
    - I created List View Report on Page 1:
    Region Source:
    SELECT str_name,
           info
    FROM TABLE (TEST_FUNC)
    We can see error ORA-01007 after refresing (or submiting) Page 1 three times or more.
    How to fix it?

    Hi all
    I'm experiencing the same issue.  Predictably on every third refresh I receive:
    Error
    Error during rendering of region "Results".
    ORA-01007: variable not in select list
    Technical Info (only visible for developers)
    is_internal_error: true
    apex_error_code: APEX.REGION.UNHANDLED_ERROR
    ora_sqlcode: -1007
    ora_sqlerrm: ORA-01007: variable not in select list
    component.type: APEX_APPLICATION_PAGE_REGIONS
    component.id: 6910805644140264
    component.name: Results
    error_backtrace: ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS", line 4613 ORA-06512: at "APEX_040200.WWV_FLOW_DISP_PAGE_PLUGS", line 3220
    OK
    I am running Application Express 4.2.2.00.11 on GlassFish 4 using Apex Listener 2.0.3.221.10.13.
    Please note: this works perfectly using a classic report in my desktop application; however, no joy on the mobile side with a list view.  I will use a classic report in the interim.
    My region source is as follows:
    SELECT description AS "DESCRIPTION", reference AS "REFERENCE" FROM TABLE(AUTOCOMPLETE_LIST_VIEW_FNC('RESULTS'))
    The procedure:
      FUNCTION AUTOCOMPLETE_LIST_VIEW_FNC(
          p_collection_name IN VARCHAR2)
        RETURN list_row_table_type
      AS
        v_tab list_row_table_type := list_row_table_type();
      BEGIN
        DECLARE
          jsonarray json_list;
          jsonobj json;
          json_clob CLOB;
        BEGIN
          SELECT clob001
          INTO json_clob
          FROM apex_collections
          WHERE collection_name = p_collection_name;
          jsonobj              := json(json_clob);
          jsonarray            := json_ext.get_json_list(jsonobj, 'predictions');
          FOR i IN 1..jsonArray.count
          LOOP
            jsonobj := json(jsonArray.get(i));
            v_tab.extend;
            v_tab(v_tab.LAST) := list_row_type(json_ext.get_string(jsonobj, 'description'), json_ext.get_string(jsonobj, 'reference'));
          END LOOP;
          RETURN(v_tab);
        END;  
      END AUTOCOMPLETE_LIST_VIEW_FNC;
    Thanks!
    Tim

  • Help required on MSCA and WMS - Mobile Application

    Hi all
    I need to make some changes in MSCA - mobile application. As I am new to mobile applications.. I would like to know how can we get the page details of the menu or the page to get the exact filename which is being referred. This is so that I can download and make changes to the same file.
    Regards
    Ali

    Hi Aliv,
    The Oracle Whitepaper "Customization of Oracle Mobile Supply Chain
    Applications and Oracle Warehouse Management System" suggests how an
    application developer or consultant could customize the mobile pages to
    provide a specific look and feel to the customer or to support a company's
    specific business logic. This is available on Metalink here
    @ https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_databa
    se_id=NOT&p_id=301926.1
    The "Advanced Barcode Strategies" White paper may also be a useful source of
    information. This provides details on out of order scanning and custom scan
    capabilities This is available on metalink here:
    @ https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_databa
    se_id=NOT&p_id=297992.1

  • Using project libraries for both web-based and AIR applications

    I need to develop substantial code to build both web-based and AIR applications.  Yes, they will have different features, especially when it comes to accessing files on the local file system.
    However, 98% of the code can be shared.
    I want to use a project library that can be used for both types of applications. Maybe using conditional compile when required to not use AIR API's in a web-based application.
    I found this (somewhat old) warning:
    Include Adobe AIR libraries Select this option if your library must use AIR features, such as access to the AIR APIs. Flex Builder then changes the library path of this new Flex Library project so that it includes airglobal.swc and airframework.swc. Web-based Flex projects cannot use this library.
    Do not select this option if you are writing a generic library intended to be used only in a web-based Flex application, or in either a web-based or AIR-based application.
    Does this apply to Flash Builder 4.5?

    I have found a workaround, but it's quite clumsy, involving a transfer vector (in old-fashioned terms) in the main application for each function in the AIR library.
    I have created a library for AIR classes only (fourdtext.fileOperations is there). 
    The AIR application provides "Function" values that any other code in the general-purpose libraries can use.
    It works, but it's nasty.
    In Main.mxml:
    import com.fourdtext.fileOperations.AxFiles;
    // this gets a list of native path strings, from and array of "File" objects
    public var AxGetListFunction:Function = AxGetListRedirect;
    private function AxGetListRedirect(list:Array):Vector.<String>{
        return AxFiles.AxGetList(list);
    In general-purpose code:
    var list:Array = event.dragSource.dataForFormat("air:file list") as Array;
    var AxGetList:Function = FlexGlobals.topLevelApplication.AxGetListFunction;
    listFiles = AxGetList(list);

  • How to connect and query the sql database in mobile application

    Hello,
    Can any one say how to connect the sql database from the j2me application.
    I have got some info that only through servlet or jsp only we can connect the database and from their we should get the info or query in mobile application.
    Is it true? and can i have any sample codes or white paper or guildlines.
    It would be more useful form my project.
    Thanks in advance.
    regards,
    sara

    Hi David,
    According to your description, when you add Windows Azure Mobile Services to a Window Phone 8 app, then store app data in the new mobile service. I recommend you post the related question on the Windows Azure Mobile Services Forums at
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=azuremobile .It is appropriate and more experts will assist you.
    In addition, there are the details about creating a Windows Phone app connected to your mobile service.
    http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-wp8/
    http://www.windowsazure.com/en-us/develop/mobile/tutorials/get-started-with-data-wp8/
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Mobile application to connect Tweeter and Facebook.

    Hi,
    I want to develop a mobile app which will help user to post message on Tweeter and Facebook, I have searched a lot and found that I need to user OAUTH for Tweeter. Has anyone implemented Tweeter and Facebook API in mobile applications? Please guide me how can I achieve this.
    Thanks,
    Mahesh.

    http://supergeekery.com/geekblog/comments/setting_facebook_status_with_flash_the_easy_way
    http://supergeekery.com/geekblog/comments/setting_facebook_status_with_flash_the_hard_way

Maybe you are looking for

  • Android: Publish/Testing my app on an Android Device

    Hello, i got this problem with publishing/testing my app... I created an app with adobe flash cs6. While i tried to test it on a Galaxy GT-S5570, while publishing i got an error wich says that "Device Error: please check if there is enough space on t

  • Weird repainting bug

    Hi, I got this bug as shown in the pic.. [http://www.colin-java.co.uk/pics/bug.png] When the white square on the upper left is dragged, a chunk of the cube goes missing. Its only on the image shown behind the white square (on the cube) that gets cut

  • Extract IP Address from a string

    Hello All, I have a string which i get from a snmp trap, looks like this. "SArobot/"10.16.87.243"". This string can also be like "adadafas". How can i check if ipaddress is there in the string and if present, extract only the IP address?

  • IPhone 5 unable to sync with iTunes Macbook 2007

    I have the Macbook 2007 laptop, and I am unable to update my itunes because i am not running Mac OS C 7 or higher. I am not going to get a newer laptop because my new iphone will not sync with my old data, and I have photos that I do not want to lose

  • Trackball software problem

    hello I am very dissapointed with a bb8900. What shouk be the pleasent RIM experience is a nightmare. The trackball does not react, thean after time reacts normaly, then after some time not again etc. etc. In the beginning the log whipe (alt+lglg) he