top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Does android support languages other than JAVA?

+2 votes
429 views
Does android support languages other than JAVA?
posted Dec 15, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

0 votes

You can use Ruby via Rhodes, JavaScript via PhoneGap or Titanium Mobile, Scala via...well...Scala, C/C++ via the NDK, etc.

answer Dec 15, 2015 by Rajan Paswan
0 votes

Yes android support languages other then Java ( Just adding to what Rajan has answered and putting my answer in C/C++ context only)

Ideally the android app development is done in JAVA and XML. The event handling is done by JAVA and the UI is made using XML, which uses Android Studio or Eclipse along with android ADT plugin and android SDK. But in some cases these two are not enough and there are situations where you need the power of C programming for your app.

So you can use C as a development language. This is called as native development language in android world and the utility to compile this is Android NDK i.e android native development kit. The steps for this you can find easily on the developers.android.com website. you have to create a shared library using the NDK which is then called by your JAVA.

In the reverse case if you want to call your java functions from C i.e native. Then you need C++ language because with C alone you can't do that. This concept is called native eventing. The C++ will bind the C and java and act as a bridge for the function call.

Advantages: C/C++ using android NDK makes the performance faster...

answer Dec 16, 2015 by Kuldeep Apte
Similar Questions
+6 votes

In android generally when an app is installed, the PackageInstallerActivity and PackageManagerService make sure to assign the supplementary gid's to the app. This determines the level of access when an app is invoked everytime.

I just wanted to confirm if any verification process takes place in the runtime from packagemanager or any other service for that matter.

The app is granted the corresponding access from the gid's that should get it running technically and Packagemanager will only come into picture incase of updating the app.

Is my understanding correct?

+1 vote

There are some apps out there for android that can improve mobile/tablet performance by killing the applications that run in background. How to do that?

+2 votes

I am developing an android application and I want my app to be able to receive data from other apps. How can I do that?

+5 votes

I have used below code,

textareaA.addTextChangedListener(new TextWatcher() {
    @Override
    public void afterTextChanged(Editable arg0) {
    }

    @Override
    public void beforeTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) {
    }

    @Override
    public void onTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) {
        double val = Double.parseDouble(textareaA.getText().toString());
        textareaB.setText(String.valueOf(val/10000));
    }      
});

textareaB.addTextChangedListener(new TextWatcher() {
    @Override
    public void afterTextChanged(Editable arg0) {
    }

    @Override
    public void beforeTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) {
    }

    @Override
    public void onTextChanged(CharSequence arg0, int arg1, int arg2, int arg3) {
        double val = Double.parseDouble(textareaB.getText().toString());
       textareaA.setText(String.valueOf(val*10000));
    }      
});

If I type a value in any EditTexts, it crashes and trows java.lang.StackOverflowError error.
Suggest a solution.

...