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 :