Latest stories

How to use Visualforce IDs in jQuery

H

Prerequisites: You will need to download the jQuery and jQuery UI libraries. jQuery is the core library which offers DOM manipulation methods and jQuery UI is a higher level library which constructs widgets for use on your page. From the jQuery UI site, you can download a zip tailored to the portions of the libraries you need.Once you have the ZIP in hand, you’ll need to upload it as a static...

How to make UIView blinking (or flashing) on iphone?

H

Use this : - (void)blinkAnimation:(NSString *)animationId finished:(BOOL)finished target:(UIView *)target {     if (shouldContinueBlinking) {         [UIView beginAnimations:animationId context:target];         [UIView setAnimationDuration:0.5f];         [UIView setAnimationDelegate:self];         [UIView setAnimationDidStopSelector:@selector(blinkAnimation:finished:target:)];         if ([target...

NullPointerException when going back through activities(In TabGroupActivity)

N

A little elaboration. There are Activity A, B and C You start A with Id “A” then you start B with Id “B” then you start C with Id “C” and from C you again start another instance of B with id “B” (it may happen, because B may be a ResultListScreen which may called for several time with Load More type button) The problem is that in ArrayList idList...

Can we create flashing red/blue circle around user location in mapview in iPhone ?

C

Yes we can create with a simple UIView animation & few images. 1) Add the MapView MKMapView *mapView = [[MKMapView alloc] initWithFrame:yourFrameFrame]; mapView.mapType = MKMapTypeStandard; mapView.delegate = self; [mapView setShowsUserLocation:YES]; [self.view addSubview:mapView];   2) In viewForAnnotation method – (MKAnnotationView *)mapView:(MKMapView *)mapview...

How to Detect USB connected or Not In Android

H

1.Create Android project and add this Broadcast Receiver class file into that project like: import android.content.BroadcastReceiver; import android.content.Context;import android.content.Intent; import android.widget.Toast; public class DetectUSB extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { if(intent.getAction().equalsIgnoreCase(“android...

Unzipping Files In iOS Using ZipArchive

U

In this tutorial, I am going to demonstrate how you can zip and unzip files from within your iOS applications. We will be using a third party library called ZipArchive to achieve this. While there are a couple solutions out there to zip and unzip files, I feel that the ZipArchive library was the fastest and easiest way to get up and running. Why Would I want To Unzip Files? That’s a great...

Send Email with pdf file attached in android

S

Add this code from where you want to send email: File externalStorage = Environment.getExternalStorageDirectory(); Uri uri = Uri.fromFile(new File(externalStorage,”mypdfFile.pdf”));                            Toast.makeText(getApplicationContext(),”exists”,Toast.LENGTH_LONG).show();                Intent sendIntent = new Intent(Intent.ACTION_SEND);              ...

Category