ArchiveAugust 2012

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

Using FBGraph in iPhone

U

The FBGraph API is bit complex, but much useful than any other ways for accessing contents of Facebook. INTRODUCTION ============ Object Output: { “name”: “Facebook Platform”, “type”: “page”, “website”: “;, “username”: “platform”, “founded”: “May 2007”, “company_overview”:...

Category