Closed

Convert a small iOS code to Android

This project received 22 bids from talented freelancers with an average bid price of £176 GBP.

Get free quotes for a project like this
Project Budget
N/A
Total Bids
22
Project Description

Hi I'm creating an android app and I was looking to convert the code below in to android.

- (void)playVideo{

//Hide Tab Bar

[self hideTabBar:[url removed, login to view]];

//If You Want to Hide/Show Navigation Bar Also

[[url removed, login to view] setNavigationBarHidden: YES animated:NO];

CGRect screenRect = [[UIScreen mainScreen] bounds];

CGFloat screenWidth = [url removed, login to view];

CGFloat screenHeight = [url removed, login to view];

NSString* moviePath = [[NSBundle mainBundle] pathForResource:@"vid" ofType:@"mp4"];

NSURL* movieURL = [NSURL fileURLWithPath:moviePath];

//

backView = [[UIView alloc] initWithFrame: CGRectMake ( 0, 0, screenWidth, screenHeight)];

[url removed, login to view] = [UIColor blackColor];

[[url removed, login to view] addSubview:backView];

//

playerCtrl = [[MPMoviePlayerController alloc] initWithContentURL:movieURL];

[url removed, login to view] = MPMovieScalingModeAspectFill;

[url removed, login to view] = MPMovieControlStyleNone;

[url removed, login to view] = CGRectMake(0, 0, screenHeight/2, screenWidth/2);

[url removed, login to view] = [UIColor blackColor];

[[NSNotificationCenter defaultCenter] addObserver:self

selector:@selector(moviePlayBackDidFinish:)

name:MPMoviePlayerPlaybackDidFinishNotification object:nil];

[[url removed, login to view] setCenter:CGPointMake(screenWidth / 2, screenHeight / 2)];

// [[url removed, login to view] setFrame:CGRectMake(0, 0, screenWidth , screenHeight )];

//[[url removed, login to view] setTransform:CGAffineTransformMakeRotation(-M_PI/2)];

[[url removed, login to view] addSubview:[url removed, login to view]];

[playerCtrl play];

// [[url removed, login to view] addSubview:[url removed, login to view]];

NSLog(@"called stared video");

}

-(void) moviePlayBackDidFinish:(id)sender{

//sleep(1);

NSLog(@"called finished video");

[backView removeFromSuperview];

[[url removed, login to view] removeFromSuperview];

//Show Tab Bar

[self showTabBar:[url removed, login to view]];

//If You Want to Hide/Show Navigation Bar Also

[[url removed, login to view] setNavigationBarHidden: NO animated:YES];

}

Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online