Why android choose Java for it's desktop?
location: ubuntuforums.com - date: September 21, 2011
Hello!
Why do you think google choose java libaries for it's desktop environment. Android use as GPL-Linux but use java on it's desktop!? It was so difficult to write a new desktop environment or it would have problems with other libaries which are open source?
Need android help (java)
location: ubuntuforums.com - date: January 19, 2010
I do a:
Code:
java.net.InetAddress serverAddr;
try {
serverAddr = java.net.InetAddress.getByName(Server.SERVERNAME);
}
catch (java.net.UnknownHostException exception) {
//System.err.println ("wrong server name !!!");
HelloWorldActivity.tv.setText("wrong server name !!!");
return;
}
in my android application, but it's never resoling the hostname, it always throws an exception, no matter what name I use.
But using the internet on the same emulator works, and I've added
Code:
<use-permission id="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
to AndoidManifest.xml
and here's the server class for those who assume I have none
Code:
public class Server
{
public static String SERVERNAME = "monster.idsoftware.com";
public static String SERVERIP = "209.85.129.99";
public static int SERVERPORT = 27950;
Why is Android using Java as its application layer environment
location: ubuntuforums.com - date: July 17, 2010
I am puzzled as to why google what to use java in stead of something like C++ for Apps. I understand Dalvik Virtual Machine is very good, but for something so sensitive to power consumption as hand held units... Can someone enlighten me?
Here is a speed comparison i saw almost a year ago:
http://www.youtube.com/watch?v=It8xPqkKxis
Android and Java, match made in heaven?
location: linuxquestions.com - date: November 2, 2011
Hi,
Okay, so, a local store has this Android tablet for sale for E 89 I guess some 70 $ if calc serves. Now, I need something mobile that can run Java Applets. Can Android do this? I Wikipedia is to be believed, Java seems to be a core piece of Android...
Just before I get out and get me some piece of toy I may not be able to use
Tnx
Thor
PS - I posted this here because I dont have a login for adriodquestions.org - unless I'm in the "blink"...
LXer: 8 simple tips to save your Android Battery!
location: linuxquestions.com - date: May 3, 2011
Published at LXer:
This post illustrates 8 simple ways, to solve the long-standing-issue of poor battery life of Android.
Read More...
What are some FOSS libraries for reading epub, mobi, pdf, or other eBook formats for Android or Java?
location: linuxexchange.com - date: November 27, 2011
What are some FOSS libraries for reading epub, mobi, pdf, or other eBook formats for Android or Java?
Modifying android core java library causes custom ROM to not bootup
location: linuxexchange.com - date: January 1, 1970
We have a scenario where we need to modify a core java library in android: java.net.URL.java.
We modified the above code obtained from an AOSP release branch that matches the ROM Android build to debug an issue. We built the /system/framework/core.jar by modifying the above file in the AOSP release branch using the right flags to produce a deodexed core.jar file.
Then we replaced the /system/framework/core.jar file in the ROM update.zip file with the one that we built and the booted up the device with the modified ROM flashed to it. The device boots up and displays the boot animation and then just hangs with an LED that remains lit but no screen.
The only change to the code is adding some debug logging.
The same ROM without the mod boots up fine.
Attempting to use logcat to debug the issue does not help as the logcat output does not show up until after the device is already in hung state.
Is there any way we can debug this by capturing the logs at bootup?
Is there any sort of in
Android NIO java.io.IOException: Value too large for defined data type
location: linuxexchange.com - date: November 19, 2015
I'm trying to write a very large file to another very large file. I'm receiving this error on the filechannel writing line and I'm unsure why. I thought it was because I was going out of the limits of the data type long but long can go up to 9,223,372,036,854,775,807 and I'm only going up to 5,372,896,745 at the most. Any ideas why this is occurring? Is there some limit that MappedByteBuffer has? This doesn't occur for smaller files and I haven't run into any issues using the same code in a java desktop application. (Only happens on Android)
File f1 = new File(filename1);
FileChannel fic, foc;
long fsize;
MappedByteBuffer mBUf;
FileOutputStream out = new FileOutputStream(f1,true);
foc = out.getChannel();
File f2 = new File(filename2);
FileInputStream in = new FileInputStream(f2);
fic = in.getChannel();
fsize = fic.size();
for (long b = 0; b < fsize; b += 65536)
{
if (fsize - b < Resource.MEMORY_ALLOC_SIZE)
mBUf = fic.map(FileChannel.MapMode.READ_ONLY, b, fsiz
New to Linux and well ..C/C++/Python/Java/Jython/Android Looneys
location: linuxquestions.com - date: February 15, 2014
Hey guys, I've used this site to fumble through a lot of information, and man, there is so much going on it's a little overwhelming.
I installed Fedora20? on a Lenova Y400 uefi system a few weeks ago, and well I can't boot into Win8, and I maybeee might have lost my partitioned Windows8 hd? I used to be able to see it in Fedora, now I can't..
Anyways, that's not much concern. But I AM trying earnestly to learn C language, Python (only books I have right now), as well as shell scripting and working with bash, and whatever else it will involve.
It's been a really interesting immersment into this stuff so far, I really enjoy it and wish I would have gotten involved earlier, but it is indeed time consuming..
As of right now, I'm having a hard time REALLY understanding how the hell java/python/C/C++ interact with the machine.. at the same time I'm trying to understand how to REALLY communicate with the machine via linux/bash to locate files, unzip files, or even run files.
Hell
How will the Oracles Java License affect the delvik vm and me developing for Android?
location: linuxquestions.com - date: August 21, 2010
I just notice when installing jdk updates that Java is no longer under the GPL. (I thought back in 2006 Sun released Java or parts of Java under GPL license.) Oracle is now sueing Google because of the Delvik Virtual Machine. Can a company revoke a gpl license? How is this going to affect the openjdk project? I've checked everywhere on the java.sun.com and can not find any reference of a gpl. I know back in November of 2006, Sun made big news about opening most of Java's platform to the GPL. What gives.
On a side note,I think this post should be in LinuxQuestions.org > Forums > Non-*NIX Forums, but could not post there for some reason.
please wait...
Page: 1 2 3 4 5 6 7 8 9 10