Posts Tagged ‘Android’

Continuous Integration for Android and iPad

Monday, August 16th, 2010

We already have a post on how Continuous Integration allows developers to work as a team effectively.  Now let’s get into the finer details of implementing CI for Android applications and iPad applications.

Our Android/iPad/iPhone CI team recently came across an application ‘Hudson’ which made life a lot easier for them. Hudson manages the CI process by integrating changes to the project thereby providing the development team with a fresh build every time. The developer can configure Hudson to receive regular emails that capture the output on each build, alerting when something goes wrong.

Installing Hudson is easy enough; just execute hudson.war file or deploy it in a servlet container. Since the output is sent through email to the concerned accounts, it does not require a database. Accessing Hudson is as easy as accessing a website. Just type in http://localhost:8080/ (on local machine) or http://domain:portnumber/ (on remote machine), in a web browser and the user will be presented with the web GUI for Hudson. The GUI is simple and offers all the configuration details required for Hudson. Hence, the user is not exposed to intricate coding details.

To configure a new job for Hudson, a user has to authenticate himself to create a job, execute it etc. Select “New Job”, type in a unique Job Name and select "Build a free_style software project". On clicking on OK you will be moved to a page where you can specifically configure Hudson for a new job. One can also get to the configuration page by clicking on the job names listed in Hudson and by selecting Configure.

In the project configuration page, the following steps need to be followed,

1. Enter the Project name.

2. Source Code Management: Select radio button Subversion

          2.1 Select the path to Repository URL for SCM

                     Eg: https://xxx.xxx.xxx.xxx/svn/platform/FolderName

          2.2 Select check-box "Use update".

                    If checked, Hudson will use 'svn update' whenever possible, making the build faster. But this causes the artifacts from  the previous build to remain when a new build starts.

3. Build Triggers:   Select check box Poll SCM

          3.1 Set schedule 0, 10, 20, 30, 40, 50… This sets HUDSON to poll SCM every 0th, 10th    20th, 30th …50th minute

