Questions tagged [java]

Java is a general-purpose programming language. Use this tag only for topic/technology that is related to the Android environment. DO NOT USE THIS TAG FOR APP DEVELOPMENT ISSUE BECAUSE IT IS OFF-TOPIC.

Filter by
Sorted by
Tagged with
3 votes
1 answer
409 views

Is there a way to call/invoke a (private) Java function in an app?

Is there some tool that can be used in ADB shell or something similar (without root possibly) that can invoke a function in the app, while it is running?
user avatar
0 votes
1 answer
47 views

Can I change Java heap size on Android devices?

I have a Samsung Galaxy A20s with Android 11 and 2790 MB RAM. The phone was originally designed for Android 9.0 but now that it's been upgraded to 11; it's become slow and my RAM is always almost full ...
user avatar
65 votes
1 answer
39k views

Does the Log4j vulnerability affect Android users?

The new vulnerability CVE-2021-44228 (also known as Log4Shell) is wreaking havoc, but very little of the discussion is voiced about the average android user. Is the average Android OS user at risk? I ...
user avatar
  • 759
0 votes
0 answers
103 views

The game sees that I am playing from the emulator(Bluestacks) or from the virtual space. How can you fix this?

Let me make a note: Everything works on a real phone. So I play one game (Madfut 22) and when I go into Trading mode on the emulator, the download (looking for an opponent) goes on endlessly. (...
user avatar
  • 1
1 vote
0 answers
117 views

Installing Java and running JAR files on Android 4.4

I want to install and use Java 8 on Android 4.4. Using Termux is not an option because it requires a minimum of Android 5.0. I do have root access. I tried to install the ARM version of Java using rpm,...
user avatar
1 vote
0 answers
92 views

Put like on YT Music song without wakening my phone with Tasker

I want to make a Tasker script to like the current song in YT MUSIC by holding down volume button for example. The perfect solution is that I can put likes without flashing the screen and silently, so ...
user avatar
0 votes
0 answers
54 views

Voice Changer in Realtime GSM Phone Call

hello I was wondering whether it would be possible to apply voice changer on GSM Phone call in realtime? If possible, then I'm thinking of using a voice changer mechanism to secure the voice data ...
user avatar
1 vote
0 answers
55 views

How to extract a raw apk out of installed application?(Raw for reverse eng purpose)

So I developed an application but my hard drive failed and I lost access to project resources, but I had it previously installed on my phone through android studio debugging process. Now I want to ...
user avatar
2 votes
3 answers
433 views

Termux write permissions

pretext: as gmail no longer allows me to send zip files, i have been looking into other ways to get my java source directories from android to laptop and back again, depending whether I'm at home or ...
user avatar
  • 21
1 vote
3 answers
912 views

How to solve problem in APK Tools

I'm trying to decompile an apk with the apk tools and I'm not getting it. When I run apktool -d myapp.apk it displays this error to me: Exception in thread "main" brut.androlib....
user avatar
  • 119
0 votes
1 answer
62 views

system ( com.Android google.com.gms ) share from gallery app suddenly stops working and crashes

there is a prominent gallery app that I am using -f-stop . been using it for very long time and never had this issue . gallery app itself seems to be working but when I select more than one picture ...
user avatar
1 vote
1 answer
1k views

Chinese in the quick settings Flyme 8.0.0.0A Stable (SystemUI.apk)

I translated the firmware Flyme 8.0.0.0A Stable (RU & UA) for Meizu Note 9 and Meizu 8X, but I can’t kill the Chinese in the quick settings: The fact is that China’s events are taking place there -...
user avatar
  • 11
-1 votes
1 answer
77 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.
user avatar
-1 votes
1 answer
3k 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 ...
user avatar
5 votes
1 answer
198 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/...
user avatar
1 vote
0 answers
155 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 ...
user avatar
  • 237
1 vote
0 answers
309 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 ...
user avatar
  • 437
2 votes
1 answer
208 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 ...
user avatar
3 votes
1 answer
364 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 example, I get a lot of messages from my bank due to the transactions I make. ...
user avatar
  • 137
0 votes
0 answers
78 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 ?
user avatar
  • 101
0 votes
0 answers
315 views

Running java in android [duplicate]

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.
user avatar
3 votes
1 answer
8k 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 ...
user avatar
  • 33
5 votes
2 answers
1k 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 ...
user avatar
0 votes
1 answer
718 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 ...
user avatar
  • 151
4 votes
1 answer
9k 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: ...
user avatar
  • 444
1 vote
0 answers
2k 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 ...
user avatar
  • 233
1 vote
1 answer
8k 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 ...
user avatar
  • 113
0 votes
3 answers
3k views

Why is there no Java compiler on Android?

I'm 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 realized there is no C compiler, OK. ...
user avatar
  • 101
1 vote
2 answers
2k 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 ...
user avatar
-1 votes
1 answer
4k 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 ...
user avatar
1 vote
3 answers
2k 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 ...
user avatar
  • 11
1 vote
0 answers
273 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 ...
user avatar
  • 131
1 vote
1 answer
4k 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 ...
user avatar
1 vote
2 answers
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 ...
user avatar
4 votes
2 answers
32k 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 ...
user avatar
0 votes
1 answer
495 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 ...
user avatar
1 vote
1 answer
260 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 ...
user avatar
13 votes
4 answers
85k 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?
user avatar
0 votes
1 answer
437 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....
user avatar
  • 1
0 votes
1 answer
264 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 ...
user avatar
2 votes
1 answer
305 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 ...
user avatar
  • 133
3 votes
1 answer
222 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 ...
user avatar
  • 222
5 votes
2 answers
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 ...
user avatar
  • 2,446
1 vote
0 answers
100 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 ...
user avatar
  • 19
1 vote
0 answers
257 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 ...
user avatar
  • 159
1 vote
1 answer
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 ...
user avatar
  • 19
-1 votes
1 answer
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 ...
user avatar
  • 1
8 votes
4 answers
15k 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?
user avatar
  • 1,434
20 votes
5 answers
118k 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 ...
user avatar