BinSpeak

dev@blog

HowTo: Android Browser-App

März 31st, 2009 by admin

Hier eine ganz kurze Beschreibung, wie man für Google’s Android eine Anwendung schreibt, die eine Website als Oberfläche nutzt. Das ganze ist wirklich sehr einfach:

Man muss nur das package android.webkit.* einbinden, und dann in seiner der onCreate-Funktion seiner Activity ein WebView-Objekt erzeugen. Das ganze sieht etwa so aus:

WebView view = new WebView(this); //this ist die Activity
setContentView(view);
view.loadUrl("http://<gewuenschte-url>");

Damit die Applikation vom Handy aus auf das Internet zugreifen darf, muss man zusätzlich im Manifest der Anwendung (AndroidManifest.xml im Root-Ordner) die Permission android.permission.INTERNET setzen. Das ganze sieht in etwa so aus:

<manifest ...>
    <uses-permission android:name="android.permission.INTERNET" />
    <application...>
    </application>
</manifest>

Das war dann auch schon alles, um einen -zugegebenermaßen sehr rudimentären- Browser zu bauen. Jetzt kann man sich daran machen, eine WebApp zu schreiben, die in dieser Wrapper-Anwendung läuft. Fürs iPhone gibt es da schon einige Frameworks, ich selbst arbeite gerade an einem, das dann auch zum G1 passt. Mal schauen, ob ich genug Zeit habe, daraus etwas werden zu lassen.

This entry was posted on Dienstag, März 31st, 2009 at 23:50 and is filed under general. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

19 responses about “HowTo: Android Browser-App”

  1. SwedishDragon said:

    home insurance quotes xkqnaf jefferson pilot life insurance nag car insurance quotes =OO health insurance quotes 8OOO auto insurance cho

  2. lynx7mm said:

    phentermine shortage 8-)) where to buy cialis =-OOO cialis >:]] purchase prednisone =O how to order doxycycline =-PP

  3. wtfronni said:

    propecia online without prescription sovsj cialis 6747 acomplia :OOO viagra 152 buying viagra vle

  4. GloFoShow said:

    new york state health insurance program gnk health insurance quotes xuuw cheap life insurance knxzrb home insurance online quote utah %-))) home insurance rates %-[[[ insurance auto auctions zrhc

  5. Cooolybob said:

    phentermine 7495 accutane %-)) accutane %( xanax without a prescription gko buy brand name valium mbc levitra 045 buy domain tramadol 56771

  6. XipchanX said:

    xanax kve viagra =-OO xanax 750211 acomplia diet no pill prescription required 806020 doxycycline order online pxr

  7. thaicutie said:

    life insurance quotes :-D D health insurance quotes 03563 cheap health insurance jbzfw auto insurance rates >:))) cheap health insurance >:P auto insurance agency wcn home insurance rates crucah

  8. GeeWayLuver said:

    viagra 604934 buy xanax in florida 0195 prednisone pills ahbwx painkiller ultram vha doxycycline price >:[[[ buy prednisone on-line cdzfa

  9. Casino 1276646003 said:

    Casino 1276646003…

    Casino 1276646003…

  10. Casino 1276648397 said:

    Casino 1276648397…

    Casino 1276648397…

  11. pakimonishe said:

    xanax 155739 phentermine 8)) auto insurance 7416 meridia 179840

  12. Sachertorte said:

    carisoprodol 4215 buy xanax :D xanax =-( buy cheap meridia zuvmwf

  13. runes of magic gold kaufen said:

    nice blog ,great .==

  14. AAWzLX said:

    ZrKecIX

  15. KallalsAledge said:

    The aggregate you achieve affair in restitution as a service to to believe galvanize on approaching muted medicate levitra. Possessions communication behoove difficult any oftentimes send buy tramadol.

  16. martin9457m said:

    quark file corruption error kpzi credit insurance risk management information system sfy cumberland county mortgage 8-(( canada federal loan student ksy projection of reduction of us debt 152372

  17. ramonprats said:

    aurora mortgage company >:-D satellite tv blackjack 0996 alcaldia de vallegrande jrqx cakewalk pro 3 help :-[[ taking ibuprofen with aspirin :-[ roulette wheel layout casino 33172

  18. aznricechuger said:

    how to count cards for blackjack umq mortgage broker in united kingdom nogvo imsi turbocad designer 14 ijutc instant approval auto loans 095 slot radiators idsbb negotiating credit card debt settlements arz

  19. tanner17vb said:

    prescription xanax lethal dose in milligrams =]]] xanax withdrawl symptom 242 cialis reaction 257 effects of alcohol on effexor xr :( (

Leave a Reply