4. Build :  Select drop-down "Add build step"

  • select "Execute shell"
  • fill "Command" section

          For the techie reader, check out the build configuration command examples,

          For iPhone,

                rm -rf $WORKSPACE/hudsonbld/*rmdir $WORKSPACE/hudsonbldmkdir $WORKSPACE/hudsonbldcd $WORKSPACE/Job Name/checker-240/scan-build -v -o $WORKSPACE/ScanBldOutput xcodebuild -project AppName.xcodeproj -target TargetAppName -configuration Debug -sdk iphonesimulator 3.1.3 TARGET_BUILD_DIR=$WORKSPACE/hudsonbld

          For Android,

                 cd $WORKSPACE/trunk  ant debug

5. Post-build Actions

  • Select checkBox “E-mail Notification”. Fill in the recipients email addresses separated by comma.
  • Select check-box "Send e-mail for every unstable build" which mails a report on every unstable build to the specified recipients.
  • Select check-box "Send separate e-mails to individuals who broke the build"

6. Click Save and you are good to go.

Hudson can be used in any development platform, by changing the build configuration command accordingly. Investing in the CI infrastructure has turned out to be a good call for us, by allowing our development teams’ incremental code integration and well-timed code checks which makes the final integration manageable and also provides a robust copy of software at each stage of the development process.

To know more about Hudson,

    The future of opensource

    Thursday, June 3rd, 2010
    An excellent article analysing the annual survey on the future of opensource (OSS).

    A decade ago we adopted open source tools for our products and services (Linux, and Firebirdsql followed by LAMP stack, osCommerce, Wordpress, Drupal,Dotnetnuke and Android) for SMEs and Enterprises. Our customers have benefited through lower cost of ownership, licensing issues and vendor lockin. We are actively pursing research on the Android development platform to build our next generation business applications.
     

    Impact of open source

    • Tipping point – Whitehouse.gov runs on Drupal CMS
    • Ways of doing more with less
    • Being recognized as high quality software
    • Highest impact on Content Management, Erp, CRM and Database
    • Product life cycle releases are smaller
    • Innovation happens much faster in the opensource environment
    • Lack of formal vendor support is no longer a top concern for buyers
    • Increased confidence among enterprises to move top opensource
    • Recession has made OSS a lot more compelling for enterprises
    • Opensource vendors reported higher revenues
    • Cloud and Saas to have impact on opensource
    • OSS will represent more than half of their software purchases in the next five years

      Wordpress Mobile Optimization

      Wednesday, May 19th, 2010

      Tablet pc and mobile phone access

      Gone are the days when only desktops/laptops were used to view websites. With the proliferation of mobiles and high-end touch devices like the iPhone, iPad, Palm Pre, Android etc, users expect websites to be displayed in their devices, and rightly so, without the entire layout getting broken.

      This is especially true in the case of old websites which are based on table layouts. Tables are often of fixed widths, but on smaller mobile screens, the content overflows the view area, and it is often a hassle for users to navigate the page. This doesn't indicate that div based layouts are automatically optimized for mobile view. However they are recommended for performance gains even for desktop sites.
       
      Divs can be easily optimized for mobiles, where its often a matter of using a different stylesheet. The stylesheet is chosen depending upon the user-agent which requests the website. The mobile stylesheet will most importantly have fixed pixel widths converted to percentages, among other changes. This ensures that no matter what the client device is, layout will always fit accordingly to the screen.
       
      Some other changes that are required for having mobile support are :-
      1. Content should be highly prioritized for mobiles. Users shouldn't be overwhelmed with too much navigation links, and avoidable pages.
      2. As many mobile devices don't support Javascript, it should be avoided.
      3. Only basic css formatting is recommended.
      4. There should be an option for users to switch to the desktop site.
      5. In the case of iPhone, there are certain meta tags which have to be included in the head section of the html,
      e.g.<meta name = "viewport" content = "width = device-width">
       
      Optimizing wordpress websites for mobile devices is easy due to the availability of many plugins. The plugins which are worth integrating to your wordpress installation are:
       
      1. WordPress Mobile Pack- This is a versatile plugin, which has many nifty features, some of them being -
      1.    A desktop switcher option in the mobile screen.
      2.    Automatic resizing of images, splitting of posts into different pages for readability.
      3.    Mobile Admin Panel when wordpress is accessed from a mobile.
      4.    Easy css customization, to achieve varied color schemes.
       
      1. WPTouch- It optimizes wordpress mainly for devices like the iPhone, Palm, Android, which  have large screens. It uses the iPhone specific features such as hover, buttons, etc which would otherwise not work in low-end devices.
      1. MobilePress- This plugin allows the use of customized themes. Two types of custom themes are possible, one for iPhone, and another generic theme. MobilePress is also SEO enabled. Mobile visitor analytics can be tracked with the help of aduity.com which is integrated    into this plugin.
      1. WordPress Mobile Edition- Mobile devices to be shown the mobile theme can be configured manually using this plugin. It provides progressive enhancement for advanced mobile devices. The theme is built using the popular Carrington Theme Framework.

      Wordpress Team

      Software Associates

        PSD to HTML / image to CSS conversion

        Saturday, March 27th, 2010

        If you happen to be designer and are looking for HTML pages for your work or you are looking for some HTML email templates / newsletters, you have come just at the right place!!

        At Software Associates, our HTML team has been working as technology partners for a large number of web and media designers like you (London, Leiciester, Brighton, New York, Vancouver, San Diego, Alexandria, Washington..) for more than a decade. PSD to HTML / image to HTML/ image to CSS or in short you design and we will hand code to the last pixel, whatever you have imagined.  We do this faster and cheaper than most , yet making sure that the page works across multiple browsers (Windows, Linux, Android and iPhone). We are present throughout US East coast specifically in cities like New York, Orlando, Boston, and Florida.

         So what exactly we do?

        We provide HTML code for any kind of image or design that you have. More precisely we will code any file with following format for you

         

        Input

        u  Photoshop PSD

        u  Illustrator AI

        u  Fireworks PNG

        u  PDFs, JPG/JPEGs, GIF or TIFF

         

        Output

        u  Pixel perfect

        u  Cross browser compatible

        u  Printer friendly web pages

         

         

        We work both on Windows and Mac, supporting following browsers            

        u  Windows – Opera, Safari, Firefox, Internet Explorer 6 & 7, Google Chrome.

        u  MAC- Opera, Safari, Firefox

         

        We follow some of the best programming practices in the industry, to ensures best of the outputs and lowest of prices for you,

        u  Use of CSS frame work

        u  Use of optimized images

        u  Meets W3C WAI WCAG

        u  Resizable Fonts

        u  AJAX / JavaScript/fly outs, mouseovers

        u  Commented Markup and CSS

        u  CSS/JavaScript Drop Down Menu — one-level or multi-level drop down menu

        u  Support sIFR — a technique that allows usage of non web-safe fonts on the web site

        u  Easy to update

         

        HTML Email Templates

        Development of email template and separate text only version, optimized for mobile phones.

        Template is tested to work with all major email programs like

        u  Outlook 2003

        u  Outlook 2007

        u  Outlook Express

        u  Gmail

        u  Yahoo! Mail

        u  Hotmail

        u  Thunderbird

        u  Dream mail 

        If you have any query feel free to contact Steve Roche on  020 8582 0256   or  Put a no obligation quote to us click here