Friday, February 27, 2015

Set textview style Programmatically in android

Setting the textview font size programatically is a simple procedure. For doing the same you can follow the below code:

Programmatically set text as bold,italic or underline :

Thursday, February 26, 2015

Reopen an activity in notification click in android

If you are looking to implement code for reopen an activity in notification click in android than follow the below code.

Example flow of the application for this type of functionality : If the application is not running and user click on notification than it will open the user dashboard and if the application is  and user click on notification than it will close the dashboard activity and reopen the activity page.

How to get package name in android

  If you want to fetch the package name of your app or currently opened app in android, than use the below code. Please let me know if you face any problem here.

//this will return package name of your app

Wednesday, February 25, 2015

Convert bitmap to String or vice-versa in android

If you want to convert a string to bitmap and bitmap into string than use the below code. please feel free to contact if you face any problem here.


//this method will convert bitmap to base64 String
public static String BitMapToString(Bitmap bitmap) {

Tuesday, February 24, 2015

Execute multiple asynctask at same time in android

AsyncTask empowers fitting and simple utilization of the UI string. This class permits to perform background operations and show results on the UI thread.

When we use AsyncTasks, than it only execute on a single background thread. Beginning with DONUT, this was changed to a pool of strings permitting numerous tasks to work in parallel. Beginning with HONEYCOMB, assignments are executed on a single string to stay away from regular application errors created by parallel execution.

Monday, February 23, 2015

Check network connectivity in android

Before providing any activity like accessing an application, loading emails, chatting, a user need to check whether he or she is connected to a network or not. For doing the same ConnectivityManager is used. It check whether a user is connected to a network or not and if the user is not connected than show an error message.

Saturday, February 21, 2015

Create a Circular image view in android

Here is my article which is showing code for creating a circular image view in android using canvas. Using canvas it is easy to make circular image with some java code and there is no library required to implement this functionality.

Create a Circular image view in android

Friday, February 20, 2015

Multiline Notification with user define tone in android

Today, I am explaining how to generate an individual notification with multiple lines of text similar to gmail.

Notification : A message which display to the user outside of the application's. User check the notification and open the notification for viewing the complete message.

Thursday, February 19, 2015

Custom progress dialog with animation in android

Loading images looks boring in "Android" with same arrangement of circle with Loading image. So here we run with some custom process dialog that will show some cool things. For doing or implementing the same you can use the below code.

public class TransparentProgressDialog extends Dialog {

Wednesday, February 18, 2015

Get list of YouTube video's URL (API v3)

Hello everyone, today I am providing a code for those android developers who wants to fetch the list of Youtube videos on their application rather than upload the same on the application and making it heavy and slow.


How to create a text view programmatically with required attributes

Here I am providing a way to create a text view programmatically with required attributes. Please check and let me know if you have any query for me.

LinearLayout.LayoutParams lparams = new LinearLayout.LayoutParams( LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);
lparams .gravity = Gravity.CENTER;

Monday, February 16, 2015

How to fetch registration ID for GCM in android

To send or get messages in Android, your application firstly needs to get an enrolment/registration ID. The enrolment/registration  ID which recognizes the gadget and application, furthermore figures out which third gathering application servers are permitted to send messages to this application case.

To get an enrolment / registration ID, you must supply one or more sender IDs.

Don't lose faith when you see others receive answers to their prayers

An elephant and a dog became pregnant at same time. Three months down the line the dog gave birth to six puppies. Six months later the dog...

 

G-Expo Template by Ipietoon Cute Blog Design