D
Didiauskoeln
Neues Mitglied
- 0
Hallo Androiden,
Bisher konnte ich, mit Hilfe dieses Forums ohne Nachfragen meine Probleme lösen. Jetzt muss auch ich mal eine Frage stellen.
Wir haben drei Dokumente, die vom Büro aus wöchentlich geändert werden, auf die wir dann mit unseren Smartphones zugreifen. Einigen Mädels ist der derzeitige Weg aber zu kompliziert... Ziel soll es sein, man öffnet eine App, man klickt auf einen Button, das Dokument wird geladen, man wird einmalig gefragt (standardmäßig vom System), mit welchem Programm geöffnet werden soll, man wählt einmalig seine Standard-App und das Dokument ist geöffnet. In Zukunft braucht man dann nur noch den Button klicken und das Dokument öffnet sich..
Nun habe ich mir gedacht diese kleine App zu schreiben, in der nur drei Buttons, mit je einem kleinen Infotext drüber, sind.
Die App ist seit Tagen soweit fertig, nur bekomme ich keine Links zu den Dokumenten hin. Sämtliche Tutorials habe ich mir durchgelesen und angeschaut. Leider hat sich mit den (wahrscheinlich zu simplen) Dingen keiner beschäftigt, oder ich habe es einfach nur übersehen.
Programmiert , habe ich mit Eclipse und SDK. Da die älteste OS Version unserer Smartphones 2.3.3 ist habe ich mich für utf-8 entschieden
Hier mein Problem:
Mit diesem Button1 möchte ich gerne auf unser Dokument1 verweisen.
<Button
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/ButtonRS1" />
--->
Müsste in der untersten Reihe (--->) nicht irgendwas mit android:link="http://www.url.de/Ordner/Dokument1.xls", oder was mit (view view), oder so was stehen?
Klar, das /> am Ende stehen muss.
Ich hoffe alle notwendigen Angaben gemacht zu haben, freue mich schon auf Eure positiven Antworten und verbleibe mit freundlichen Grüßen aus dem schönen Kölner Norden.
Didi
---------------------------
Hier mal der gesamte main.xml Code... (nichts besonders)
Achso, wird wahrscheinlich auffallen und sofort angesprochen. Ja die Progressbar hat keine wirkliche Funktion, ausser gut auszusehen.
<?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"
androidrientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<ProgressBar
android:id="@+id/progressBar1"
style="?android:attr/progressBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/bodyRS" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/body1" />
<Button
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/ButtonRS1" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/body2" />
<Button
android:id="@+id/button2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/ButtonRS2" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/body3" />
<Button
android:id="@+id/button3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/ButtonRS3" />
</LinearLayout>
Bisher konnte ich, mit Hilfe dieses Forums ohne Nachfragen meine Probleme lösen. Jetzt muss auch ich mal eine Frage stellen.
Wir haben drei Dokumente, die vom Büro aus wöchentlich geändert werden, auf die wir dann mit unseren Smartphones zugreifen. Einigen Mädels ist der derzeitige Weg aber zu kompliziert... Ziel soll es sein, man öffnet eine App, man klickt auf einen Button, das Dokument wird geladen, man wird einmalig gefragt (standardmäßig vom System), mit welchem Programm geöffnet werden soll, man wählt einmalig seine Standard-App und das Dokument ist geöffnet. In Zukunft braucht man dann nur noch den Button klicken und das Dokument öffnet sich..
Nun habe ich mir gedacht diese kleine App zu schreiben, in der nur drei Buttons, mit je einem kleinen Infotext drüber, sind.
Die App ist seit Tagen soweit fertig, nur bekomme ich keine Links zu den Dokumenten hin. Sämtliche Tutorials habe ich mir durchgelesen und angeschaut. Leider hat sich mit den (wahrscheinlich zu simplen) Dingen keiner beschäftigt, oder ich habe es einfach nur übersehen.
Programmiert , habe ich mit Eclipse und SDK. Da die älteste OS Version unserer Smartphones 2.3.3 ist habe ich mich für utf-8 entschieden
Hier mein Problem:
Mit diesem Button1 möchte ich gerne auf unser Dokument1 verweisen.
<Button
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/ButtonRS1" />
--->
Müsste in der untersten Reihe (--->) nicht irgendwas mit android:link="http://www.url.de/Ordner/Dokument1.xls", oder was mit (view view), oder so was stehen?
Klar, das /> am Ende stehen muss.
Ich hoffe alle notwendigen Angaben gemacht zu haben, freue mich schon auf Eure positiven Antworten und verbleibe mit freundlichen Grüßen aus dem schönen Kölner Norden.
Didi
---------------------------
Hier mal der gesamte main.xml Code... (nichts besonders)
Achso, wird wahrscheinlich auffallen und sofort angesprochen. Ja die Progressbar hat keine wirkliche Funktion, ausser gut auszusehen.
<?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"
androidrientation="vertical" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/hello" />
<ProgressBar
android:id="@+id/progressBar1"
style="?android:attr/progressBarStyleSmall"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="right" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/bodyRS" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/body1" />
<Button
android:id="@+id/button1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/ButtonRS1" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/body2" />
<Button
android:id="@+id/button2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/ButtonRS2" />
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/body3" />
<Button
android:id="@+id/button3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/ButtonRS3" />
</LinearLayout>
Zuletzt bearbeitet: