Langsung ke konten utama

Postingan

Circle Image View using Glide and Picasso in Android

Hello guys, In this tutorial we will learn how to create Circular Image View in Android without using any additional Libraries such as CircleImageView . // This Library is very Popular and Widely used for Circle Image View compile 'de.hdodenhof:circleimageview:2.1.0' Nowadays, Every Android Developers uses Glide  or Picasso Image HTTP Libraries to Image in Image Views. If we uses any additional Libraries to get Circle Shaped Image View may lead to increase the size of an APK. To avoid this, Glide and Picasso provides solution to create Circle Image View. First, we will see how create circle image using Picasso. Circle Transformation using Picasso Download Picasso by Gradle in Android // This Library is created by Square.Inc compile 'com.squareup.picasso:picasso:2.5.2' The following snippet is used to load image into ImageView using Picasso Picasso.with(getApplicationContext()).load("http://i.imgur.com/DvpvklR.png") .placeholder(R.mipmap.ic_launcher) ...

Kotlin - Basics

Hello Guys, we already knew that Google announced Kotlin is a new first class language for Android Development. So, we started the Kotlin series for learning Kotlin for android. We have seen the "Hello World" Program for Android in our previous post.  You can download Intellij idea Commuinty Edition or use Kotlin Online Compiler provided by Intellij In this post, we will learn the basics of kotlin. 1. Hello World The Following Snippet shows the Hello world Program and is similar to Java. fun main(args: Array <string>) { println("Hello, world!") } 2. Variables and Constants The Following Snippet shows the How to use Variables and Constants with Datatype in Kotlin. Variables can be re-assigned  // Variable - Values Can be reassigned var a = 10 a = a + 10 println(a) Constants cannot be re-assigned and if we did will error as "val cannot be reassigned" // Constants - Values cannot reassigned val x = 10 println(x) We can specify the Data types for...

Hello World - Kotlin

Kotlin - Android Programming Language Google officially announced Kotlin as a first class language for Android development at Google I/O 2017. From Android Studio 3.0, Kotlin is included as  Support for Android Studio. In this post, we will start the development of Android Application with Kotlin. To Getting Started, you have to download Android Studio 3.0 Canary 1  or Add the Kotlin plugin in your existing Android Studio. Create Android Project with Kotlin Create new project in Android studio check the Kotlin support and start as usual with Android Studio 3.0.  Android Studio 3.0 But for Android Studio with version less than 3.0, we have install plugin form Plugins menu manually by Selecting File-->Settings-->Plugins-->Browse Repositories--> Search and Select Kotlin. Then Click Install Now inside activity_main.xml create the following UI <?xml version="1.0" encoding="utf-8"?> <android.support.constraint.ConstraintLayout xmlns:android="htt...

Android Place Picker API

Hello guys, today we gonna learn one of the greatest API for android provide by Google is called Place Picker API. This API is used to Pick Place from Google Maps Application without any Map Integration.  The PlacePicker provides a UI dialog that displays an interactive map and a list of nearby places, including places corresponding to geographical addresses and local businesses. Users can choose a place, and your app can then retrieve the details of the selected place.  Project Setup You should follow the steps as proceeded below Step 1 - Get Your SHA1 Key For using Google Places API, We need to know SHA1 Key, which is used in Google Developer Console . You can get your SHA1 Key using Command Prompt. keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android Step 2 - Enable Google Places API in Developer Console Open Google Console Site . Create New Project or You can use your Existing Project. Go to Dashboar...

Hands on Xamarin Platform Pipeline - Build - Setup automatic build on git push

In this article I'll show you how to setup the automatic build of our 'RememberIt' application after every git push using Visual Studio Mobile Center. The automatic building of the application will help to ensure that in a team of developers the application is always building successfully and is available for distribution. When the build is broken, it can be seen and solved quickly. If not yet done, please read  the previous post  in the Hands on Xamarin Platform Pipeline series. To start, browse to Visual Studio Mobile Center then select the application we created on the previous post . Select Build menu, the supported version control system are: - Visual Studio Team Services - Github - Bitbucket In our case, we'll use Github. Authorize Mobile Center to access to your Github repositories. Select the repository where 'RememberIt' application is hosted. Select the desired branch, in our case it's the master branch. Now, select the connected application proje...

SQLiteToExcel v1.0.1

This is a Light weight Library to Convert SQLite Database to Excel and Convert Excel to SQLite. I have already released version 1.0.0 . It is suitable to export SQLite Database to Excel. But, In version 1.0.1 I have Included following features Features Added Functionality to Import Excel into SQLite Database. Added Functionality to Export Blob into Image. Added Functionality to Export List of tables specified. Sample App The sample app in the repository is available on Google Play: How to Download Add the following library in your app level gradle file compile 'com.ajts.androidmads.SQLite2Excel:library:1.0.1' How to Use Add Permission to Read External Storage in AndriodManifest.xml <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> Export SQLite to Excel This line is used to save the exported file in default location. SqliteToExcel sqliteToExcel = new SqliteToExcel(this, "helloworld.db"); This line is used to save the exporte...

Hands on Xamarin Platform Pipeline - Develop - Add Facebook authentication

In this article I'll show you how to add Facebook authentication to the "RememberIt" mobile application. If not yet done, please read the previous post in the Hands on Xamarin Platform Pipeline series. Facebook app creation In order to be able to add Facebook authentication, we need to create a Facebook App. To do this, navigate to: https://developers.facebook.com/apps , click on "Add a New App" button then fill in the application information. Go to Settings then copy the App ID. Then always in Settings, click on Add Platform then Select Android. Fill in the following information: - Google Play Package Name: the package name defined in Android Manifest file. - Class Name: MainActivity in our case. - Key Hashes: where we can add Debug and Release Android key hashes. To generate the Debug Key hash, open the terminal then run the command below: Use 'android' as password then copy-paste the generated hash key. Now, click on Add Product under Products catego...