Fix project Android Kotlin - take photo - error - URI NULL
€8-30 EUR
Completed
Posted 7 months ago
€8-30 EUR
Paid on delivery
I have an android project that imports a web page into a webview. this web page contains a form with a file type input. By clicking this input I can start the camera of my Android device to capture the photograph, but when I click onActivityResult and therefore when I retrieve the image I receive a NULL URI. and so I can't send the photo with JS to the web page. So I need help fixing this problem. In maximum 1 day!
//OPEN CAMERA
// WebViewChromeClient personalizzato
val captureIntent = Intent(MediaStore.ACTION_IMAGE_CAPTURE)
private inner class MyWebChromeClient : WebChromeClient() {
override fun onShowFileChooser(
webView: WebView?,
filePathCallback: ValueCallback<Array<Uri>>?,
fileChooserParams: [login to view URL]
): Boolean {
mFilePathCallback = filePathCallback
if ([login to view URL](packageManager) != null) {
[login to view URL](captureIntent)
} else {
// Gestione se la fotocamera non è disponibile
}
return true
}
}
//OUTPUT CAMERA
// Gestisci il risultato dell'attività di scelta del file
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
[login to view URL](requestCode, resultCode, data)
if (requestCode > 1) {
if (resultCode == Activity.RESULT_OK) {
// L'immagine è stata catturata con successo
Log.d("Acquisizione Immagine", "Immagine catturata con successo")
if (data != null && [login to view URL] != null) {
val imageUri = [login to view URL] <-------------------------------------------- URI NULL
Log.d("URI dell'immagine", [login to view URL]())
// Ora puoi procedere con l'invio dell'immagine al server
if (imageUri != null) {
sendImageToService(imageUri)
}
} else {
Log.e("Acquisizione Immagine", "URI dell'immagine nullo")
}
} else if (resultCode == Activity.RESULT_CANCELED) {
// L'utente ha annullato l'acquisizione dell'immagine
Log.d("Acquisizione Immagine", "Acquisizione annullata")
} else {
// Si è verificato un errore durante l'acquisizione dell'immagine
Log.e("Acquisizione Immagine", "Errore durante l'acquisizione")
}
}
}
I have extensive experience in resolving Android WebView issues, and I understand the challenge you're facing with NULL URIs when capturing images. I'm confident that I can quickly identify and fix the problem, ensuring that image capture functions seamlessly. I'll also ensure that the JS communication with the web page is properly established. You can count on a solution within a day, so your project progresses smoothly.
€40 EUR in 1 day
5.0 (16 reviews)
4.1
4.1
13 freelancers are bidding on average €32 EUR for this job
Hi,Hope you're doing blissful! I've Gone through with the requirements you've shared for your project. And I'm sure I can provide you best on this with my skills and experience. Lets have chat on this.
Hi there! My name is Pradeep and I'm the CEO of Aahan Technologies, an international software design and development company that builds comprehensive, custom solutions for enterprise mobile and web. I'm excited to hear about your project and help you solve your problem with Android Kotlin - take photo - error - URI NULL.
We have a team of highly skilled developers who have extensive experience in Android development and other relevant fields such as HTML5, JavaScript, PHP. Our team is well versed in various continuous integration tools such as Travis CI, Jenkins and Strider which allows us to quickly deploy our projects across various environments such as local machine, cloud or both.
In addition to this, we also offer payment gateway API integration services through GoEmerchant and Braintree which allow us to accept payments from client's end without any issues. Furthermore we also offer continuous integration services through Travis CI and Jenkins which ensures project quality at all times while reducing development time significantly.
Hello! My name is Narendra and I am a professional freelancer dedicated to providing top-tier services at competitive rates. With extensive experience in developing web applications and mobile applications, I have worked on a variety of projects.
Hey man
It seems like you're trying to capture an image using the Android camera in Kotlin and encountering an issue with a null URI when attempting to access the captured image. To resolve this issue, we need to ensure that the camera app returns the captured image's URI correctly. wecan make use of the onActivityResult method to handle the image capture result.
Ping me
Thanks
I understand that you're looking for someone to help fix your Android Kotlin project - take photo - error - URI NULL in maximum 1 day. With my extensive experience in web development, I'm confident that I can provide the necessary expertise to deliver a successful outcome.
I have extensive experience in version control systems like Github and Gitlab as well as containerization with Docker. Additionally, I'm familiar with external APIs such as Google Maps, Captcha, Firebase and Facebook which can be used to integrate into your project. Additionally I have experience with payment methods such as PayPal and Stripe which can be used to facilitate transactions within your app endpoints.
Finally, I have worked on projects that have required integration of external APIs such as Google Maps, Captcha, Firebase and Facebook which can be used to facilitate transactions within your app endpoints.
Hello,
I can provide you with an updated code for testing to verify whether it works or not.
If you need help with your project within 1 day then please don't hesitate to contact me.
Thank you,
Radhika