mobile app development Archives | Online Productivity Solutions Pvt. Ltd. Tue, 22 Oct 2019 09:11:00 +0000 en-US hourly 1 Kotlin – The next step for android https://opspl.com/blog/kotlin-the-next-step-for-android/ https://opspl.com/blog/kotlin-the-next-step-for-android/#respond Fri, 04 Oct 2019 09:10:14 +0000 https://opspl.com/?p=10468 Developers at Google have been creating support to be able to ease the transition with cross compatibility of Java and Kotlin being used together.

The post Kotlin – The next step for android appeared first on Online Productivity Solutions Pvt. Ltd..

]]>
Android…, No, I’m not talking about an AI Robot, but that mobile OS that has different candy versions. It was founded by 4 people, and like all great things, it usually comes with a difficult beginning. It’s intention at the time of inception in 2003 with just about $10,000 wasn’t at all for mobile phones or TVs but rather for digital cameras. But that didn’t work out too well and that’s when they switched over to mobile devices.

Google saw the potential that android had to offer and bought it in 2005 for a whopping $50 million. Android is based on a modified Linux kernel. So why am I telling you this? Because to know where you are heading, you should know what has led you to it.

To build a functional app that can run on Android, the primary language used is Java. What’s Java you say? Well, in short, its a very powerful class-based, object-oriented programming language … another topic for another day. Java, had been the reigning language used to develop applications for Android until 2017. And like all the great ones, they have a prodigy, namely Kotlin which was born out of the aspiration of heightened productivity at Google. For the past 2 years, those geeky developers at Google, much like you and me, have been creating support to be able to ease the transition with cross compatibility of Java and Kotlin being used together. And now Kotlin is all grown up and has taken over the mantle to be able to develop applications for Android.

So what’s the prodigy got that makes it better to use than an already existing powerful programming language? Well here are some of them:

• Brevity

In simple words, it would actually mean using simple words, It would be concise. A piece of code that would take Java about 20 lines of code could be accomplished in half with Kotlin.

• Interoperability

Kotlin’s core purpose is Interoperability. Using everything that is already known, the developers aim was to create modules that would work flawlessly with existing Java code. A Kotlin compiler allows it’s own code along with Java code to work in unison.

• Inbuilt Null Safety

If you’ve developed an android app using Java, you could have probably frequently encountered a lot of Null Pointer Exceptions. Android relies on a Null value to represent an absence of a non-null value. But null, if not handled, can usually be the start to many problems that cause your app to crash. Kotlin solves this problem by inherently incorporating null safety. This in turn, saves the developer a lot of coding time that can be used elsewhere.

• No RAW types

RAW types used to be used for backward compatibility, but again, the problem would be that it would sometimes throw a CastClassException Error that would occur only during runtime and not compile time. Generics are now being used to overcome this limitation.

• No Checked Exceptions

Checked Exceptions are basically exceptions when the compiler forces the caller of a function to catch or re-throw an exception. In simple terms, they are empty catch blocks sometimes. So Kotlin has removed them entirely which in turn provides verbosity and improves type-safety.

The above mentioned points are some of many benefits of using Kotlin, So should you switch over to it right now? If you are already well versed with Java, then the transition should be relatively easy. There are mixed opinions in the developer community where Java will gradually not be used any more and will be replaced by Kotlin altogether.

In my opinion, I’d say, go for the switch, because I can see two key benefits that would majorly help me as a developer especially on large projects. The first being, reduced project timelines. If you’ve paid attention to anything I’ve written, you’d have deduced that fewer lines of code would need to be written which would help you solve more problems with lesser time. The second being, fewer app crashes, which is also linked to the first point because, reduced development time would also mean more time with support for maintenance. With simplified code and enhanced readability, it would be easier to debug and find bugs if any.

There are roughly about 3 Million developers already on board with using Kotlin for developing apps for Android. And it doesn’t look like Kotlin will be disappearing anytime soon. If you are interested in finding out more about Kotlin, visit the Android website.

 

Ian Coutinho

The post Kotlin – The next step for android appeared first on Online Productivity Solutions Pvt. Ltd..

]]>
https://opspl.com/blog/kotlin-the-next-step-for-android/feed/ 0
My Experience with Xamarin Forms https://opspl.com/blog/xamarin-forms/ https://opspl.com/blog/xamarin-forms/#respond Fri, 11 Jan 2019 11:26:06 +0000 https://opspl.com/?p=7928 As the definition goes, Xamarin forms is a library used to build native UIs for iOS, Android and Windows Phone from a single, shared C# codebase. Xamarin was released in February 2013. In February 2016, Microsoft purchased it and bundled it with Visual Studio. Initially, Xamarin supported only Android, iOS and Windows Phone. But later...

The post My Experience with Xamarin Forms appeared first on Online Productivity Solutions Pvt. Ltd..

]]>
As the definition goes, Xamarin forms is a library used to build native UIs for iOS, Android and Windows Phone from a single, shared C# codebase. Xamarin was released in February 2013. In February 2016, Microsoft purchased it and bundled it with Visual Studio.

Initially, Xamarin supported only Android, iOS and Windows Phone. But later on, it also added support for WPF. When we create a Cross-platform Xamarin.Forms project, the sub-projects for Android, iOS, and UWP are created by default. We can explicitly add a WPF project as well. But from my past experiences, I can say that WPF is still not completely integrated correctly as it has many problems with the design. There was a requirement for a Cross-platform app and the client wanted it in Xamarin forms, that would also include Windows Desktop.

Initially, it looked fine on all the platforms. But as we proceeded further, we could see the obstacles coming our way. For example, to add a simple Alert box to display messages. The alert box is responsive in Android and UWP, but not in WPF. No doubt, there is a workaround to have platform specific code only for WPF. But in my opinion, if it has been integrated with Xamarin Forms, it should have been responsive, similar to the way it works on other platforms.

The other issue that I came across was the toolbar items. When we navigate to another page (using Navigate.PushAsync()), the toolbar items of the previous page are replicated on the current page. And not only that but when we navigate back to the calling page (using Navigate.PopAsync()), the toolbar items of the child page are again copied to the parent page. It is ridiculous because it works perfectly fine on other platforms. But this problem occurs only in WPF. I have posted the issue in Xamarin forums as well as in StackOverflow, but in vain. There is a workaround to create your own custom toolbar on each page and add the necessary styles for the icons and text. But it would have been good if Xamarin had integrated it correctly.

There are many other issues with WPF within Xamarin Forms. So hoping that they soon release their new version, wherein, WPF has been integrated correctly. Overall, it is a very nice library and there are many plugins developed by different programmers for the various functionalities including recording of voice. It is a good library, using which, we write just one set of code for a page, irrespective of the different platforms and it shows up and works fine on all of them.

 

Severina Dsouza

The post My Experience with Xamarin Forms appeared first on Online Productivity Solutions Pvt. Ltd..

]]>
https://opspl.com/blog/xamarin-forms/feed/ 0
6 Reasons to Invest in a Mobile App for Your Business https://opspl.com/infographic/6-reasons-to-invest-in-a-mobile-app-for-your-business/ https://opspl.com/infographic/6-reasons-to-invest-in-a-mobile-app-for-your-business/#respond Fri, 14 Dec 2018 10:41:55 +0000 https://opspl.com/?p=7892 Today mobile apps are not solely owned by big and popular brands like Nike and Starbucks. In fact, there has been an increase in the number of small and medium scale enterprises investing in customized mobile apps. Most businesses now realize that an effective marketing strategy goes above and beyond just a mobile-optimized website. There...

The post 6 Reasons to Invest in a Mobile App for Your Business appeared first on Online Productivity Solutions Pvt. Ltd..

]]>
Today mobile apps are not solely owned by big and popular brands like Nike and Starbucks. In fact, there has been an increase in the number of small and medium scale enterprises investing in customized mobile apps. Most businesses now realize that an effective marketing strategy goes above and beyond just a mobile-optimized website. There is unlimited marketing potential for businesses through a customized mobile app as there’s been a shift of online activity to mobile. This is a result of the ever-increasing use of mobile devices and applications.

With the development of business mobile applications, the way businesses engage and interact with customers has changed and become more efficient. It has enabled easy and anytime access to customers, improved customer experience and helped bridge the communication gap between businesses and customers. Mobile apps have helped businesses reach new levels of marketing, keeping them ahead of the competition.

If you’re still not sure why your business should invest in a mobile app, here are top 6 reasons that will convince you to walk down this path.

6 Reasons to invest in a mobile app for your business

All sizes of businesses; small, medium and large have stepped into the world of mobile marketing due to its numerous benefits and outstanding potential. Mobile apps have become an important element of marketing for businesses. If you wish to have an edge over your competitors, it’s time to invest in a customized mobile app!
We have an expert mobile app development team to help you build the next big mobile app! Contact our experts today.

The post 6 Reasons to Invest in a Mobile App for Your Business appeared first on Online Productivity Solutions Pvt. Ltd..

]]>
https://opspl.com/infographic/6-reasons-to-invest-in-a-mobile-app-for-your-business/feed/ 0
Flutter – Open Source, Cross Platform App Development Kit https://opspl.com/blog/flutter-app-development-kit/ https://opspl.com/blog/flutter-app-development-kit/#respond Fri, 07 Dec 2018 12:08:50 +0000 https://opspl.com/?p=7869 Flutter is a cross-platform, open-source app development kit specifically for mobiles on which Google has been working on for the last few years with a number of developers within and outside the Company. This platform is based on C/C++ but most of it is based on Dart. Flutter is an entire widget based UI. Most...

The post Flutter – Open Source, Cross Platform App Development Kit appeared first on Online Productivity Solutions Pvt. Ltd..

]]>
Flutter is a cross-platform, open-source app development kit specifically for mobiles on which Google has been working on for the last few years with a number of developers within and outside the Company. This platform is based on C/C++ but most of it is based on Dart.

Flutter is an entire widget based UI. Most of its UI is created using pre-defined components called widgets. It doesn’t end here. Flutter also has its own engine to render on Android and iOS platform. These components are based on the latest Material design.

The app is built using Flutter’s inbuilt UI components called widgets. The right widgets along with the right properties to make a beautiful UI.

The widgets can also be nested inside other components and can use the same properties from its parent component. In Flutter, there are only a few files created as the layout and functionality is defined in the same file called Dart.

A  few screenshots of the materialistic UI

Dart is a programming language used to develop mobile, web and server apps. It can also be used for the latest IoT devices as well. This language was initially developed by Google.

The language Dart has been influenced by many languages, mainly Java. A Java programmer will easily notice the similarities between the two languages. Dart supports abstraction, encapsulation, polymorphism and inheritance as it is an object-oriented programming language. Even though Flutter is written in Dart, it develops apps by borrowing the best features of React.

Well, let’s talk about the Pros:

  • You can develop android apps on a relatively low-end system. By low end, I mean a basic 2 GB ram and dual core processor system using the latest Android Studio.
  • It has hot reload which basically means that you can see the change you make in the code instantly, much faster than Android Studio’s instant run feature.
  • It’s a reactive framework, so now you don’t have to update the contents of the interface manually, instead just update the variables in the code.
  • No separate layout files created for UI and functionality, all of this is created in the Dart file alone.
  • It is cross-platform.

And here are some of the Cons:

  • It’s still in its early stages so we can’t expect it to be smooth and intuitive in every field.
  • It doesn’t have a web view, so web pages can’t be displayed within your view, you’ll have to download a plug-in to launch a new activity.
  • Paddings, margins and setting other layout properties is difficult at the start, as it’s not very intuitive when you first look at it.
  • Apk of a Flutter app is much heavier compared to a native app . (Around 6-7 MB per app)

Have you used Flutter? let us know your feedback in the comments below! For anyone who hasn’t tried it, its a great tool to explore android app development.

 

Febster D’Silva

The post Flutter – Open Source, Cross Platform App Development Kit appeared first on Online Productivity Solutions Pvt. Ltd..

]]>
https://opspl.com/blog/flutter-app-development-kit/feed/ 0