Posts

How to start Android App Development [Basic Guideline]

In this article I will describe how you will start Android app development. You can say that a basic guide line of android development. Unfortunately I will not describe in details but I will tell you how easily you can start Android App Development. I will try to give you the best tutorial links where you can find the proper documentation and learning tools. Mostly, I will try to refer official android link ( https://developer.android.com/develop/index.html ). Let’s Start: 1.        Environment set up: At first you need an IDE and Android development kit which is SDK. There are several IDEs to develop android but you can use Eclipse and Android Studio. Unfortunately developers will not encourage you to use Eclipse because Google declare their official IDE is Android Studio and they are working very hard to develop and update Android Studio. Now in 2017 Android Studio is much smarter than other IDEs. When you will download and install Android Studio then IDE will automatically incl

Comparison Between SOAP and REST

SOAP and REST can't be compared directly since the first is a protocol (or at least tries to be) and the second is an architectural style. This is probably one of the sources of confusion around it since people tend to call REST any HTTP API that isn't SOAP. Pushing things a little and trying to establish a comparison, the main difference between SOAP and REST is the degree of coupling between client and server implementations. A SOAP client works like a custom desktop application, tightly coupled to the server. There's a rigid contract between client and server, and everything is expected to break if either side changes anything. You need constant updates following any change, but it's easier to ascertain if the contract is being followed. A REST client is more like a browser. It's a generic client that knows how to use a protocol and standardized methods, and an application has to fit inside that. You don't violate the protocol standards by creating extr

Single Touch Image view in Android

Small description: When we want to touch a little image, our mental model wants to see that image as big size. In this repository, you will find how to create a generic class to make this functionality. Technique: I have used a class which has 3 constructors to receive Context, Bitmap, Uri, and Drawable id. public SingleTouchPhotoViewer (Context context, Bitmap bitmap) { this .context = context; this .mBitmap = bitmap; openDialogue(); } public SingleTouchPhotoViewer (Context context, String uri) { this .context = context; this .mUri = uri; openDialogue(); } public SingleTouchPhotoViewer (Context context, int drawableId) { this .context = context; this .mDrawable = drawableId; openDialogue(); } I create a layout which has a single ImageView to view the desired photo. dialog_imageview.xml <? xml version= "1.0" encoding= "utf-8" ?> < LinearLayout xmlns:a

How to get SIM number and IMEI number in Android?

How to get SIM number and IMEI number in Android? Step 1: First, in the manifest file have to add a permission which is "READ_PHONE_STATE". This will enable to get Telephony manager where we can find the mobile number and so on. <? xml version= "1.0" encoding= "utf-8" ?> < manifest xmlns: android = "http://schemas.android.com/apk/res/android" package= "com.bs23.aliahmed.simnumber" > < uses-permission android :name= "android.permission.READ_PHONE_STATE" /> < application android :allowBackup= "true" android :icon= "@mipmap/ic_launcher" android :label= "@string/app_name" android :roundIcon= "@mipmap/ic_launcher_round" android :supportsRtl= "true" android :theme= "@style/AppTheme" > < activity android :name= ".MainActivity" > < intent-

Android Spinner with Dialog Box

Why this post? Sometimes for visual effect, we need to show the spinner item in a dialog box which is most customizable and designable. UX engineers also try to make the more complex situation. That's why I made a spinner where spinners item will be shown in the dialogue box. Techniques which I used: For this purpose, I used Dialog, RecyclerView and EditText. 1. When clicked on EditText a Dialog Box will appear. 2. Dialog box holds a RecyclerView with an adapter where adapter holds a TextView. 3. Then implement a OnItemClick listener in RecyclerView. 4. Then item text will set on EditText. Codes with Description: Dialog layout: dialog.xml <? xml version= "1.0" encoding= "utf-8" ?> < LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" android :orientation= "vertical" android :layout_width= "match_parent" android :layout_height= "match_parent" > <