Latest Bada Mobile OS Interview Questions Part – 2
Will A Running Bada Application Get Key And Ui Events If The Phone Goes Into The Locked State?
No. When the phone goes into Locked mode, the running bada application goes into the Background state. Key events, such as volume up and down or the end key, are not sent to the running bada application.
Which Game Engine Has Been Ported To Bada?
AirPlay, a 3D game engine, has been ported to bada, and is now available for you to use.
How To Do A Screenshot In Bada?
Screenshots:
Home (OK) key + hold key press (press Home key first)
Screenshots are located in /media/images.
How To Get Descriptions For Error Codes?
Right-click on the Emulator and select “Error Lookup”. Enter the error code number to get the description of the error code.
What You Know About Bada?
Bada is an operating system for mobile devices such as smartphones and tablet computers. It is developed by Samsung Electronics. Its name is derived from ocean or sea in Korean. It ranges from mid- to high-end smartphones.
How To Upgrade My Firmware?
You can upgrade your firmware by connecting your phone to Kies.
Can You Please Explain What Kind Of Options Are Available To Integrate Ads Within An Application In Bada 2.0?
The Ad control supports two types of Ads: Image Banner, and Text Banner.
When the user touches the Ad, one of the following actions is triggered:
Click-to-Brower:
Opens a web page, set by the advertiser, in the default browser.
Click-to-Call:
Automatically dials a number set by the advertiser
Click-to-Store:
Launches Samsung Apps Store with the product page defined by the advertiser.
How To Load A Local Html File On The Device With A Web Control?
Samsung bada currently supports the “/Home” virtual path, which is readable and writable, as well as the “/Res” virtual path, which is readable for loading local HTML files. Make sure to store local HTML files in the Home or Res folder as per your (reading and writing) requirements, and specify the file path as “/Home/ .html” or “/Res/ .html”.
How To Add A Scrollpanel, Created Using The Scrollpanel Resource In The Ui Builder, To A Form?
Create a new ScrollPanel and attach it to a Form; the corresponding ScrollPanel resource is automatically created. Double-clicking the ScrollPanel allows you to then edit the ScrollPanel resource.
What Types Of Layout Are Supported?
The following layouts are supported:
GridLayout
HorizontalBoxLayout
RelativeLayout
VerticalBoxLayout
How To Find The Heap Memory Usage For The Currently Running Application?
You can get the available heap memory using the Osp::System::RuntimeInfo class.
How To Check The Firmware Version On A Test Phone?
Currently there is no method to do this. However, you can check the firmware version of your device by going to Settings > General > About Phone > Version.
How To Make The Result Of Getmaxtransactioncount() Larger Than One?
When constructing a session, instead of using NET_HTTP_SESSION_MODE_NORMAL, use NET_HTTP_SESSION_MODE_PIPELINING.
For example:
r = pSession->Construct(NET_HTTP_SESSION_MODE_PIPELINING, &proxyAddr, hostAddr, null);
How To Get The Subnet Mask?
Use the Osp::Net::NetConnectionInfo::GetSubnetMaskAddress() method to get the subnet mask.
How To Get The Ip Address Of A Device (both Dynamic Ip And Static Ip)?
You can use NetConnectionInfo::GetLocalAddress() to get the IP addresses (both).
Explain What Are The Different Http Session Modes?
HTTP supports NORMAL and PIPELINING session modes. All transactions within these sessions are submitted through the same connection. While only one transaction is processed at a time in normal mode, multiple transactions can be pipelined in pipelining mode. In normal mode, you must wait for the end of the previous transaction in order to submit the next transaction.
How To Enable Http Chunked Mode?
Add a header field to a request header for “Transfer-Encoding”, set the value to “chunked”.
Use the HttpTransaction::EnableTransactionReadyToWrite() method.
Implement the OnTransactionReadyToWrite() method to send more chunks. An empty chunk is considered to be the last chunk.
Can We Use The Local Loopback (127.0.0.1)?
Samsung bada does not support it out of the box. However, if you create a socket with your own system IP address, that can act like the local loopback for you.
Explain Does Bada Provide Apis For Ssl, Encryption, And Decryption?
Applications can create secure connections by using the Osp::Net::Http class and Osp::Net::Sockets::SecureSocket class. The SecureSocket class uses the SSL protocol to make connections.
The Osp::Security namespace provides all the encryption and decryption classes.
How To Simulate Locations?
Right click on the Emulator and select Event Injector > Locations
You can provide the input as a text file or select points on the map.
To use a text file:
Browse to the text file containing NMEA location data as shown below.
Click ‘Send file’.
To use the map:
Select the correct map location.
Select points.
Click ‘Send log’.
I built the ‘Navigator’ sample and tried to test it in the Emulator. The program seems to work, but it could not render the map.To use the default location service, the client name and password must be provided in the ROUTE_SVC_EXTRA_INFO defined in the NavigatorConstants.h file.
How To Zoom In And Zoom Out On The Map?
You can zoom in by double tapping and zoom out can with 2-finger touch. Pinch-to-zoom (multi-touch) is supported for both zoom in and zoom out.
Do I Still Need All The Privileges In The Manifest File When I Use Free Map Apps And The Navteq Ads?
From 2.0 onwards, you do not need to use the deCarta ads library for free maps. Instead, you can use the Ad namespace with Navteq for the advertising network. In this case, the only privilege needed is AD_SERVICE.
Is There Any Way For Bada To Set Gps Info While Capturing?
Yes. Samsung bada provides a method to set GPS information. Use the SetExifGpsCoordinates() method to set GPS coordinates in the EXIF field in the captured data.
Can I Use Ui Builder To Design Map Applications?
Yes, from bada version 2.0 onwards, the map control is available in UI Builder.