Iphone application issue

Hello Experts ,
I am creating an iphone application using sybase unwired platform 1.5.3 .
I have generated the code from sup and taken the required api's onto xcode in my project .
The issue i am facing is while fetching data from sup .
As mentioned on the sybase website , i have written the code in my delegate file .
It works fine uptil i subscribe to my database eg [abcDB subscribe];
after this there is a step as follows :
while ([(abccallbackhandler *)[abcDB callbackhandler] importsuccesscount ]>1)
sleep(1);
It does not come out of this loop
Tried lot of things from the sybase website and searching on the net as well but none worked .
Please help me on this as i am not able to proceed because of this issue .
Thanks & regards ,
rockyy .

Hello Rockky,
In a SUP MBS-based application, you should never block the main thread with a busy loop as in your example.  In the SUP documentation this is done just as an example.  Rather than blocking with a busy loop, wait for the appropriate notifications using the call back handler.  In your case, you should call subscribe and let the method continue.  If you are displaying a progress/loading view that must be hidden after all data is pulled down to the device, you should hide this view when you receive the onSubscribeSuccess notification, or more appropriately, the onImportSuccess notification which will be called after all data has been pulled down after subscribing. 
Relying on the call back notifications rather than busy loops frees up the main thread keeping your UI responsive. 
Hope this helps. 
Best regards,
Mike

