Adobe Air for iOS - SQLError: ' #3115 error ' no such table ".

I'm developing Adobe Air application for iOS with sqlite on that. When running on my local machine, it worked like charm (add, edit and delete). Unfortunately, when tried to run on the iPAD, it gives me the following error:

SQLError: Details ' Error #3115',:' no such table: ' tblEmploye ", operation: 'run', detailID:"2013".

Here is my code when opening the sqlite database: * data is saved to the directory of the current application where all the files are stored:

       
        exampleDBFile = File.documentsDirectory.resolvePath("mydb.db");

        if (exampleDBFile==null || !exampleDBFile.exists) {
            MovieClip(root).mcSong.visible = false;
            MovieClip(root).mcAlert.visible = true;
            MovieClip(root).mcAlert.enabled = true;
            MovieClip(root).mcAlert.txtErrorMessage.text = "Database not found";
        }
        exampleDB = new SQLConnection();
        
        exampleDB.addEventListener(SQLEvent.OPEN, onExampleDBOpened);
        exampleDB.addEventListener(SQLErrorEvent.ERROR, onExampleDBError);
        
        //exampleDB.openAsync(exampleDBFile);
        exampleDB.open(exampleDBFile);

I also tried to use the following but still no luck

exampleDBFile = File.applicationDirectory.resolvePath("mydb.db");            

using this, I get a different error: Error: Error #3104

And here is the code for adding new entries

        
        sqlInsert = "insert into tblLyrics (empName, empDesc) values
                    ('"+ strReplace(txtSearchMe.text, "'", "") + "','"+ strReplace(txtContent.text,"'","") +"')";
        dbStatement.text = sqlInsert;        
        dbStatement.addEventListener(SQLEvent.RESULT, onDBStatementInsertResult);        
        dbStatement.execute();

Hoping for your advice...

Hello

@uxavenue

to add something to the post of samia:

-on iOS your application directory is in 'read only' (at least when using native application)-so resources in the application directory (in the terminology of the Air - not iOS SDK SDK) may not be changed/written/updated

-you could ship already created database sqlite with your application files, but must be copied to the writable to the application directory - for example documents. This directory is accessible via:

File.documentsDirectory

-When your application starts, you could do more:

(1) build the path to the path of database documents

(2) check if the database in this path exists (if this file exists)

(3) if the file does not exist yet either copy in this path of the resource directory of the application (where you consolidate during the generation of project) OR create the new empty database using all these CREATE table and then INSERT statements required to create the new new copy of database

(4) on each next start so check if the file exists at #2 jump creation/copy of database and simply start using it.

Kind regards

Peter

Tags: Adobe AIR

Similar Questions

  • Maximum file size for Adobe air for iOS and Androind update apps

    Hi all

    I'm working on a project that has a few videos I need to group in my mobile application for an Ipad app that I created using Adobe Air for iOS. My question is simple there at - it a maximum file size limit on applications compiled using Adobe air for iOS? And if yes what is it? Any help would be great.

    best regards Mike

    It is not a limit.

  • Download of AIR for IOS via the Application Loader I get the following error - the package does not contain a file Info.plist.

    I publish a .fla in the AIR for IOS.

    I'm in 2014 CC, so first I need to know what AIR I should publish in?

    more recent is AIR 14.0.0.178 for IOS

    IOS deployment type is App Store

    published with no error.

    I see that the following files included app.xml and .swf

    I converted the .ipa to a zip file

    Download through the Application Loader, I get the following error

    The package does not contain a file Info.plist.

    Here is the infoplist for that and convert the .ipa and the info in a zip file?

    I converted the .ipa in a zip file and the intoplist file is NOT THERE how to generate this?

    Any help here?

    the most recent is 16 +, Download Adobe AIR SDK

  • Why Adobe stopped support in Air for iOS?

    Adobe said today that it stop developing for iOS.

    That is to say that it will NOT update LOOK for more recent iOS iOS (as iOS 5).

    I paid a lot of money for the license of Flash and member of the AppStore!

    What could do now?

    What we talked about today is the development of Flash Player for mobile browsers, which will end after the next version is released. iOS is not affected by this, because the Flash does not work in Safari on iOS in any case.

    Adobe spoke of how they were going to do more with mobile AIR apps, so if something ads today is good news for AIR for iOS.

  • SQLError: ' #3115 error: SQL Error.', details:' no table of this type: "contact", operation: 'running', detail "

    Hello
    Simply create database SQLite Database Browser 2.0 B1 after creating the database, when I tried to connect in flash cs4 - with air 1.1 his error show me

    SQLError: ' error #3115: SQL Error.', details:' no table of this type: "contact", operation: 'run', detailID: "2013" I tried to find anywhere but does not have the solution to this "

    my code is here

    import flash.filesystem.File;
    flash.data import. *;
    import flash.data.SQLConnection;
    import flash.data.SQLStatement;
    import flash.data.SQLConnection;

    var dbFile:File is File.applicationStorageDirectory.resol vePath ("mydb.db");.
    var sqlConn:SQLConnection = new SqlConnection ();
    var sqlState:SQLStatement = new SQLStatement();
    sqlConn.open (dbFile);
    sqlState.sqlConnection = sqlConn;
    trace (status sqlConn.connected + "current"); his show 'true' here
    sqlState.text = "SELECT name FROM contact."
    sqlState.execute ();
    var resultArray:Array = sqlState.getResult () .data;

    Thanks in advance

    Hello

    I create my Adobe Air App using Flash Professional CS5 and faced with exactly the same error.

    SQLError: ' #3115 error: SQL Error. ", details:' no table of this type:"categories", operation: 'run', detailID:"2013"

    My SQLite Db was created using Firefox SQLite Manager - extension. The db file is placed in the same folder as the .fla and .swf files. The db has three tables namely: duration and activity categories. I don't understand why I get this error. I even tried to copy paste any other source code of the AS 3.0 but same error reference guide each time.

    The code below is a modified version of the code example in the documentation for reference AS 3.0. Can you suggest how the error above can be fixed?

    / You can also respond to me directly at [email protected]

    /regards

    import flash.data.SQLConnection;

    import flash.data.SQLResult;

    import flash.data.SQLStatement;

    import flash.display.Sprite;

    import flash.events.SQLErrorEvent;

    import flash.events.SQLEvent;

    import flash.filesystem.File;

    var conn: SQLConnection;

    var insertCategory:SQLStatement;

    var dbFile:File;

    //*************************************

    databaseConnect();

    //*************************************

    function databaseConnect (): void

    {

    define where the database file is located

    var appStorage:File = File.applicationStorageDirectory;

    dbFile = appStorage.resolvePath ("MyBudgetCalc.db");

    Open the database connection

    Conn = new SqlConnection ();

    conn.addEventListener (SQLErrorEvent.ERROR, errorHandler);

    conn.addEventListener (SQLEvent.OPEN, openHandler);

    trace ("dbFile.exists:" + dbFile.exists);

    conn.openAsync (dbFile);

    }

    Called when the database is connected

    function openHandler(event:SQLEvent):void

    {

    conn.removeEventListener (SQLEvent.OPEN, openHandler);

    starts a transaction

    Object (this).inputfield.text = "openHandler called..";

    conn.addEventListener (beginHandler, SQLEvent.BEGIN);

    Conn.Begin ();

    trace ("openHandler sweetness...");

    }

    Called when the transaction begins

    function beginHandler(event:SQLEvent):void

    {

    conn.removeEventListener (beginHandler, SQLEvent.BEGIN);

    trace ("beginHandler - SQLEvent message:" + SQLEvent.message);

    Object (this).inputfield.text = "called beginHandler..";

    insertCategory = new SQLStatement();

    insertCategory.sqlConnection = conn;

    insertCategory.text = "INSERT INTO categories (id, name) VALUES (', Auto')";

    insertCategory.execute ();

    insertCategory.addEventListener (SQLEvent.RESULT, insertCategoryHandler);

    insertCategory.addEventListener (SQLErrorEvent.ERROR, errorHandler);

    trace ("sweetness beginHandler..");

    }

    Called after the record of phone number is inserted

    function insertCategoryHandler(event:SQLEvent):void

    {

    insertCategory.removeEventListener (SQLEvent.RESULT, insertCategoryHandler);

    insertCategory.removeEventListener (SQLErrorEvent.ERROR, errorHandler);

    No errors so far, so commit the transaction

    conn.addEventListener (SQLEvent.COMMIT, commitHandler);

    Conn.Commit ();

    trace ("outgoing insertCategoryHandler after conn.commit ()...");

    }

    Called after the transaction validation

    function commitHandler(event:SQLEvent):void

    {

    conn.removeEventListener (SQLEvent.COMMIT, commitHandler);

    trace ("commitHandler() output: all Transaction...");

    }

    Called whenever an error occurs

    function errorHandler(event:SQLErrorEvent):void

    {

    trace ("seizure of errorHandler ()..");

    If a transaction goes, roll back

    If (conn.inTransaction)

    {

    conn.addEventListener (SQLEvent.ROLLBACK, rollbackHandler);

    Conn.Rollback ();

    }

    trace (Event.Error.message);

    trace (Event.Error.Details);

    trace ("sweetness errorHandler()..");

    }

    Called when the transaction is rolled back

    function rollbackHandler(event:SQLEvent):void

    {

    conn.removeEventListener (SQLEvent.ROLLBACK, rollbackHandler);

    }

  • Impossible to compile Adobe AIR for Android TV

    Hello

    We try to compile the AIR with the flags are:

    < android >

    < manifestAdditions > <! [CDATA]

    < manifest android: installLocation = "auto" >

    ...

    < / manifesto >

    []] > < / manifestAdditions >

    < supportsAndroidTV > true < / supportsAndroidTV >

    < banner > "path of the image of the banner (320 x 180 px, .png file)" < / banner >

    < / android >

    and get:

    C:\MediaSignageDepot\Solution\5.0\Products\SignagePlayer\Android\SignagePlayerAn

    droidApp - app.xml (206): error 103: application.android.supportsAndroidTV is a UN

    element/attribute EXPECTED

    Anyone had success compile those flags with Adobe AIR for Android TV last?

    We're uisng the flag of swf-version 31 and namespace 20.0 to try to access this feature.

    We use the AIR 20

    Kind regards

    -Sean http://DigitalSignage.com

    ____________________________________________

    MediaSignage.com, digital signage FREE for everyone!

    5776-D Lindero Cyn Rd #182

    Westlake Village, CA 91362

    Phone: 1.877.DIG. SIGN (1-877-344-7446)

    Fax: 1.818.337.0442

    Live support: http://chat.digitalsignage.com

    I see that beta support has been added for Android TV in one of the beta versions of AIR 20. Read this discussion:

    AIR 20.0.0.230 iOS install questions and support Android TV has stopped working

    It seems that you would have used equip 185 and not the final version. Or you can try an AIR 21, or 22 AIR beta version.

  • Animate CC 2015 Air for iOS full screen problem

    Hello team Adobe,

    I made many applications for iOS and Android. And I am facing 1st time a problem only in the Air for iOS. Air for Android works perfectly well. What I'm dealing with that

    even after using this code:

    internship. Align = StageAlign.TOP_LEFT;

    stage.scaleMode = StageScaleMode.EXACT_FIT;

    I see black bands top & bottom of my application. Then I downloaded the new SDK is Air SDK 21.0 but same problem :/ Please tell me as soon as POSSIBLE, why is that happening?

    Thank you

    Saad

    Hi Saad Aftab,

    I tried with the attached draft you shared.

    If this problem could be solved if you add images to your project.

    Please try the application after giving the images of the launch of the publication. The application will launch in full-screen and there will be no black bands if you have already configured the 'true' parameter in app.xml.

    Please let me know if you face any problem.

    Thank you

    Adobe AIR Team

  • the .xml file will not hold the new version I am writing on the 'AIR for iOS settings' window on Flash cc 2015

    Hello

    I need to download a new version of my app on iOS, but the .xml file will not hold the new version I am writing on the 'AIR for iOS settings' window on Flash cc 2015. It keeps appearing as:

    <? XML version = "1.0".

    also when I try to download the new .ipa on iTunes Connect with the Application Loader, I get this message:

    "" "ERROR-ITMS-4238:"redundant binary Upload. " «"" "" There is already a binary download with release ' 1.0.0' train ' 1.0.0 ' "at SoftwareAssets/PreReleaseSoftwareAsset»»»

    The problem is not of Application Loader or iTunes Connect as when I open again the .fla and check the window 'AIR for iOS parameters' he continues to display the 1.0 version over and over again. If Flash isn't that save the .xml file.

    And it happens with all my other apps Android or iOS, old and new versions, all appear as <? XML version is "1.0" on the .xml file.

    Is anyone know how can I solve this problem?

    Thank you.

    There are two different values, the build number and version number. If you use a test flight, you can submit an update without obtaining a review by increasing the build number. If you are submitting an update to an application in iTunesConnect, you must increment the version number.

  • How can I replace my app on iTunes Connect with a new version with air for iOS and app Loader?, how do I replace my app on iTunes Connect with a new version with AIR for iOS and the Application Loader?

    How can I replace my app on iTunes Connect with a new version with air for iOS and app Loader?, how do I replace my app on iTunes Connect with a new version with AIR for iOS and the Application Loader? I got an error that the version number needs to be updated. I created a new record in iTunes Connect with version 1.1 and I took ownership of my current app 1.1 in air for iOS section in Flash.

    Check your descriptor file to make sure that it shows the updated version, too.

  • How to enable the sampler in telemetry at AIR for iOS settings options?

    Hello

    I try just to the new CC of Flash, and one very good feature is to monitor an iOS app using adobe scout.

    But when I export an app, in the AIR for iOS settings, I still see the option "Enable sampler" is disabled. How can I activate the option?

    Thank you.

    Hello

    To enable the option of the sampler, you need to put it in the publication settings dialog box. Open the settings dialog box post and select the option 'Enable detailed telemetry' under the section advanced for the Flash (.swf) option. Now, you will find the telemetry option to activate sampler activated in the AIR for iOS dialogue.

    Thank you and best regards,

    Roger Simon

    Adobe Flash Professional Team

  • Partial Wakelock in Adobe Air for Android

    I develop Adobe Air (for Android) application that is designed to be constantly turned on. App has operations based event. However, when the phone goes to sleep mode app is able to perform only one or a few events in a second which is not good enough. AIR SystemIdleMode.KEEP_AWAKE - mode is not an alternative because it is too consuming battery.

    I am looking for a solution when the phone is allowed to enter the mode 'sleep' (screen is off), but still the CPU performance are not radically fallen. Not sure Android part wakelock-mode does the job and is available through DONKEY?

    What type of event you are missing to be able to manipulate during sleep? According to the documentation from Adobe AIR decreases the rate of 4 frames per second when it is moved to the background or becomes inactive. Im guessing that the screen, disabling account in this respect and that is probably a reason as to why you have found only a few events a second, but I can't say for sure without knowing what type of event you use. In regards Android PowerManager WAKE_LOCK function, Google documentation says that you should not use this API unless you absolutely, and if you have to use it, you use it and do with it as soon as possible as long as this hurts API independence (they have same "BOLD" the part about the battery life). What you try to do that requires that the app is always on? More details can help myself or others provide other options to accomplish what you are trying to do. If you must use the PowerManager, you should be able to create a DONKEY to turn on and off the WAKE_LOCK mode, but could only help the side Android/Java things and you might need to move your event handling during the side of things because Java application of AIR will be always abandoned at 4 frames per second when the screen turns off.

    Adobe AIR * Mobile application design considerations

    PowerManager | Android developers

  • Is Adobe Reader for iOS and Android Support with Solution PKI encryption?

    Hello

    I searched for an answer if Adobe Reader for iOS and Android can read PDF files encrypted by infrastructure solution to public key (encrypted by a public key, in order to be decrypted by the private key pair), but to date I have not found the answer.  From the Adobe web site, I understand that Adobe Reader for Android supports to read a document encrypted with AES256 but it does not mention on PKI.  I had to guess it does not support encryption with PKI, but I would just get a formal response and would like to know if Adobe Reader Mobile will support it.

    Thank you!

    Masaya

    Unfortunately, it is still not supported on mobile versions of Adobe Acrobat DC.

    Thank you.

  • How do external swf garbage collector in the Air for iOS?

    My app uses a lot of external SWF (although they are actually included in the application with a file, but they are not shipped) and does not contain any bitmapdata, only of vector graphics. The problem I have is that they seem to never be garbage collected and System. privateMemory continues to increase while the application loads more SWFs.

    As sovereign wealth funds contain vector graphics, I cancel all just all the variables that are now the reference to the SWF file and call it system.GC()... But it doesn't seem to work. What should I do for the garbage collector to clean sovereign wealth funds?

    I use Air for iOS 3.5.0.1060 and ActionScript3.0.


    Ago - I found that they are not always collected garbage when you expect to be. It is not that they are "missed" just AIR decides to wait before waste collection. I found that continuous application to run they will eventually be garbage collected at the same time very unpredictable, as long as you don't have really any remaining reference for them.

  • How to reduce the suttering in Air for iOS GPU mode?

    Currently, my game runs at 60 fps on iPad 2 and has no problem concerning the rendering speed, but I'm rather annoyed by a constant stutter that causes the game to stop for 0.1 to 0.5 sec from time to time. The stuttering behavior is similar to when the garbage man is run and I assumed this is casued in Exchange for GPU memory as my game uses a lot of bitmapdata.

    Problem is that my game goes one scene to another scene seamlessly without stopping animations in the game screen leaving old-fashioned scene slide off the screen and new stage sliding in. There is therefore not the time to preload/precache active graphics used in the new scene. After various scenes of transiting a few times, the game starts stuttering trying to show new images.

    My game works fine without stuttering on old PC but on iPad 2 is quite obvious. Could someone tell me some tips to reduce stuttering when using Air for iOS? In the game, all vector graphics are drawn pre bitmapdata (so no vector graphics are shown) and the size of the active graphics that each scene is approximately 2048 * 1024 pixels. There are about 10 scenes. In addition to this, there are ways to graph common interface that are used in every scene and the size is about 30 x 400 * 400 pixels.

    I know that the game uses a lot of graphics resources. What makes the game preloads the assets before transiting to a new scene will eliminate stutter but I want to see if I can keep the scene transition seamless on iOS again.

    I am currently using Air3.5 + Flash CS6.

    * I mean cached prior/preloading displaying actually (addChild and visible = true) on stage and make time for GPU cache. All the graphics data is already loaded.

    Have you tried playing with the StageQuality class? Setting to 'low' solved my problem of rotation and orientation screen bumpy...

  • LOADING IN ONE air for iOS to the PROJECT WEB PAGE

    Hello!

    I have a complicated problem. I'm trying to find a solution in the world, but I have not found anything.

    I create a project Air for iOS with Flash CS5 and CS6 Flash. I need to find someone who knows how to download a web page within an application.

    I try to explain better. There is still a task for the download, html link, but it just works in a new browser window. That way, whenever I want to see a web page, the application will be close. Is it possible to import the entire web page inside Air for ios project and not in an external window?

    I wish that the result is like this:

    forumADOBE.jpg

    Thank you very much.


    When you change to another frame

    webView.stage = null;

    If you back up the first picture tho

    webView.stage = this.stage;

Maybe you are looking for

  • Option private window is no longer works

    Until this week, I've always been able to access 'New private window' menu option. For some reason, I can no longer do. Your help would be appreciated.

  • Can't send or receive emails through Verizon server after update to Thunderbird

    After update to Thunderbird, Verizon server no longer recognizes my password, then authentication keeps failing. I can't send or receive e-mail. Account settings are correct. Any ideas? Thank you.

  • Download of fash Player plugin 11.7.700.202 did not finish.

    When I updated to Firefox 21.0, I found that Flash Player plugin 11.7.700.202 did not work. Videos would not play. Had no problems before the update to Firefox. I downloaded a new copy of the player, but the download would not end. An error message (

  • Expect that less than 1 ms.

    Yes, I did research on the prior of forum that I posted it. I have a general opinion which I get a reading of messages. However, the positions are a bit old. So, I ask the question again hoping that something has been changed in the meantime. I need

  • E260 no memory

    Hello I have a sanza E260 V1, Here's my problem. My sister actually put in shape the whole unit (she dosent remember how she did it...) and now when I connect the sanza in my computer (vista), it pop up 2removable drive, I can't navigate all those. H