Search This Blog

Monday, 16 January 2012

Adapting Android Phone Application to Tablet

Remember that this technique is applied for the min. android sdk version 3.0 i.e gingerbread . So many of you developers have a question that can we test our smartphone application to the tablet???? the answer is yes just follow the following steps and you are ready to test your applcation on the tablet.

1. Launch the Android SDK and AVD Manager and install the following:
a. SDK Platform Android 3.0
       b. Android SDK Tools, revision 10
       c. Android SDK Platform-tools, revision 3
       d. Documentation for Android SDK, API 11
       e. Samples for SDK API 11
2. Create an AVD for a tablet-type device, if you do not have an actual device yet. Set the target to "Android 3.0" and the skin to "WXGA" (the default skin).
3. Open your manifest file and update the uses-sdk element to set android:targetSdkVersion to "11". For example:
<manifest ... >
    <uses-sdk android:minSdkVersion="4" 
              android:targetSdkVersion="11" />
    <application ... >
        ...
    <application>
</manifest>
By targeting the Android 3.0 platform, the system automatically applies the holographic theme to each activity when your application runs on an Android 3.0 device. The holographic theme provides a new design for widgets, such as buttons and text boxes, and new styles for other visual elements. This is the standard theme for applications built for Android 3.0, so your application will look and feel consistent with the system and other applications when it is enabled.
4. Build your application against the same version of the Android platform you have been using previously (such as the version declared in your android:minSdkVersion), but install it on the Android 3.0 AVD. (You should not build against Android 3.0 unless you are using new APIs.) Repeat your tests to be sure that your user interface works well with the holographic theme.
Optional guidelines:
1. Landscape layout: The "normal" orientation for tablet-type devices is usually landscape (wide), so you should be sure that your activities offer a layout that's optimized for a wide viewing area.
2. Button position and size: Consider whether the position and size of the most common buttons in your UI make them easily accessible while holding a tablet with two hands. In some cases, you might need to resize buttons, especially if they use "wrap_content" as the width value. To enlarge the buttons, if necessary, you should either: add extra padding to the button; specify dimension values with dp units; or use android:layout_weight when the button is in a linear layout. Use your best judgment of proportions for each screen size-you don't want the buttons to be too big, either.
3. Font sizes: Be sure your application uses sp units when setting font sizes. This alone should ensure a readable experience on tablet-style devices, because it is a scale-independent pixel unit, which will resize as appropriate for the current screen configuration. In some cases, however, you still might want to consider larger font sizes for extra-large configurations.

If you have any queries regarding the above post please drop the comment below enjoy programming !!!

Saturday, 14 January 2012

Howo to simulate a phone call on android emulator

Many of you developers are trying to simulate the phone call on android emulator and many readers have the queries how to do it so this is a way :-
Firstly if you are having windows version 7 you should install telnet client version by following these steps:-
1. Go to the control panel
2.Go to the program options
3. go to turn windows features on or off
4. check the telnet client and click on ok.
Remember in xp telnet is installed by default
so if now you have installed your telnet
1. go to cmd and type telnet and press enter
2. your telnet client is opened
3.Now type o localhost 5554 or it can be 5555 depending on the port number of the emulator and then press enter
4. after that type the following command gsm call (number) this number is from which number you want the emulator the incoming call it will receive press enter
5 voila!!!! your emulator is ringing

If any queries regarding the above post please comment !!!!! enjoy programming !!!!


Dragon Go! For Android : Virtual Voice Assistant From Nuance -By The Developers Of Siri


While Google is paving it's way to offer a competitive virtual voice assistant to Apple's "Siri", the current Siri Alternative solution's on Android platform are not very exciting. Thankfully, under some new exciting development "Nuance Communications" - the team behind technology powering Siri, have released a similar application for Android.
Dragon Go! features the tested and dependable, Nuance voice-recognition and Natural Language Processing (NLP) technology allowing users to get direct access to 200+ of the most recognized destinations on the Mobile Web today spanning mobile entertainment and streaming media, social networking, shopping, and every other online content need imaginable simply by using their voice.
Dragon Go