Latest Bada Mobile OS Interview Questions
Can I Set The Image File Path For Markers And Info Windows?
Yes. It is possible to set the path of an image to show in an info window as well as for markers using the SetContent() method.
Can I Rotate The Map?
Yes. From SDK version 2.0 onwards, it is possible to rotate maps.
Suppose I Am Unable To Get Any Gps Data At My Work Location. What Are The Possible Reasons?
GPS values are not sensed correctly in closed environments. Check the values in an open area.
Especially in indoor environments, GPS signals cannot be sensed. In that case, network positioning can help to get proper location data. Enable the network positioning option under Settings > Location > Network position.
I Have Iso 3166-1 Country Code Information From A Server. How Do I Convert It To A Country Name That Is Readable By A User ?
Construct a Locale object with the required country code and get the name of the country from the Locale object
For example:
Locale locale(LANGUAGE_ENG, COUNTRY_US);
Osp::Base::String countryName;
locale.GetCountryName(countryName);
How To Change The Locale? Is There An Api For It?
Samsung bada does not support changing locales within an application. However, you can change the locale by changing the language in the Settings menu.
Tell Me What Mechanisms Are Available To Establish Communications Between Two Different Applications?
Applications can communicate asynchronously through channels (ClientChannel and ServerChannel). Channels encapsulate the underlying IPC mechanism and communication is simplified through them.
How To View Or Check Files That My Application Has Created For Testing Purposes When I Run The Application On The Emulator?
If you want to check for a file in the Home folder, use File::IsFileExist().
How To Emulate The Storage Card Availability In The Emulator?
You can do this with the Event Injector. Right-click on Emulator > Event Injector > Device > MMC Insert.
How To Secure Or Encrypt My Files And Databases?
You can encrypt files using Construct() with the secureMode parameter.
For example, if you want to create secure files, use File::Construct(const Osp::Base::String &filePath, const Osp::Base::String &openMode, bool secureMode, bool createParentDirectories).
If you want to create secure database files, use Database:: Construct (const Osp::Base::String &databasePath, long openMode, bool secureMode, long option).
Also, bada provides methods for converting normal files and databases to secure, encrypted ones with the ConvertToSecureFile() and ConvertToSecureDatabase() methods.
Which Version Of Opengl Is Supported?
Samsung bada supports OpenGLĀ® ES 1.1 and 2.0, which are subsets of the OpenGLĀ® 3D graphics API designed for embedded devices.
How To Insert Emoticons In Text?
EnrichedText is the best candidate for this. By using EnrichedText, you can easily mix various styles and resources in text. In this case, you can insert bitmaps into text with the Osp::Graphics::EnrichedText::Add(const Osp::Graphics::Bitmap & bitmap) method.
How To Support Multiple Languages?
You can use string resources with resource IDs where each string corresponding to an entry for each language can be added and identified using its respective resource ID. The same can be accessed in your application using the GetAppResource()->GetString( >string id> ) method.
Suppose My Application Needs To Store The Application State, Even If It Is Being Terminated By The System. How Can I Do This?
In such cases the checkpoint event is fired and bada provides an event listener (IAppCheckpointEventListener) for it. You can save your application state or context within the OnAppCheckpointing() callback method. You can also save your application sate on OnAppTerminating().
How To Bring A Multitasking Enabled Application, To The Foreground Programmatically?
You can use the LaunchApplication() method with the current application’s AppId to bring your app to the foreground.
How To Change My Application Settings?
Under the menu bada Developers > My Applications > Application Manager you will find a list of your existing applications. Click on the name of the application you wish to modify, then the version. On the details page, click [Modify] button.
How To Make My Application Multitasking Enabled?
You can do it in the project properties window as shown below:
Project Properties > bada build > Application Information > check the Multitasking checkbox.
Do You Know Samsung Bada Promises To Support Multitasking. What Is The Maximum Number Of Bada Applications That Can Run Simultaneously?
Depending on the memory usage of applications and the physical memory size, the number of applications that can be run at the same time may vary somewhat.
Suppose When A User Presses The End Button To Kill The Application, I Want To Stop This From Happening So That The User Can Be Prompted Whether They Want To Save The State Or Not?
No, the application cannot stop itself from being terminated. If you must save the data, you can save it in the onAppTerminating () method, but you cannot provide any UI elements as the application is terminating. An alternative is to provide a settings page to get the user’s preferences and use the appropriate logic in the onAppTerminating() method.
Can An Application Send An Event To Itself And Capture It?
An application can send user events to itself using Osp::App::SendUserEvent() and capture the event using Osp::App::OnUserEventReceived().
Is There A Global Copy/paste Feature? Can I Copy Text From One Application And Paste It Into Another One?
Yes, however it is only available for text. You can do this in the Edit Field to copy/paste from one bada application/native application to another (bada app/native app). Double-clicking or long pressing on some text gives you this option.