Category:

Increase Android Studio Speed

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

Share multiple photos whatsapp android

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

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:

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:

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 :