Similar Messages

  • Flex iPhone Application Performance issue

    Hi,
    I have developed mobile application for iPhone, iPad, and Android using flash builder 4.5.1. iPhone application performance is very slow compared to iPad version and Android even though the code set is same for all the versions.
    Can anybody help how to improve the performance on iPhone?

    Moving thread to mobile development and notifying our iOS team to take a look.  If you find a specific issue you consider broken, please post again in the bugs forum and we'll investigate further.
    Chris

  • Flex iPad Application : Run code before application enters background  Application Type: Flex Mobile Application Target Platform: iPad AIR Version: 4.0 Development Environment: Flash builder 4.6  I want to run some code just before iphone application goes

    Application Type: Flex Mobile Application
    Target Platform: iPad
    AIR Version: 4.0
    Development Environment: Flash builder 4.6
    I want to run some code just before iphone application goes into background. I need function similar to didEnterBackground
    of native xcode app
    (https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegat e_Protocol/Reference/Reference.h
    tml#//apple_ref/occ/intfm/UIApplicationDelegate/applicationDidEnterBackground:)
    I tried using devactivated function of flash.display.STAGE.
    I used following addEventListener:
    STAGE = this.parent.stage;
    STAGE.addEventListener(Event.DEACTIVATE, onAppDeactivated);
    It worked for me but only when device is connected to development environment in debug mode. When I create my release build
    it is not working.
    So how can I make sure that my code runs before application goes into background.

    Even I am facing almost same issue
    Problem installing Adhoc version to iPhone and iPad - Development Environment Is - Adobe Flash CS6

  • Massive help with an iPhone Application...PLEASE!   :(

    Hello.
    Since yesterday I have been trying to hunt down a bug in a simple iPhone application I made while following an exercise from the iPhone SDK Development book. Its a simple application with a navigation controller and a table view.
    You can download my project at
    public.me.com/felipelaso
    In the main view when the application is opened, you see a list of items and an option to edit them or add an item. When you click on add, a new view controller is popped, you get a textfield and a keyboard, and when you are done you go back to the table view and the name you just entered is added to the list.
    The problem is that as soon as you hit done on the keyboard, or click back on the navigation bar I get the following messages in the console:
    This GDB was configured as "i386-apple-darwin".warning: Unable to read symbols for "/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics" (file not found).
    warning: Unable to read symbols from "CoreGraphics" (not yet mapped into memory).
    warning: Unable to read symbols for "/System/Library/Frameworks/UIKit.framework/UIKit" (file not found).
    warning: Unable to read symbols from "UIKit" (not yet mapped into memory).
    I have reinstalled my developer tools, created a new project from scratch, added the frameworks again and nothing seems to work.
    I though it might me something with my frameworks. But then I downloaded a bunch of the samples with table views and navigation controllers, and they all work fine. All my other applications work fine too, except this one.
    I have spent all morning, and all afternoon yesterday trying to find out whats wrong, but im not an Xcode or Cocoa expert and I was hoping I could find some help.
    The project can be downloaded for anyone to test with.
    Please! any help I get would be gladly appreciated.
    Thanks in Advance,
    Felipe.

    Ok I downloaded it, ran it on the simulator and everything was fine. Put it on my device and i got an EXCBADACCESS when I clicked the done button as you described.
    EXCBADACCESS means something is getting released before you're trying to access it again. I opened the debug console to see this. Then I opened the debugger to find out exactly what the issue is. In my stack the last custom method that was called is [RootViewController addTeamNamed:] This makes me believe the array is being released.
    Now I take your addTeamNamed method and pepper it with log statements:
    - (void)addTeamNamed:(NSString *)teamName
    NSLog( @"A" );
    [teams addObject:teamName];
    NSLog( @"B" );
    NSIndexPath *indexPath;
    indexPath = [NSIndexPath indexPathForRow:[teams indexOfObject:teamName] inSection:0];
    NSLog( @"C" );
    [[self tableView] insertRowsAtIndexPaths:[NSArray arrayWithObjects:indexPath] withRowAnimation:NO];
    NSLog( @"D" );
    The console output of which is: "A B C". Ok, no D, so that means the error is the in the insertRows... method.

  • TS4006 I have iPhone 4 with updated latest iOS And i am using FIND IPHONE application. But everytime when ever i login in it and serch for the device its shows but never give me the location"NO LOCATION AVAILABLE".It is already connected with WIFI but no

    I have iPhone 4 with updated latest iOS And i am using FIND IPHONE application. But everytime when ever i login in it and serch for the device its shows the device  but never give me the location"NO LOCATION AVAILABLE".It is already connected with WIFI and i tried all the stuffs that has been written in the manual. Plese give me the Proper suggetion about this issue..!!

    If your router is not identified in a national database (don't recall who maintains it or where it is) then there is no location associated with it.  Hence your device cannot be located.  I suggest you try your test at some public wifi spot, like a bookstore or coffee shop.  These places usually have a location associated with their wifi router.

  • Captivate 7: where is the "Enable SWF for conversion to iPhone application" publish option

    I'm part of a team of 20 people who are currently using Captivate 5.5 and evaluating updating to Captivate 7 or finding a new tool.
    A critical part of what we produce are iPad conversions of our Captivate/Flash software demonstrations.  We do the conversion using the Adobe Developer Tool in the AIR SDK to convert our SWF files to iPad applications.
    Captivate 7 is missing an option that we have in Captivate 5.5, "Enable SWF for conversion to iPhone application".  Without this option we cannot convert to iPad applications using AOT mode but are forced to use Interpreter mode.  Interpreter mode results in unacceptable performance for anything with motion such as segments with Captivate Full Motion Recording clips.
    Is there a workaround that will allow us to compile in AOT mode?  If not we will most likely not upgrade to Captivate 7 but will continue to use Captivate 5.5 and search for a different tool.
    --Hal

    Hi there,
    Please see below for the answers
    Even as of Captivate 7, there are too many restrictions on object types that can be converted. One example that comes to mind is rollover captions.  We use these extensively and they don't work with Captivate 7 HTML5 output
    As you figured out, Rollover objects are not supported in HTML5 output. The list of non-supported objects are mentioned in the link http://helpx.adobe.com/captivate/using/publish-projects-html5-files.html#unsupported_objec ts_in_html5_output
    We need a solution that is easy to distribute and load onto an iPad.
    You can either use an LMS (e.g.: Scorm CLOUD) or can use the "Adobe Captivate App Packager 7" along with PhoneGap to achieve this. This application helps you package the courses as native apps using the Adobe Phone Gap Service. Please see the link to know more about Adobe Captivate App Packager. http://helpx.adobe.com/captivate/using/captivate-app-packager.html
    We need to fill the entire screen with our demo, eliminating browser or other application elements entirely
    You can achieve it by publishing the course through "Adobe Captivate App Packager 7". Please don't select the 'Scalable HTML output' option during Captivate publish as the HTML5 output may not work well on Ipads.
    We need a solution that works when an iPad is offline such as wandering around a show floor.
    You meant, you need an offline solution to track 'Reporting or Completion'? If that is not the case then again "Adobe Captivate App Packager 7" solves the issue.
    We prefer a solution that doesn't require additional software to be purchased for each iPad.
    To publish an iOS app through Adobe App packager and Phone gap, you need to get the "Certificate password and PhoneGap'
    Thanks,
    Nimmy Sukumaran.

  • IPhone Application Approval Process

    Does anyone know details around the iPhone application approval process when submitting a newly created application? Timing??

    This is the iphone users forum, made up of iphone users, to help solve issues related to using the iphone.
    If you are trying to contact Apple, you are in the wrong place. Sorry.

  • IPhone Application Frozen after waking up from Device Sleep

    The iPhone application that I am currently working on is having a hard time running properly after the device is put to sleep. I've built other applications that work fine, but something seems to be wrong with this one.
    After the device is woken up, it shows my user interface correctly, and I can see that other threads are running because I added log messages in a communication thread, but the UI is not responsive to any touches.
    Anyone have any pointers on what to look into for why this is happening?
    I've overridden the applicationWillResignActive and applicationDidBecomeActive methods in the application delegate to see what is getting called, but am not sure what to do once the application has become active again.
    Thanks.

    No one's ever faced that?
    I mean the iMac is brand new, upgraded from SL to Lion and this happened.
    It's the iMac mid-2011, 21,5
    2.5 Ghz Intel Core i5 - AMD Radeon HD 6750M 512 MB
    Would you guys say it's a hardware issue, or rather a Lion issue?

  • I can connect to all my Iphone applications, however I cannot to Itune store from my Iphne. A message saying: you cannot connect to Istore, your connection appears off, pops up. Help please

    I can connect to all my Iphone applications, however I cannot to Itune store from my Iphne. A message saying: you cannot connect to Istore, your connection appears off, pops up. Help please

    Hey joshuafromisr,
    If you resintall iTunes, it should fix the issue. The following document will go over how to remove iTunes fully and then reinstall. Depending on what version of Windows you're running you'll either follow the directions here:
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    http://support.apple.com/kb/HT1925
    or here:
    Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
    http://support.apple.com/kb/HT1923
    Best,
    David

  • IPhone Application Crashes - What do you do?

    When accessing several iPhone applications, my iPhone crashes displays a black screen with apple logo on it. When this occurs, is there any defined set of steps to resolve it?
    When I emailed this issue to one of the applications vendors, they said I had a battery issue on my iPhone Edge 4GB.

    You basically just need to re-install the app(s) that crashed.
    Looks like not all the developers follow the same standards and some of their apps is poorly built.
    I fixed my my crashing apps just by re-installing them.
    Hold on to the icon for couple seconds until it wobbles. Click on the X to delete/uninstall. Then just go back to AppStore to download it again.

  • Iphone 5 issues after IOS 8.2 update: my husband's phone and my phone get the same phone calls ONLY when we are home.  Any suggestions on where to look to fix this?

    Iphone 5 issues after IOS 8.2 update: all the iphones in the house receive the same phone calls ONLY while we are at home.  Any ideas on how to fix this?

    That is a new "feature" described in Connect your iPhone, iPad, and iPod touch using Continuity
    You can turn it off by going to Settings > FaceTime and changing "iPhone Cellular Calls" to off

  • My iphone application running continuously in background to access some information by "beginBackgroundTaskWithExpirationHandler" then can i submit in appstore .

    My iphone application running continuously in background to access some information by "beginBackgroundTaskWithExpirationHandler" then can i submit in appstore ?

    This is a question that should probably be posed in the Developer forum.

  • Can you sync 2 apple ID's for Find Iphone Application?

    My Husband & I both have IPhone/IPad/IPod & MacBooks and we have seperate Apple ID's. We would both like to be able to access all the devices under the Find IPhone application, but I can only see my devices and he can only see his. Is there a way to sync the two apple ID's? Thank you!

    Yes if she has her own user account on the MacBook.  One user account can't sync to two separate iCloud accounts.
    OT

  • I have an iPhone application already developed and it works great ,now i need to make that same application for my iPad .can someone please tell me step by step instructions on how to make it .

    i have an iPhone application already developed and it works great ,now i need to make that same application for my iPad .can someone please tell me step by step instructions on how to make it .

    Try the developer's forum:
    https://discussions.apple.com/community/developer_forums

  • I am using Iphone 3gs. Last week I updated my itunes to latest version, although I couldnt not update my iphone OS since the download fails saying error 9006. For last 2 days all my Iphone applications fail to open except the default ones. Any solutions?

    I am using Iphone 3gs. Last week I updated my itunes to latest version, although I couldnt not update my iphone OS since the download fails saying error 9006. For last 2 days all my Iphone applications fail to open except the default ones. Any solutions?

    Download a free app and try again, you can delete the free app afterward.

Maybe you are looking for

  • Headphones usage with Satellite L670D-105

    Data: Toshiba Satellite L670D-105 Windows 7 64 Realtek HD Audio Manager I am trying to plug in a headphone, but it does only work partially. Most of the above Realtek software is not available to me. In other words the earphones work, but I cannot ac

  • Error : IF_WORKFLOW does not exist ?

    Hello, i creaed an abap class using the class builder and i want to use this class in a workflow, once i added the class and its method to the workflow, and i did checking, the system said" IF_WORKFLOW does not exist. i know i can create workflow wit

  • Dvd playback is slow

    i have noticed that dvd playback is slow . i use vlc and kaffeine.if the dvd files are on hdd the playback is again slow.i have nvidia 630m optimus

  • What dictionary to see how long a job has run??

    Hi, all. I would like to check how long a job has run. dba_scheduler_job_run_details.LOG_DATE - dba_scheduler_job_run_details.ACTUAL_DATE = the time a job has run. Is this right? Thanks and Regards.

  • Mmail system down?

    Is there a problem with Mac's mail system? Or has something changed?