CategoryAndroid

Toast With Image

T

Button toastwitimage; @Override    public void onCreate(Bundle savedInstanceState) {                           super.onCreate(savedInstanceState);                                                     setContentView(R.layout.main); toastwitimage=(Button)findViewById(R.id.twibtn);                      toastwitimage.setOnClickListener(new OnClickListener() {                       @Override public...

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)...

How to check best provider for Google map

H

private void getLocation() { Location gpslocation = null;        Location networkLocation = null; if(locationManager==null){          locationManager = (LocationManager) getApplicationContext() .getSystemService(Context.LOCATION_SERVICE);        }        try {            if(locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)){                locationManager...

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...

QR_CODE Scanner for Android

Q

“QR Codes” also knows as “Quick Response Codes”. Its two dimensional code (also known as Matrix Barcode ), and can be read easily by a mobile phone. They fetch piece of information from temporary media and push that in your mobile phone. The reason why they are getting popular than normal Barcode is because they are able to capture more information(data, urls, texts and geo coordinates). Another...

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...

Category