Convert a small iOS code to Android

Closed

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: Android, iPhone, Mobile Phone

See more: mpmovieplayercontroller setcenter, cgpointmake android, convert ios code android, sleep app android, creating an android app, convert to android app, android sleep app, android sleep, android selector, android mp4 player, small bar, nil, ios code, convert mobile, convert ios, convert android to ios, convert android app to ios, convert android app to ios app, c++ to android, android player, app sender, frame mp4, convert app android app iphone, frame mp4 video, ios code android

Project ID: #4136753

18 freelancers are bidding on average £171 for this job

hvtsoft

Dear sir ! Please check your pm !

£100 GBP in 1 day
(98 Reviews)
7.5
devapps13

Hey, I'm interested.

£250 GBP in 5 days
(41 Reviews)
6.7
anuragr

Please check PM.

£200 GBP in 2 days
(13 Reviews)
5.5
shabdullah88

Dear sir After reading your project details,we are interested in this project and would like to bid on this project. we take care of our every client personally and has always long term relationship.we will do as many More

£200 GBP in 6 days
(4 Reviews)
5.4
honeypotant

Dear, This is very easy for me. I am ready to start. Regards.

£50 GBP in 1 day
(9 Reviews)
5.4
kantisuthar

DEAR SIR,WE ARE HAVING EXPERIENCE & EXPERTISE BOTH.PLEASE CHECK PMB.THANKS

£170 GBP in 5 days
(15 Reviews)
5.1
NightSkyDev

Hello, Thank you for the opportunity to bid on your project. I sent my proposal in a private message. -Rick

£150 GBP in 5 days
(17 Reviews)
5.0
mj7007

I would like to port this code to android. Please check PMB

£150 GBP in 1 day
(8 Reviews)
4.7
lbear9090

Hello, I am ready for you. Wait your reply. Thanks.

£100 GBP in 1 day
(13 Reviews)
4.7
ExtraMemory

Hello Respected Client, I have Read your requirements and we are very experience in this concept. please check Message Board for more details. Thanks

£150 GBP in 3 days
(7 Reviews)
4.5
Valentina1993

Hello Respected Client, I have Read your requirements and we are very experience in this concept. Please check Message Board for more details. Thank you !

£300 GBP in 7 days
(7 Reviews)
4.5
astartech

Hi,Lets complete it asap.

£160 GBP in 3 days
(6 Reviews)
3.9
kruraval888

Hey , Thanks for posting. gone through with the requirement and we understood. check your private message board for detail proposal. Thanks.

£200 GBP in 5 days
(9 Reviews)
3.9
WangJinHao

Hello. I can help you. Thanks.

£250 GBP in 6 days
(7 Reviews)
3.8
navneetkumar59

Hi, Please check PM. Thanks

£200 GBP in 1 day
(3 Reviews)
3.4
iconwebservices

Hi please check your inbox Thanks

£250 GBP in 25 days
(6 Reviews)
3.4
codeware1

Hello Sir, Hope you are well and doing good!!! we are eager to work with you.We are ready to start the project right away. Codeware is a website development company providing professional website design, website develo More

£350 GBP in 4 days
(3 Reviews)
3.1
Sharp333

Expertise in Mobile Application Development. I can start the Project immediately. Please check PM. Waiting for your reply..

£200 GBP in 3 days
(5 Reviews)
3.0
mkovalyk

Hi, I can do it.

£20 GBP in 1 day
(4 Reviews)
3.0
ArunMobile

Hello..i have 3+yrs exp on android and iPhone..so let me know when we ll start this project..?

£80 GBP in 1 day
(1 Review)
0.0