RSS-Verzeichnis
Hilfe  |  Infos  |  Presse  |  Kontakt
Home > Computer & Technik > Software > Der Java Blog | RSS Verzeichnis

Der Java Blog

Java EE, Android und Core Java. Was ist Java? Java ist eine objektorientierte Programmiersprache und eingetragenes Warenzeichen des Unternehmens Sun Microsystems, welches Ende Januar 2010 von Oracle übernommen wurde. Die Programmiersprache ist Bestandteil der Java-Technologie. Mit Java werden meist keine Programme in Maschinensprache erzeugt, sondern Bytecode, der in einer speziellen Laufzeitumgebung ausgeführt wird. Der wesentliche Bestandteil dieses Java Runtime Environments ist die Java Virtual Machine, die die Programme ausführt, indem sie den Bytecode interpretiert und bei Bedarf kompiliert (Just-in-time-Kompilierung, häufig mit Hotspot-Optimierung).

Betreiber-URL: http://www.worldling.de
RSS-Feed-URL: http://www.worldling.de/feed/
Die neuesten Einträge aus dem RSS-Feed von Der Java Blog:
Einfaches XML Parsen in Android mit SimpleXML (XML Parsing)
29.02.2012 07:56
Einfaches XML Parsen in Android mit SimpleXML Erstmal müssen wir den .jar runterladen: http://simple.sourceforge.net/download.php Dan geben wir ihn in den Buil Path ein: Im Manifest muss die Permission sein: <uses-permission android:name="android.permission.INTERNET" /> Die einfache XML die wir parsen: <data> <name>Example Name</name> </data>   Hier unser Ergebniss:   …und der Code:   Data.java package de.worldling; import [...]
SharedPreferences in Android
27.02.2012 09:27
SharedPreferences in Android Heute ohne xml, nur Java Code für eine einfache SharedPreferences App   package de.worldling; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.content.SharedPreferences.Editor; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; public class PreferencesTestActivity extends Activity implements OnClickListener{ EditText editText; SharedPreferences sharedPreferences; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); setupStuff(); [...]
Auf Preferences in Android Zugreifen
14.02.2012 10:05
Auf Preferences in Android Zugreifen   private TextView textView; textView = (TextView) findViewById(R.id.tv1); SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getBaseContext()); String string = sharedPreferences.getString("thename", ""); textView.setText(string);  
Android Preferences setzen mit Menu und PreferenceActivity
14.02.2012 08:58
Android Preferences setzen mit Menu und PreferenceActivity   Es müssen 3 .xml Dateien erschaffen werden: menu1.xml, array.xml und prefs1.xml menu1.xml <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android" > <item android:id="@+id/preferences" android:title="Preferences"/> <item android:id="@+id/exit" android:title="Exit App"/> </menu>     array.xml <?xml version="1.0" encoding="utf-8"?> <resources> <string-array name="list"> <item> Option 1 </item> <item> Option 2 </item> </string-array> <string-array name="values"> <item>1</item> [...]
Android – Parameters passing zu einer anderen Activity
13.02.2012 11:08
Android – Parameters passing zu einer anderen Activity Eine App in der man mit Button Click einen Parameter zu einer anderen Activity weiter recht.       main.xml   <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:padding="40dp" android:layout_height="fill_parent" android:orientation="vertical" > <EditText android:id="@+id/etPar" android:layout_width="fill_parent" android:layout_height="wrap_content" > </EditText> <Button android:id="@+id/bPar" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text=" Pass the parameter" /> </LinearLayout> [...]
ToggleButton – Password hiding in Android
13.02.2012 10:24
ToggleButton – Password hiding in Android Eine App, die mit dem ToogleButton unser Password anzeigt oder es versteckt. main.xml   <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:padding="40dp" > <EditText android:id="@+id/etPass" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="Type the password" android:password="true" /> <ToggleButton android:id="@+id/tbPassword" android:layout_width="fill_parent" android:layout_height="wrap_content" android:checked="true" android:paddingBottom="10dp" android:text="ToggleButton" android:textOff="Showing password" android:textOn="Hiding password" /> <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" [...]
Android GraphicsView – einen Gradient Background setzen und Circles Malen
06.02.2012 13:45
Android GraphicsView – einen Gradient Background setzen und Circles Malen   Heute machen wir mall so etwas in Android:   background.xml <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" > <gradient android:angle="270" android:endColor="#000000" android:startColor="#FFFFFF" /> </shape> Die Activity: package com.example; import android.app.Activity; import android.content.Context; import android.content.res.Resources; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Path; import android.graphics.Path.Direction; import android.graphics.drawable.Drawable; [...]
Ein Android Splash Screen Tutorial (mit mp3 Sound)
06.02.2012 09:28
Ein Android Splash Screen Tutorial (mit mp3 Sound) Es ist immer gut, wenn eine Android App uns mit einen Splash Screen begrüßt. Hier ein Tutorial dafür: Der splash.xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" android:background="@drawable/back" > </LinearLayout> Der Manifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="de.worldling" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" [...]
Android Tutorial – Mp3 Sounds mit Button abspielen
03.02.2012 12:47
Android Tutorial -  Mp3 Sounds mit Button abspielen Eine einfache App, mit der man einen Mp3 Sound abspielen kann.   main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <Button android:id="@+id/bAudio" android:layout_width="250dp" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginTop="50dp" android:text="Audio 1" android:textSize="20dp" /> <Button android:id="@+id/bAudio2" android:layout_width="250dp" android:layout_height="wrap_content" android:layout_gravity="center" android:text="Audio 2" android:textSize="20dp" /> </LinearLayout> Unsere Activity package de.worldling; import [...]
Einfache Android App – Dialog Theme und ein Exit Button
01.02.2012 13:15
Einfache Android App – Dialog Theme und ein Exit Button Wir schreiben ein Android App, die einen TextVeiw und zwei Buttons hat. So sieht sie aus: main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     android:orientation="horizontal"     android:padding="50dip" >     <LinearLayout         android:layout_width="fill_parent"         android:layout_height="wrap_content"         android:layout_gravity="center"         android:orientation="vertical" >         <TextView             [...]
RSS Verzeichnis