Convert a small iOS code to Android

CLOSED
Bids
22
Avg Bid (GBP)
£176
Project Budget (GBP)
£20 - £250

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:self.tabBarController];
//If You Want to Hide/Show Navigation Bar Also
[self.navigationController setNavigationBarHidden: YES animated:NO];

CGRect screenRect = [[UIScreen mainScreen] bounds];
CGFloat screenWidth = screenRect.size.width;
CGFloat screenHeight = screenRect.size.height;

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



//
backView = [[UIView alloc] initWithFrame: CGRectMake ( 0, 0, screenWidth, screenHeight)];
backView.backgroundColor = [UIColor blackColor];

[self.view addSubview:backView];

//
playerCtrl = [[MPMoviePlayerController alloc] initWithContentURL:movieURL];
playerCtrl.scalingMode = MPMovieScalingModeAspectFill;
playerCtrl.controlStyle = MPMovieControlStyleNone;
playerCtrl.view.frame = CGRectMake(0, 0, screenHeight/2, screenWidth/2);
playerCtrl.view.backgroundColor = [UIColor blackColor];

[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(moviePlayBackDidFinish:)
name:MPMoviePlayerPlaybackDidFinishNotification object:nil];

[playerCtrl.view setCenter:CGPointMake(screenWidth / 2, screenHeight / 2)];
// [playerCtrl.view setFrame:CGRectMake(0, 0, screenWidth , screenHeight )];
//[playerCtrl.view setTransform:CGAffineTransformMakeRotation(-M_PI/2)];
[self.view addSubview:playerCtrl.view];
[playerCtrl play];
// [self.view addSubview:player.view];
NSLog(@"called stared video");
}
-(void) moviePlayBackDidFinish:(id)sender{
//sleep(1);
NSLog(@"called finished video");
[backView removeFromSuperview];
[playerCtrl.view removeFromSuperview];

//Show Tab Bar
[self showTabBar:self.tabBarController];
//If You Want to Hide/Show Navigation Bar Also
[self.navigationController setNavigationBarHidden: NO animated:YES];

}

Skills required:
Android, iPhone, Mobile Phone
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


£ 100
in 1 days
£ 250
in 5 days
£ 200
in 2 days
£ 200
in 6 days
£ 50
in 1 days
£ 170
in 5 days
£ 150
in 5 days
£ 150
in 1 days
£ 100
in 1 days
£ 150
in 3 days