모바일/안드로이드

Galaxy Tab android

박황기 2010. 11. 25. 10:51
http://innovator.samsungmobile.com/galaxyTab.do


Introducing the Samsung GALAXY Tab developer forum

Developing for Samsung GALAXY Tab is no different from developing for any other Android based device. By utilizing only public APIs provided in the Android SDK and following the guidelines and tips below, applications will not just work on the GALAXY Tab but also scale correctly.

That said, with a 7” device and a screen resolution of 1024x600 the Samsung GALAXY Tab provides a perfect form factor to optimize applications, by implementing UI and UX enhancements previously not possible. And remember, Samsung mobile Innovator is available to help developers worldwide optimizing applications on the Samsung GALAXY Tab.

How will you utilize the additional screen real estate?

Samsung GALAXY Tab Add-on Installation Guidelines

Before getting started with Samsung GALAXY Tab add-on installation, you may need to install the android development environment. 
If it's not installed on your computer, you can find more information on this location: http://developer.android.com/sdk/installing.html

Adding Samsung GALAXY Tab Add-on

1. Run AVD Manager on Eclipse IDE


2. Select Available Packages in the left panel of AVD Manager.


3. Click “Add ADD-on Site” and enter the URL below.
http://innovator.samsungmobile.com/android/repository/srepository.xml


4. Check Samsung GALAXY Tab Add-on packages and click install button.


5. Check Samsung GALAXY Tab Add-on license & Click install button


6. After downloading and installation of GALAXY Tab Add-on, you should restart ADB (Android Debug Bridge) or Eclipse.





Quick Guide: Developing applications for Samsung GALAXY Tab

Samsung GALAXY Tab is a 7” inch device with 1024x600(WSVGA) resolution running Android 2.2 (Froyo). The following guidelines will help developers optimize applications for the best possible user experience.

  •  Make sure that high density display (HDPI) resources are in the application package, as the tablet display requires these resources.
        Most Android devices are API level 4 or greater. We recommend porting over our application with minSDKVersion=4 or greater. This allows 
        you to add HPDI resources in the application package. If the system cannot find the HPDI resources and android:anyDensity=”true” has been 
        set, the existing resources will be scaled which may not give the user the best experience. 

  •  The following are values are default for the Samsung Android Tablet:
    Take these into account when programmatically scaling bitmap resources.


  •  When using bitmap resources like advertisement banners, work with your ad vendor to get the correct banner size. Scale the
        bitmap programmatically by getting the device height and width at runtime as follows:

  •  Android Market filters out applications based on the values specified in the AndroidManifest.xml file. The 7” inch tablet is a “large” screen.
        So, for applications which have minSDKVersion=3, define support-screens tag explicitly as:

  •  Follow the recommended generic compatibility guidelines, such as: 
    - In XML layout, Use wrap_content, fill_parent
    - Use FrameLayout instead of AbsoluteLayout
    - NEVER use hard-coding for pixel value, use dip (density independent pixel)
    - Use resources according to each density, resolution category

References :
http://developer.android.com/guide/practices/screens_support.html
http://developer.android.com/guide/appendix/market-filters.html
http://developer.android.com/resources/dashboard/platform-versions.html

Sample Application: Block

The sample application “Block” provides a very basic sample project on how to implement the recommended code to ensure applications scale to the new 7” Samsung GALAXY Tab.


* NOTE: If you have any problem about importing this sample, you should change the location of this sample.