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
0
votes
0answers
11 views

Connect android device to TOR [closed]

How might I connect to TOR with an application as a system wide proxy? I would like to build an application that connects on demand, using either a socks proxy interface or a java library for the TOR ...
0
votes
0answers
10 views

How to maintain application compatibility between Android versions? [closed]

Some Android codes (Java) work on specific versions and others throw exceptions/errors. This is very common, so much so that achieving a stable version of an application usually requires a lot of ...
0
votes
0answers
20 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. (...
1
vote
0answers
32 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,...
1
vote
0answers
21 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 ...
0
votes
0answers
25 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 ...
1
vote
0answers
40 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 ...
2
votes
3answers
163 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 ...
1
vote
3answers
661 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....
0
votes
0answers
141 views

Unable to create Android virtual device in Android Studio

I have just downloaded Android Studio, and I am trying to create an Android virtual device so that I can run my code. When I try to, I see this screen: When I select one of the system images and ...
0
votes
1answer
49 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 ...
1
vote
1answer
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 -...
-1
votes
1answer
72 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
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 ...
5
votes
1answer
144 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/...
1
vote
0answers
137 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
283 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
194 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 ...
3
votes
1answer
329 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. ...
0
votes
0answers
76 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 ?
0
votes
0answers
313 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.
3
votes
1answer
7k 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 ...
5
votes
2answers
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 ...
0
votes
1answer
706 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 ...
4
votes
1answer
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: ...
1
vote
0answers
1k 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
vote
1answer
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 ...
0
votes
3answers
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. ...
1
vote
2answers
1k 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
votes
1answer
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 ...
1
vote
3answers
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 ...
1
vote
0answers
267 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
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 ...
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 ...
4
votes
2answers
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 ...
0
votes
1answer
490 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
237 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 ...
13
votes
4answers
83k 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
429 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
259 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
303 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
216 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 ...
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 ...
1
vote
0answers
92 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 ...
1
vote
0answers
225 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 ...
1
vote
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
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?
20
votes
5answers
117k 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 ...