Questions tagged [java]

Java is the main language used to develop Android apps. Most users don't need to worry about it. If your question is about development, please ask on our sister site Stack Overflow instead.

Filter by
Sorted by
Tagged with
-1
votes
0answers
8 views

Andriod Studio drag widget/button [closed]

I'm making a calculator where the answer can be changed with a drag button (like the volume buttom) and when the user drags the button the answer increases or decreases in 5% increments until they ...
0
votes
0answers
47 views

Samsung Android Source Code? - Captive Portal Handling

I've written an open source Captive Portal library for IoT devices, but am having issues only with Samsung's version of Android: https://github.com/tripflex/captive-portal Does anybody know where I ...
-1
votes
1answer
44 views

Does Android not supports Java?

Redmi 6 does not support java. Redmi Note 5 support java through third party support. What's the difference? I read on Quora that by not supporting Java I can't go to Play Store.
-1
votes
1answer
236 views

Android Studios Adb server problems

I formatted the desktop and i'm try to install the Android Studios version 3.2.1 installation setup was completed but when try to run the project .It show error log like this Unable to detect adb ...
3
votes
1answer
52 views

Do calls to Java native interface in android apps run within Dalvik VM?

I read that apps sometimes access the native libraries for optimization purposes via the Java native interface. As far as I understand, JNI just provides java wrappers around c/c++ libraries/...
0
votes
0answers
52 views

Want to clone a APK with APK Cloner, but it clones the MAC address from the Device

It is possible to clear a command from the APK Cloner without to save the MAC address from the Phone? Because when I install the APK, the APK generate with the Serial Number from the Android Box ore ...
1
vote
0answers
83 views

Delete/remove a calendar in Android AccountManager's database using Tasker intent?

While trying to remove calendars from the Android AccountManager's database using Tasker, I've been exploring the Android calendar provider api but I have not been able to find a command to delete a ...
1
vote
0answers
104 views

How do AOT and JIT work together in Android Nougat and later?

The Android OS was using interp years ago, then they added Just-In-Time (JIT). However, since Android 5.0, they replaced JIT with Ahead-Of-Time (AOT) compilation which increased app installation time ...
1
vote
0answers
143 views

Custom Voice Action

Can i make the google assistant of my android phone to perform custom actions? For example: Ok google. open barrier via "AppName"? I have tried the system actions, but neither one matches my need. So ...
-2
votes
1answer
48 views

Scientific notation error [closed]

I have made a simple formula based calculator through intelli j idea. it works perfectly with small numbers,but when i input large numbers it shows 5.0E454 as answer.How can i remove this error so ...
2
votes
1answer
129 views

how determine if java object is null or not in tasker?

I want a tasker task that reads sms from a particular person, and, extracts some information out of the latest message... For e.g. I get a lot of messages from my bank due to transactions I make. At ...
-1
votes
1answer
52 views

Problem in adoroid when I created new project [closed]

Any one can help me for solving this problems When I open new project this problem appears
0
votes
0answers
65 views

Is BLE 5.0 impemented on Nougat version

Is BLE 5.0 features accessible from Android Nougat phones ? if not how will be the connection of phones with Ble 4.0/ble 4.2 with BLE 5.0 before Android Upgradation ?
1
vote
0answers
247 views

Running java in android

Is there any way to run .jar files in android without rooting phone? I used jbed and some other apps but they instantly stopped unexpectedly after clicking.
2
votes
1answer
4k views

Why is there no JRE for android?

I understand that android does not use a JRE and Google has build a platform only for android. But an android device is not really different from e.g a Raspberry PI. So why is it not possible to just ...
3
votes
2answers
517 views

How is the Android System running Java jars?

There is a large amount of Java jars in /system/framework, for example, am.jar. I understand that Android uses Java in a very confusing way (at least for me). I do not completely understand the way ...
0
votes
1answer
659 views

How to install jdk for offline compile?

I want to compile java offline. I have project on PC, will just copy and make small changes to it, and test it, when I am away from home. Doesnt need to be an IDE. Not even code editor. Just a ...
3
votes
1answer
5k views

Error: java.lang.IllegalStateException: java.util.concurrent.TimeoutException: Thread Binder_C gave up waiting for partitionMixed after 180000ms

After entering the final command to make a mixed-format SD card in How can I move apps to SD on non-adopted Marshmallow storage?: $ adb shell sm partition disk:179,64 mixed 25 I meet this error: ...
0
votes
0answers
995 views

executing adb shell commands as root

I am using the following command from Java and it works with my old phone adb shell svc data disable But with my new phone I am required to change to root (su command) in shell before I can ...
-1
votes
1answer
928 views

Open New Activity on Click Button by Existing Activity In Android [closed]

I've been bumbling a while to go to an another activity through a button but it don't work for me. I have my app that I wanted to do here put aside and a new made to look at it how. I did everything ...
1
vote
1answer
5k views

Any way to reboot device programmatically without root?

I don't switch off mobile phone at night. After several weeks of uptime my mobile phone becomes slow. When I reboot it everything is smooth again. It's not possible to root my android 5 phone, there ...
0
votes
4answers
1k views

Why is there no Java compiler on android?

Im not an android developer but I do other stuff. I just rooted my phone so I was playing around with a shell and I was trying to compile some c packages and realised there is no c compiler....OK ...
2
votes
3answers
969 views

Why does Android phones need JAVA?

Im going to buy a Samsung A310F Galaxy A3. But I noticed one thing. FEATURES Java No This samsung smart phone doesnt have Java in it. So the main my question would be: is it really bad? And why ...
1
vote
1answer
291 views

I can't use android emulator in android studio in Mac

