• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Beginner's question..

mbrown0036

Lurker
May 15, 2014
3
0
I am more curious about this topic as I am just learning programming. Here it goes..


1) I have read an Android app can be dev in various languages, however the preferred method is Java as this is platform independent. Is this accurate? Are there any other languages that are combined? I'd assume either HTML or XML for text rendering? Can PHP be included directly in the writing of the Android app for SQL database communication or is it done through a Java as well?


2) If I wanted to build an Android app (required to be an app as a web app will not access the phone features as required) that would require a SQL database and I also wanted to have a website in addition to the Android app (pulling from the same SQL database), what should the website be written in or, does it even matter? Is there any language that should be steered away from if the end goal is to develop an Android app to mirror the website?


Sorry for the clunky question, hope somebody can provide some much needed insight!


Mike
 
Check out androidscript. Its what I use:

https://play.google.com/store/apps/details?id=com.smartphoneremote.androidscriptfree


Also thought I'd give a background so you know what I mean..

You can use c++ to program, you can use java to program, they've even brought python.. This is a JavaScript one.

The dev is actually going to make it compilable for redistribution of apps. However you can already send your scripts to other people who already have android script.
 
Upvote 0
Thank you for the reply! I checked out the link, it does look helpful. The issue is I am not doing the dev. I have been saving money to pay a professional company to do both the website and the app, I'm sure they will not be programming with this tool as cool as it is.
My question still persists. What language(s) should the website be written in so the Android app can easily be created? Or, does it matter at all?
 
Upvote 0
If you don't know how to code or don't want to code, then what does it matter?

Android is written in Java and compiled to dalvik. Outside of that, things can get more complicated. There's the NDK for C/C++. And I'm sure there are libraries and wrappers for other things like Python and JavaScript.

Depending on what you want to do with the app and website, the problems you encounter are different. So would be the choice in programming languages. Simply connecting an app to a website should be easy enough in most languages.

Ask the company to create a website and app. People don't normally like making their work harder than it needs to be. So let them decide what's easiest unless you have the knowledge to decide.
 
Upvote 0
SulkyAndroid17,

Not sure why you have an attitude with me over the question. The answer and tone wasn't required or called for. If I wanted to blindly go into a project I could have easily done that.

I was and still am looking for a more complete answer to what I would think would be a very simple question for any developer that has made an Android app and a website that shares the same information / functionality.
 
Upvote 0
I'm sorry you don't like my tone.

But you haven't told us much. You didn't exactly ask a simple question. Some things are easier done in other languages. But unless we know what you want, we can't help. There can be a lot of factors to take into consideration.

If you just want to pull data from an SQL database then a lot languages would work fine. What the data is and what you do with it might change your decision.

You said you were just learning programming. Do you think you'll take over maintaining the site and app?

Is some kind of web app what you're after? Although you said that wouldn't work, does adding JavaScript achieve your goal? You could use JSON to send and receive data.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones