I am new to app development.
I have to build an app which should be capable of taking a photo, then processing it and then giving the result as the output (which is a number).
I have already developed the algorithm for the 'processing part' in C and it's ready to be used.
However, I do not have any idea to build an android app and then further integrate these C codes in it.
I would be very nice if you can show me the direction and what I need to do exactly.
I'll be very glad to share anymore information if necessary.
This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our community organized so users can more easily find information.
As you’ll notice, your topic is now here in the Project Development Help and Advice board. No action is needed on your part; you can continue the conversation as normal here.
Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!
I think the android NDK recently allowed people to run native C code, but it's not really recommended or well documented/supported.
I'd recommend you program the mobile app in a more supported language (Java, C# with Xamarin, or even an HTML5 webapp) and then run your image processing software on the cloud as a web service.
Basically, the user would take a picture on the client app, and then send the data to the web service. Then the web service would run the image processing algorithms on the picture and send it back to the client.
This is actually the current approach I'm taking with my software, except I'm using Python instead of C to do image processing. I did some quick Googling and found this library, Kore, which seems to handle HTTP requests for C.
Do some research on RESTful web services and see how they work. Lots of mobile apps these days seem to run their logic on a cloud to save battery life and storage.
I'm using Azure to host my Python script, mostly because Azure is the service that the rest of the software made by my company uses. You could also look into Azure, AWS or other hosting solutions for your program.