Authorabhijit.kurlekar

IntentService on Android– asynchronous background tasks made easy

I

IntentService on Android– asynchronous background tasks made easy. Android services are the workhorses of the platform. They allow applications to run long running tasks and give functionality to outside applications. Unfortunately, since they run in the background and are not visually obvious to developers, they can be a source of major headaches. If you have seen an ANR (activity not...

Send Mail with Image

S

How to send the image to the mail in android for these you can refer the following code Getting image from Web InputStream is = (InputStream) new URL("Image URL").getContent(); // storing image from stream Drawable drawable = Drawable.createFromStream(is, "srcName"); is.close(); // converting drawable object to Bitmap to store in content providers of Media Bitmap bitmap = ((BitmapDrawable)...

Multiple Android Activities in a TabActivity(Single tab can open multiple activity)

M

The problem that I had was when I started a new activity it covered up the Tabs on my TabActivity. I could put a single Activity into a Tab, but adding a second Activity resulted in losing view of the Tabs. Then I learned about ActivityGroups which have a LocalActivityManager. I realized it was possible to have multiple Activities within an ActivityGroup after all this is what a TabHost does. I...

How to store the data in to the SD-card and to delete this stored data when the application is uninstalled in Android

H

For Guidance follow this link store file in to the sdcard use this code private File cacheDir; if (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) cacheDir=new File(android.os.Environment.getExternalStorageDirectory(),"/Android/data/YOUR PACKAGE_NAME/files/"); else cacheDir=context.getCacheDir(); if(!cacheDir.exists()) cacheDir.mkdirs(); } If...

How to Integrate the Paypal in Android Application

H

Hi, Everybody know about paypal in real time . and this post may be helpful for you in you want to integrate paypal in your android application for any payment processes. Paypal REleased an API and Library for MObile Integration. You can integrate by using PAYPAL Mobile Libaraies. PayPal Mobile Library => PayPal MerchantSetupAdministrationGuide PayPal sandBOX Document => PayPal MOBILE...

How To do Push notification in android by using C2DM

H

Step 1: Sign-up for a C2DM account with Google Follow the steps here. Normally takes a day or so before you are ready to roll.==> Step 2: Setup your Manifest Overview of the manifest changes: 1. Permission to receive C2DM messages 2. Access to the internet 3. Restrict access to your C2DM messages so no other app can see them 4. Declare a Receiver, that we’ll create later, that will let us...

How to move the image on touch in android

H

image.setOnTouchListener(new View.OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { layoutParams1 = (RelativeLayout.LayoutParams) image.getLayoutParams(); switch(event.getActionMasked()) { case MotionEvent.ACTION_DOWN: break; case MotionEvent.ACTION_UP: x_cord = (int) event.getRawX(); if (x_cord la.getWidth()) { x_cord= la.getWidth();...

To Add the Cover Flow in Android

T

The basic idea is that the Coverflow widget works very much like the standard Android Gallery widget, but with the addition of the rotation of the images. For more background information on the Coverflow widget see my original post 1>Write the Two Class 1. CoverFlow and second is Your Activity in which onCreate() is Present     public class CoverFlow extends Gallery { private Camera...

To get the Multiple Notification on android Device

T

use this code to get the multiple notification on Android Device TO write this code on the set timer Intent intent = new Intent(SecondActivity.this, MyBroadcastReceiver.class);   intent.putExtra(“ID”, 10);   intent.putExtra(“Val”, “me aahe”);   final int intent_id= (int) System.currentTimeMillis(); PendingIntent p1 = PendingIntent...

Category