Hot answers tagged

17

Minecraft Pocket Edition is available in the Google Play Store and Amazon's Appstore. Engadget has a hands-on of the game, and "SonyEricssonDev" has a video showing Minecraft being played on the Xperia Play.


12

I know nothing about Minecraft but I can't see how it would be possible without rewriting big chunks of it. Even if you can convert the JAR to an .apk, there are many Java classes that are not part of the Android API. Furthermore, Android does not include AWT, Swing or Java 2D/3D, it has its own UI and graphics APIs, so the user interface would need to be ...


9

Android cannot just "run" native Java applications. Android does not have a Java Virtual Machine. Android uses a Dalvik Virtual Machine, which is completely different. While android applications are written in Java, it is a "subset" of actual Java. so even if you could run the jar files through a "converter", there is no guarantee the code is actually ...


5

Apps for Android are compiled into a dalvik, machine code like format before they can be run on the device. This means that everything is compiles, and things like Java etc cannot be updated on the device - as the device doesn't actually use Java. It could be possible for malicious code to be installed into an Android app, however Google Play does check ...


4

I'm not surprised you're confused: the term is indeed used for two different things, as you've found. For developers, a widget means a View: a single GUI control inside an activity, which can show information or be manipulated by the user. Examples include Button, TextView, and SeekBar. The app component that lives on the home screen (or lock screen) is ...


4

Generally this is not possible as although Android-flavored java has the same syntax and semantics as typical java, it does not run on the same virtual machine (Google has its own VM that android phones all ship with and which has a different byte code format than conventional java VMs) nor does it use or have access to Oracle's java standard library. Google ...


3

The Javascript engine in Android's Browser/WebView can be either JavaScriptCore (lower end phones) or V8 (higher end phones). Chrome also uses V8. Both engines are written in C++. Javascript is never compiled to Java bytecode, instead it is interpreted and/or JIT compiled into ARM bytecode. My guess on why V8 on PC is much faster than V8 on Android is ...


3

The only two options I can think of, is to make a HTML5 cross-platform mobile app that will work across the spectrum, having said that, I can understand corporate environments wanting to cling on to IE to support ActiveX apps within the browser, which is leading you to think that the Java on the desktop is the same as on Android, which is not true. For the ...


2

The closest I've found is http://www.apogee.com/products/cjre-a Unfortunately as stated on that page: Note that Apogee temporarily suspended further development of CJREs+A in June, 2012, because of insufficient demand for them. Please, contact Apogee if you are interested in a CJRE+A targeted at a an Android-running device of your choice for "...


2

grep doesn't really like binary files, but you can extract the strings from the binary and grep those using strings. This binary is not available on most stock ROMs, but you can use Busybox or a similar tool to use it on most devices. On my device the following command lists the correct OpenSSL version used by libssl.so: strings /system/lib/libssl.so | ...


1

HTTP Client is deprecated by Android Studio. SO use this Volley library developed by Google. It is really fast and lightweight. A small example is : final TextView mTextView = (TextView) findViewById(R.id.text); // Instantiate the RequestQueue. RequestQueue queue = Volley.newRequestQueue(this); String url ="http://www.google.com"; // Request a string ...


1

The Developer options are stored in the file: /data/data/com.android.providers.settings/databases/settings.db Pay attention that this is a database stored on file that includes also other saved options / settings, so just copying over another db file might cause unexpected behaviors.


1

If your device is rooted you could install Tinted Statusbar (Xposed). This will do what you want.


1

I found an app on the play store that let me answer this question. Below are the steps I used to get javac and java running. Install Terminal IDE Go to the play store and install Terminal IDE, this supports everything needed to write and run java applications: vim, javac, and java. Once the app is installed, make sure you open the app and go to Install ...


1

You can do it quite easily as there are many ways to run java apps on android. Specific application called Java Emualtors can do it quite easliy. There are four most popular java emulators for android viz, JBED, PhoneME, Jblend and NetMite. There are arranged in order of their preference. You can use phoneme for unrooted device, however if your device is ...


1

Conclusion This is a programming error within the HTC Music app (based on the package id). The best option is to report this error to the developers using the force close dialog. More details As a programmer I recognize the nullpointer exception thrown in the HtcMusicFragment at line 8905. The package (and class name) indicate that this is an app from ...


1

"Why" is not a question well suited for our site, as it probably is a speculative question and such off topic (see our [FAQ]). Although, a short technical explanation: The company building your ROM decided such. "How can I disable them" would be better fitting, and even has answers: If you cannot disable them from Settings→Apps→Manage Apps, you ...


1

J2me Runner Netmite has probably fixed their website and since then no corrupted files have come out. I just made a UC browser cloud version from them and it works on Jelly Bean, however there's problems; the internet connection is not establishing at all, and the original apk app runner doesn't open at all. (there are two Apps in one apk.. the App Explorer ...


1

Although most Android apps are originally written in Java, they are then converted into Dalvik code which runs on a Dalvik Virtual Machine on the Android device. Android devices don't natively have any Java Virtual Machine installed, and can't run Java apps or applets. Someone would have to write a JVM that can run on Android and then make it available as a ...


1

You can run a JAR provided that is a midlet for mobile (j2ME) There are some JVM available in the market. I used them a lot in the early days of my G1 for some "killer apps" (Opera Mini, QQ)


1

Android still does not support Java applets, nor will it, without major work. The Java in Android isn't 'real' Java - it is a custom written version by Google. Android apps may be written in Java, but they are converted to Dalvik at compile time. As such, it would be nigh on impossible to develop a browser that has compatibility for Java Applets.



Only top voted, non community-wiki answers of a minimum length are eligible