About some development issues for the bada platform

    On May 17, 2010, the Samsung bada Developer Challenge was launched, which included the Global Developer Challenge and Local Developer Challenge. A local competition was held including in Russia.
    image
    In general, about the SDK on the hub already is well written here habrahabr.ru/blogs/development/101196 and here habrahabr.ru/blogs/mobiledev/105451 .

    We add a small contribution from ourselves ...

    Applications (and especially complex graphic applications) for bad are difficult to write. Therefore, do not wait for them under the platform in large numbers. Although the platform is developing dynamically, there is hope that, for example, in bada 2.0 the situation will improve.
    There is no normal framework for the GUI (the only normal way to do something graphically complicated is to draw by pixels in OnDraw itself). There is a visual GUI editor, but it exists more for show, is very limited and is suitable only for the Hello World level.
    Manual memory management, and if monitoring is still possible on the simulator, how much your program consumes memory during operation, then this does not work on real hardware (which is honestly warned in the documentation). Somehow to understand how little the application flows, it is possible only by secondary signs, when, for example, the phone begins to swear that it lacks resources and it’s time to close everything. Thus, the main method is careful attention to the code and the head.

    After somehow managing to cope with all these problems and deliver the product for the first appload, after a week of waiting, we received a report on 5 bugs. Three of them included video clips, one just screenshots. Three of them were obvious, and were quickly fixed, but the other two ...

    First: the application will not determine the coordinates by GPS, although the GPS is turned on and the satellites are caught. As proof, screenshots were taken from our application (no signal), and screenshots of the native client, which successfully showed these coordinates. It is clear that the determination of coordinates is a fundamental function of our application, and it works (we have never seen such a bug in our home). Under what conditions a bug was discovered - not a word, only screenshots. The question asked about the specific steps that lead to such behavior remained unanswered.

    Second: if an alarm is triggered while recording an audio note (we have the function of recording a note and attaching it to a point on the map), it will work without sound.

    Both of these bugs have perplexed us. First, the application receives the coordinates from the standard system service, and if something does not work, then most likely these are not our problems. But how to prove it? The second one - again, when the application loses focus, it correctly closes the recorder and other resources, why the alarm clock starts without sound is completely incomprehensible.

    By the way, it turned out that the native recorder works in the same way. There is a suspicion that the programmers who developed the operating system reasonably thought: if a microphone is currently being recorded, then initiating an alarm will lead to a “clogging” of the sound stream! And turned off the alarm for this time. Perhaps this is correct.

    The fight against these bugs took us some more time, but, nevertheless, we figured it out.
    And so, solving the problem after problem, we made an application that was not only recognized as successful, but also won the main prize of the bada Developer Challenge in Russia! Now, taking first place in the competition, we provide users with the opportunity to try and evaluate our product .

    PS. Until the global competition has ended, the application is not available in the Samsung Store, but you can try similar applications on other platforms (so far without a map).

    Also popular now: