Posts

Kotlin - Big word for android developers

Image
Hello  I am back with one another new concept for android developers Technologies & languages are getting updated with time... & here is one another "Kotlin language" What is "Kotlin"? Kotlin is a " Statically typed programming language  for modern multi-platform applications". Best thing is kotlin is 100% inter operable with Java and Android. What does it look like? Concise, simple and very easy to read (and write) package hello //Optional package header //Package-level function, which takes an Array of strings as a parameter fun main(args: Array<String>) { println("Hello World!") //Have you noticed? Semicolons are optional } Why use Kotlin for Android Development? 1. Concise : Drastically reduce the amount of boilerplate code. Examples : Create a POJO with getters, setters, equals(), hashCode(), toString() and copy() in a single line: data class Customer ( val name : String , val e

Android Layout Finder - Open Source Tool

Hello, If you are android developer, you are familiar with findViewById() & findFragmentById() . Sometimes you will have so many views in your xml & you require almost all views in Java & do findViewById for each of views, which is very tedious task. for e.g. You have 20 views in xml & you need to declare 20 variables & findViews for all 20 .. Isn't it very tedious to write all same lines again and again? Your answer will surely be YES. Don't worry because we have one open source tool In which we just need to pass our xml file & tool will generate all views declaration & initialise for you, Isn't it quite exciting.. let's give one try. Android Layout Finder ! "Android Layout Finder" is open-source and licensed under the GNU (General Public Licence). If you want some change for your use & also if it can help others then, the source code can be found on GitHub. Check this out. http://www.github.com/jesperborgs

App Store optimization (ASO) - Android & IOS

Before launching an app..........  You have to be prepared with a groundbreaking app marketing strategy. Optimizing the title of the app, adding a description and other features that can best control the app are a few things to be conceived even before the app hits stores.  The success of apps across app stores is largely determined by SEO. But,  ASO (App Store Optimization)  is the new idea. With careful and planned measures, you can also take your app to new heights using these ASO strategies. A little bit of trial and error can help you catapult past your rivals in the app store and you can find your app on the top of charts. Let's see how it works: 1. Understand Your Target Audience and Competition Before launching an app, you have to study the market and your targeted customer base. A perfect ASO strategy always emphasizes on understanding how customers would use the app as well as the deeper view of competitive landscape. Here are a few questions

FCM - Firebase cloud messanfing for Notification

Image
This post will cover step by step how to send a push notification from Firebase console to an app. What is push notification? Before digging into the details how to send notification in Android, it is useful to clarify what is a push notification. Using Android push notification, our app can notify a user of new events. This happens even if our app is not working in foreground. Using this service, we can send data from our server to our app whenever a new event occurs. This paradigm is much more efficient respect to keep on connecting to the server (pull method) to ask if there are new events. Using push notification, we can keep the user informed about events without draining the smartphone battery. When a user receives the notification, it appears, as a customized icon, in the status bar. There are different paradigm to use when sending a push notification:  Message to a single device  Message to a topic (send the same message to the multiple devices subscribed to a specif

Hide eye icon in edittext with password as input type while using material design

This issue is faced when you are using material design's edittext. Here, i am going to show you how to remove eye icon or right side of edittext with password as inputType. Add below line in parent view of xml layout xmlns: apps= "http://schemas.android.com/apk/res-auto" Add below line in TextInputLayout apps: passwordToggleEnabled = "false" it will looks like below : import com.amazonaws.auth.BasicAWSCredentials; import com.amazonaws.mobileconnectors.s3.transferutility.TransferListener; import com.amazonaws.mobileconnectors.s3.transferutility.TransferObserver; import com.amazonaws.mobileconnectors.s3.transferutility.TransferState; import com.amazonaws.mobileconnectors.s3.transferutility.TransferType; import com.amazonaws.mobileconnectors.s3.transferutility.TransferUtility; import com.amazonaws.services.s3.AmazonS3Client; <android.support.design.widget.TextInputLayout android :id= "@+id/pin" android :layout_width= "

Create shapes online - Android Shapes Generator

Here, is the small online tool, which will help in creating drawable online. we just need to give background, border, border radius & some other details & this tool will provide you code for that.. Name of the tool is : Android Shapes Generator This small, Designer will help you save time and effort when designing interfaces for Android programs. Using visual tools to adjust the appearance and color. Then generate the xml code and use in your projects. In the future they are going to add collection of templates and themes. It's so easy, try it out. here, is the link : http://shapes.softartstudio.com/ This tool willl make your life easy and will save your time.... you can change code according your requirement... hurrryyyyyyyyyyyyyyy....................... Time is Money, so save it ;) Go for it...........

Amazon AWS s3 private Bucket video streaming

Amazon AWS s3 private bucket video streaming is so simple.. Add below permission in menifeast : < uses-permission android :name = " android.permission.INTERNET " /> Add below dependency in gradle file : compile ' com.amazonaws:aws-android-sdk-s3:2.3.0 ' Write below code lines to get private streaming url to stream video : AWSCredentials myCredentials = new BasicAWSCredentials ( {AWS_ACCESS_KEY_ID} , {AWS_SECRET_KEY} ); AmazonS3 s3client = new AmazonS3Client (myCredentials); s3client. setEndpoint ( {AWS_END_POINT} ); GeneratePresignedUrlRequest request = new GeneratePresignedUrlRequest ( {AWS_BUCKET} , {AWS_KEY} ); URL objectURL = s3client.generatePresignedUrl(request); Uri url = Uri.parse(objectURL.toString()); Initialize media controller & play video in video view VideoView mContentView = ( VideoView ) findViewById(R.id.surface); MediaController mController = new MediaController (this); mController. setAnchorView (mContentView); mCon