Skip to main content

Posts

Showing posts from March, 2013

Twitter Integration with android

First of all , you must have an account with twitter .If you don't have means just go to   Twitter site  and Sign up. Then go to  this link   and sign in with your account you've created before . Now goto "My applications" there you can find create a new application . Fill the fields shown there(All fields are preferable ,don't leave any fields blank ). In website and callback URL ,you need to type like http://********** .for an Instance http:// www.google.com is preferred than  www.google.com . If all is done,then click Create your twitter application. Once your application is created, click on the settings tab  and select “ Read and Write ” in “Access” from the “Application Type” section (shown in pic below). This will enable sending tweets from your applications. Note : These are basic settings. You may also choose to upload icon, mention organization name/website, change OAuth setting of your application.  IF THE IMAGES BELO...

Circular Seek Bar - Example

MyView.java package com.rakesh.androidcircularseekbar; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; public class MyView extends View {     /** The context */     private Context mContext;     /** The listener to listen for changes */     private OnSeekChangeListener mListener;     /** The color of the progress ring */     private Paint circleColor;     /** the color of the inside circle. Acts as background color */     private Paint innerColor;     /** The progress circle ring background */     private Paint circleRing;   ...

Notification Example

package com.collabera.labs.sai; import android.app.Activity; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; public class SimpleNotification extends Activity { private NotificationManager mNotificationManager; private int SIMPLE_NOTFICATION_ID; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); mNotificationManager = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); final Notification notifyDetails = new Notification(R.drawable.android,"New Alert, Click Me!",System.currentTimeMillis()); Butt...