Tuesday, May 25, 2010

Destination Weddings Welcome Letter

the emulator a GPS position


1. Möglichkeit: Telnet + "geo fix"

Per Telnet verbindet man sich mit dem Emulator und
setzt die GPS-Position des Emulators mit dem "geo fix" Befehl. telnet localhost (port number of the emulator) geo fix (longitude) (latitude)


example


telnet localhost 5554 geo fix 11.627239 55.22343

should be noted that the "geo fix" command rounding error does what when able to carry the GPS data
to differ materially. More details can be found at the following link.

http://groups.google.com/group/android-beginners/browse_thread/thread/206ed9cdf7adc81
DDMS It is therefore appropriate to use in Eclipse.



second Possibility: DDMS



order for the GPS position set properly you must work the following entries in the "
eclipse.ini " add:

-Duser.country = U.S. = en-Duser.language Otherwise you will also get a wrong GPS position.



- ak


Friday, May 21, 2010

Maxine Clipart Friday

Fill a ListView with content

Here is a simple guide on how to fill a list view with text content:


First, logically, a ListView item on the GUI is needed. This is chosen as the Eclipse main.xml from, changes to the Tab "Layout" and draws from the "layout" a "list view" on the display surface. Now, most immediately a unique name or ID "liste01" für die ListView vergeben (z.B. über Tab "Properties").



  1. ArrayList<string> meineListe = new ArrayList<string>


  2. (); meineListe.add("FC Bayern München"); meineListe.add("FC Barcelona"); meineListe.add("Manchester United");

    Als Mittler zwischen der Java-Liste und der ListView fungieren in Android sog. ListAdapter, die folgendermaßen instanziiert werden:

    ListAdapter listenAdapter = new ArrayAdapter
    (this, android.R.layout.simple_list_item_1, meineListe);


  3. Als Übergabeparameter erwartet der Konstruktor
    :

    den momentanen Context (Activity) eine Layout-Konstante, welche die Art der Darstellung festlegt

    Die Java-Liste, die implementiert werden soll


    • Abschließend wird nun der Inhalt der Liste per Adapter in die ListView
  4. eingebunden: list view my listview = (ListView) findViewById (R.id.liste01); meineListView.setAdapter (list adapter);



    over the listener OnItemClick Class adapter view can now for example the event handling in the event that the user selects a list item to be set
    .
  5. - us

Friday, April 30, 2010

Best Emulator To Play Diamond

reading MP3 tags

The following is a simple guide on how Android reading tags of MP3 possible. Access to information of different data types (eg audio or video) is in Android exclusively on so-called content providers. Es existiert eine ganze Reihe von Content-Providern, wobei über eine konstante URI auf einen bestimmten Satz von Daten zugegriffen werden kann. Alle standardmäßig vorhandenen Content-Provider sind im Package android.provider zusammengefasst. Die folgende Codezeile definiert eine URI zum Content-Provider, welcher die Media-Informationen von Audiodateien auf der SD-Card bereithält:
    Die Konstante
  1. EXTERNAL_CONTENT_URI
    verweist dabei explizit auf den Pfad "/sdcard/"
    .


    Es wird nun eine Auflistung benötigt, welche sämtliche mp3-Dateiinformationen beinhaltet, which are desired by the content provider. Location as a simple array is used: String [] tags = new String [] {

  2. android.provider.

    MediaStore.Audio.Media._ID,


    android.provider. MediaStore.Audio.Media.TITLE,
    android.provider. MediaStore.Audio.Media.ARTIST,
    android.provider. MediaStore.Audio.Media.ALBUM,
    android.provider. MediaStore.Audio.Media.YEAR
    };
    At defined in step 1, content providers can now by an object of class cursor query is executed, the content provider is searched for all requirements of the array:
    cursor cursor = managed query (uri, tags, null, null, null);


  3. Using the following code then the (partial) result of the query is read and stored in a simple list:

    List \u0026lt;String>

  4. interpreters = new ArrayList
  5. ();

    cursor. MoveToFirst ( )
    ;
    do { interpreters. add
    (
    cursor
    getString ( cursor getColumnIndexOrThrow ( "ARTIST" ) ) ..) ;} while (. cursor
    MoveToNext
    (
    ) ) ; The example then saves the contents of the tag "ARTIST" of all data stored on the SD card mp3 files as strings in the list interpreters.

    --us

Wednesday, April 21, 2010

Games Like Mount & Blade

Sechser-Pack historische Zeitschriften

That was a lot of work. And not only me but also for Andre Betz and alpi .

The former provided me with all four games, special issues of power play in the years 1985 and 1986 as scans available. A little edit, content capture and hey presto - these four books are now available for the rest of the world in cult Power Archive . In a way, the article is: a few games with the test reports compliant? Summer Games, Winter Games, California Games, MULE, Pitfall II, Wizardry, Ultima, Archon, Elite. And now I've only reviews listed from the first special issue ! In the second example, we go to World Games, Paradroid, Marble Madness, Silent Service. Still not enough? Then please nachblättern himself :-)

Thanks alpi to give me five now, the Players supplements to Happy Computer scanned was made available, you can browse now and in the Games supplement to Happy Computer 3 / 1987 - are here for example, reviews of The Bard's Tale II and They Stole a Million named.

For the 18th Consequence of the veterans Games Podcasts (is taken, nor will this week) I still have the issue 5 / 1990 Powerplay scanned. Not even wrong ...

In the background of the archive site has done good stuff. I have found in recent weeks developed its own comments system, which allows any visitor is now possible to leave on the main page and archive of each issue a comment - so happy to inform all the other readers your memories of this historic booklets! Or give me your opinion on the archive on the main page.

Overall, the cult Power Archive now whopping 22 issues of old gaming magazines available - with a total of 1954 pages to which I have collected 1527 content in a database so that it conveniently on the corresponding list of contents und die Archiv-Suche zugreifbar sind. Die Qualität der Scans ist auch vorbildlich: sie umfassen momemtan 1485 (!) MegaByte.