Add Back Button In Webview Android
Add back button in webview in android application
Continue ReadingAdd back button in webview in android application
Continue ReadingHere is simple function to generate slug in php. You can copy paste this function and generate slug by passing string in it. function slugify($text){ // replace non letter or digits by – $text = preg_replace(‘~[^\pL\d]+~u’, ‘-‘, $text); // transliterate $text = iconv(‘utf-8’, ‘us-ascii//TRANSLIT’, $text); // remove unwanted characters $text = preg_replace(‘~[^-\w]+~’, ”, $text); // […]
Continue ReadingSetup custom Cakephp 3 form validation on form from Model or in Controller. cakephp 3 custom validation trinitytuts
Continue ReadingA simple tip to download multiple image from website folder to your system using wget command. wget -nd -r /var/www/html/mysite/images -A jpeg,jpg,bmp,gif,png http://mysite.com/folder/image/ This command download all images. 🙂
Continue ReadingSome time while we creating project in android studio the main issue we faced is speed and performance. So here is solution which i use to solve this issue. For Ubuntu Users Go to location where you install your android studio eg. /home/jgd/Drive/work/software/android-studio/bin Now open terminal on same location by right click and in terminal write […]
Continue ReadingLast updated on August 1st, 2019 at 05:03 pmIn this post I explain to you how to send multiple images on WhatsApp from your android application using simple intent. ArrayList imageUriArray = new ArrayList(); imageUriArray.add(Uri.fromFile(imageFile)); imageUriArray.add(Uri.fromFile(imageFile)); Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND_MULTIPLE); intent.putExtra(Intent.EXTRA_TEXT, “https://www.trinitytuts.com”); intent.setType(“text/plain”); intent.putParcelableArrayListExtra(Intent.EXTRA_STREAM, imageUriArray); intent.setType(“image/jpeg”); intent.setPackage(“com.whatsapp”); startActivity(intent); Above code is very easy […]
Continue ReadingIn this tip i show you how to fix multidex error when you building android application this error occur when you add multiple library and the space they need is not available. I also face this issue when i add fabric crashlytics in my android application and here below what i do to solve this […]
Continue ReadingIf you are working with cakephp 3 and need to send email then this tip help you to send email. Step 1. Go to your app.php and find EmailTransport and add your SMTP details ‘EmailTransport’ => [ ‘default’ => [ ‘className’ => ‘Mail’, // The following keys are used in SMTP transports ‘host’ => ‘My_HOST’, ‘port’ => […]
Continue ReadingIn this tips i will explain you how to remove software in linux using CMDÂ (Command line). Follow simple steps. Step 1. Open terminal from menu or press ctrl+alt+t. Step 2. Enter command to get list of installed software. dpkg –list Step 3. Now run command to remove software sudo apt-get –purge remove your_application_name when you […]
Continue ReadingLast updated on October 10th, 2016 at 11:49 amIn this tip i will explain you how to setup FTP server on your.  Follow simple steps to configure FTP on server. Step 1. First install vsftpd on your server sudo apt-get install vsftpd Step 2. Now open and edit vsftpd.conf and change some setting in it anonymous_enable=NO […]
Continue ReadingLast updated on October 10th, 2016 at 11:48 amHere is simple and shortcut method to get your SHA1 from android. We need SHA1 to verify on some application like Google and Facebook need your SHA1 to generate or verify your application. Follow below step to get your key. follow bellow simple step as shown in […]
Continue ReadingLast updated on May 26th, 2018 at 03:10 pmThis tip helps you enable your CakePHP 3 debug kit follow simple steps to enable your debug kit. Enable Debug Kit in CakePHP 3 Step 1. Open terminal and run following command, before enter below command go to the root directory of your project composer.phar require –dev cakephp/debug_kit […]
Continue ReadingIf you have multiple div’s with same class and you wan’t to show or hide specific div using jQuery you can use this code. If you want to count no of time same class called jQuery(“.myClass”).length If you want to show or hide specific div use this jQuery(“.myClass”).eq(0).hide(); 🙂
Continue ReadingIf you have multiple div’s with same class and you wan’t to show or hide specific div using jQuery you can use this code. If you want to count no of time same class called jQuery(“.myClass”).length If you want to show or hide specific div use this jQuery(“.myClass”).eq(0).hide(); 🙂
Continue Readingow to open google maps and navigate between two location or between your current location and destination location Here is simple and fast way to done. Intent intent = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(“http://maps.google.com/maps?saddr=” + latitudes + “,” + longitudes + “&daddr=” + latitude + “,” + longitude)); startActivity(intent); Hope this will help 🙂
Continue Reading