You can check internet is accessible or not when your device connected with WIFI with following code. You need to import Reachability.h & Reachability .m in Appdelegate class and do following code in didFinishLaunchingWithOptions: function. self.reachability = [Reachability reachabilityWithHostName:@”www.google.com”]; //self.reachability = [Reachability reachabilityForInternetConnection]; // Start Monitoring …
Technology
Change the titleLabel of UIButton which title type is Attributed in Storyboard / Xib file
Issue : I have use below code to change Title and set underline of UIButton at run time. [btnTemp setTitle:@”Test” forState:UIControlStateNormal]; I have got below issues: 1. Underline is not showing 2. Title not change 3. Title color is display default black. To overcome this …
Display list of UITextField in UITableview
Question : How to make list of UITextField in UITableview ? Review the below steps and try your own. 1. Implement one model class of .h and .m which is subclass of NSObject. //Here Class name is TextFieldFormElement.h and TextFieldFormElement.m 2. Declare the property for …
Remove mirror(flip,invert) effect after capturing photos from front camera
If you are using API level >= 14, you can easily use a TextureView to mirror the preview image back to the original. for SurfaceView you can apply Matrix to a captured Bitmap in onPictureTaken method. private Camera.PictureCallback mPicture = new Camera.PictureCallback() { @Override …
Android Nougat Support : FileProvider Concept
In Android N, Opening a file from the SD card is different. When targeting Android N, file:// URIs are not allowed anymore. We should use content:// URIs instead. FileProvider class is used to give access to the particular file or folder to make them accessible …
Frame By Frame Animation On Marker Android.
Frame By Frame Animation: Frame by frame animation is an animation in which sequence of images replaces on image view. This animation supports on image view in android. Problem: How to do same animation on google map location marker ? Impediment: addMarker() method of GoogleMap …
Setup openfire In Ubuntu 14.04
Port Open for installation of openfire : General Port 5269, 7777, 5229 http ports 9090 , 5222, 7070, 5262, 5275 https ports 9091, 5223, 7443, 5263, 5276 Installation steps for installing openfire In Ubuntu 14.04 — sudo apt-get update * If java is installed then …
Solution for MySQL Error : Host ‘host_name’ is blocked
If the following error occurs, it means that mysqld has received many connection requests from the given host that were interrupted in the middle: Host ‘host_name’ is blocked because of many connection errors. Unblock with ‘mysqladmin flush-hosts’ The value of the max_connect_errors system variable determines …
Get typing status of EditText in Android
You can determine whether the user is typing or not you have to create one CustomEditText class which extends to EditText. This type of functionality is widely used in Chat application. Here is a snippet of CustomEditText public class CustomTypingEditText extends CustomEditTextNormal implements TextWatcher { …
Firebase customise notification when app is in background or killed
Firebase will not call your onMessageReceived when your app is in background or killed, and you can’t customise your notification. System generated notification will show. to make firebase library to call your onMessageReived in every cases a) Foreground b) Background c) Killed you must not …