Category:

Get Sha1 key from android studio

Last 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 Reading
Posted On :
Category:

Enable Debug Kit in Cakephp 3

Last 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 Reading
Posted On :
Category:

Draw path between two points in google map application

ow 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
Posted On :
Category:

Share Status on Facebook Android

This tip help you to share some text/link to Facebook from your android application. Copy below code and place where you you want to share no Facebook SDk integration required. String urlToShare = “https://trinitytuts.com”; Intent intent = new Intent(Intent.ACTION_SEND); intent.setType(“text/plain”); // intent.putExtra(Intent.EXTRA_SUBJECT, “Foo bar”); // NB: has no effect! intent.putExtra(Intent.EXTRA_TEXT, urlToShare); // See if official […]

Continue Reading
Posted On :
Category:

Tweet from android app

In this tip i am going to explain you how to post tweet on twitter from your android application. Copy bellow code and paste in your android app where you want to send tweet String tweetUrl = String.format(“https://twitter.com/intent/tweet?text=%s&url=%s”, urlEncode(“My Trinitytuts tweet”), urlEncode(“https://trinitytuts.com”)); Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(tweetUrl)); // arrow down to official Twitter app, […]

Continue Reading
Posted On :
Category:

Simple unrar in Ubuntu

This is very simple and easy way to UnZip  rar file in Ubuntu. Please follow these steps to unrar your rar file Step 1. Install unrar in Ubuntu type sudo apt-get install unrar Step 2. If you want to unzip file in same directory type this command unrar e -r /your_path/myfile.rar or in other directory or […]

Continue Reading
Posted On :
Category:

Install xampp server in ubuntu

If you are window user and currently switch to Ubuntu and want to install XAMPP server on your system then this post can help you to install and run Xampp. Follow below steps to learn how to setup XAMPP. Step 1. Download latest release of Xampp server from there official website or click here and download Xampp […]

Continue Reading
Posted On :
Category:

Set custom font family in android application

Some time we need to add custom font family in our android application. Here is simple and working technique you can use to add font family in your android application. Step 1. Create assets folder inside F:\location\app\src\main  in your project. Step 2. Create fonts folder inside assets and paste your font family inside it. Step 3. Now […]

Continue Reading
Posted On :
Category:

Upgrade MySql version on ec2 instance

Here is simple command which you can run on your ec2 instance using putty. Step 1. Login to instance using putty. Step 2. Before typing bellow command take backup of your database so you can export it again after upgrade. Step 3. Type below command sudo apt-get update sudo apt-get upgrade sudo apt-get install mysql-server-5.6 Once upgrade […]

Continue Reading
Posted On :
Category:

Set Navigation Button on custom toolbar android

To enable back/home button on custom toolbar and add click listener on it use bellow technique. Toolbar toolbarTop = (Toolbar) findViewById(R.id.toolbar_top); setSupportActionBar(toolbarTop); /*getSupportActionBar().setDisplayShowHomeEnabled(true); getSupportActionBar().setIcon(R.drawable.ic_action_home);*/ toolbarTop.setNavigationIcon(getResources().getDrawable(R.drawable.ic_action_home)); toolbarTop.setNavigationOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Intent homeInt = new Intent(SearchResult.this, Search.class); startActivity(homeInt); finish(); } }); 🙂

Continue Reading
Posted On :