question about implementing arduino battery

I know it, but I also want to charge the battery. So which option is better?