Can anyone help me run emulator in android studio in Mac? I tried to run it but it says the following as portrayed in the given image.
0
votes
1answer
2k views

how to convert android APK file to JAR file and run it on pc with java runtime? [duplicate]

Here is the deal, I have a Apk file, just can run on android phone. Now I take the Apk I want, decompile it or do something can change Apk file to Jar file. Jar file will be a java execution, can run ...
0
votes
1answer
190 views

Is it possible to compile java class on Android device? [closed]

Suposse that we have a java source file. In Terminal Emulator we can use javac command to compile and java command to run the program. My question is that, if we have java compiler, Can we compile ...
1
vote
3answers
876 views

Where are Androids’ developer options stored?

Can anyone please tell me, where Androids’ developer options are stored? I’m trying to modify the Pointer Location developer option in this file. After recompiling Android, where is the file ...
1
vote
0answers
236 views

Verified boot keystore generateion failure

I need to generate my own keystore for Android Verified Boot. I took these steps mmma system/extra/verity keystore_signer private.der verity.x509.pem keystore.img verity.der And i got this error ...
1
vote
1answer
3k views

Check OpenSSL version in Android with Java runtime or shell command

I have a problem with checking OpenSSL version in Android device. I've tried to grep OpenSSL from system/lib/libssl.so with java runtime.exec, but it doesn't work? Anyone can help me, how to make a ...
1
vote
2answers
1k views

Transparent notificationbar/statusbar for Android 4.3 [closed]

How can i make the notification/statusbar for Android 4.3 transparent, i know launchers like Dodol Launcher, Smart Launcher and Go Launcher has a transparent bar option. But i want it to be like it is ...
5
votes
2answers
29k views

Compiling and running java applications from android terminal? [closed]

I recently got a bluetooth keyboard for my Motorola Xoom tablet, and upon realizing that BusyBox comes with vi for text editing I started wondering about writing and executing code on android. I ...
0
votes
1answer
454 views

Files and Data loss when sd card is changed from java supported phone to android phone

I have changed my micro sd card from Samsung Star2 S5263 which is running on Java OS to a new android phone. Later I have connected my android phone to my PC to copy some files from the system. And ...
1
vote
1answer
205 views

What exactly is a widget?

I found some conflicting definitions on the term. On http://developer.android.com/reference/android/view/View.html, the author defined widgets as "View is the base class for widgets, which are used to ...
11
votes
4answers
68k views

Can you run 'normal' Java programs on Android?

I know some 'normal' Java (computer Java), and I want to run such a program on my Android device. Is this possible? If yes, how?
0
votes
1answer
425 views

Android App Force Closing [closed]

01-02 15:30:21.361: E/AndroidRuntime(3764): FATAL EXCEPTION: main 01-02 15:30:21.361: E/AndroidRuntime(3764): java.lang.NullPointerException 01-02 15:30:21.361: E/AndroidRuntime(3764): at com.htc....
0
votes
1answer
258 views

SGS3 I-9300 Android 4.2 - why can't I disable these system apps?

nb. I can disable them using 3rd party root apps without any discernible negative effects. Are these networking protocols default? They seem to be harmless but everything I read about sit0 seems ...
2
votes
1answer
300 views

Are JS apps effectively running through 2 VM's?

When using Google Chrome mobile (or any other android web browser) is the Javascript VM running on top of the Java VM? Or is the JS code compiled to Java bytecode? I ask this because JS seems to run ...
3
votes
1answer
210 views

Can Java be exploited through Android app ads?

It turns out that Java has a security flaw that is currently being exploited to put malware on people's computers. Is there any risk that advertisements in Android apps will have embedded, malicious ...
1
vote
0answers
51 views

Develop Java Swing Applications on Android [duplicate]

Possible Duplicate: How can I do development on my Android device? Morning everyone! Is there an app where I can program java for desktop computers (i.e. Jar files) on android? Where I can ...
5
votes
2answers
20k views

J2ME emulator that works for ICS? [closed]

Is there any J2ME emulator like JBed for ICS? I've found a ton of tutorials like this but as far as I know, all of them are exclusively for Gingerbread and below. P.S. I already tried J2ME Runner ...
2
votes
0answers
61 views

enabling java for Lenovo ThinkPad tablet? [duplicate]

Possible Duplicate: Are there any Android browsers that support loading a Java Applet in-browser? I am new to the tablet world. I have a Lenovo ThinkPad Tablet and I am having trouble on some ...
2
votes
0answers
52 views

Code/Program Java on Kindle Fire [duplicate]

Possible Duplicate: How can I do development on my Android device? OK, so I've just got a new Kindle Fire (which I love), and I've been wondering: Can I develop Java programs on my Kindle? Is ...
2
votes
1answer
1k views

Is there a web browser+Java plugin available for Android? [duplicate]

Possible Duplicate: Are there any Android browsers that support loading a Java Applet in-browser? I am having some issues accessing internet banking etc on my tablet with Android as the operating ...
-1
votes
1answer
1k views

How can I run a java app on my Pandigital Planet tablet? [duplicate]

Possible Duplicate: Are there any Android browsers that support loading a Java Applet in-browser? I am trying to acess my web based emulator for work and the tablet does not support java virtual ...
8
votes
4answers
13k views

Is it possible to run Minecraft on an Android?

I was thinking in using some tools to convert the JAR into an APK. But will my Nexus One have enough memory? And what about the controls?
20
votes
5answers
111k views

Are there any Android browsers that support loading a Java Applet in-browser?

We have a client who are switching away from Windows Mobile (and IE Mobile) to Android based devices. We have some specific software that we deploy to their WM workforce by an ActiveX applet that ...