Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Foreign Languages > Italian Forum
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Apertura File PDF-DOC-XLS

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-25-2012, 08:22 AM
Knows the basics
 
Join Date: Jan 2012
Posts: 79
Default Apertura File PDF-DOC-XLS

Ciao raga
Sono un po intoppato
Sto cercando un po nel forum ma purtroppo senza successo ( magari sbaglio la ricerca )
dunque il problema e' il seguente
In una listView inserisco il contenuto di una cartella ossia prelevo il nome del file testo l'estensione e la scrivo nella listView associando una iconcina
Ora se volessi aprire il documento come posso fare
Nella itemclick non ho problemi a farmi tornare il nome del file (Msgbox(lstallegati.GetItem(position),"noem file") ma poi aprirlo non ho la piu' pallida idea
Qualcuno ha qualche idea
Ciaoooo a tutti e garzieeeeeeee
Massimo
Reply With Quote
  #2 (permalink)  
Old 01-25-2012, 05:37 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 977
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Guarda questo Link: http://www.basic4ppc.com/forum/basic...html#post74734
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #3 (permalink)  
Old 01-25-2012, 07:02 PM
Knows the basics
 
Join Date: Jan 2012
Posts: 79
Default

Grazie mille Filippo
risolto il problema grazie al tuo link
Poi ho trovato anche questo
http://www.basic4ppc.com/forum/frenc...er-un-pdf.html
Ora il PDf lo apre correttamnte. Ora mi manca da studiare come aprire una immagine, un documento word e excel ma almeno so da dove partire.
Grazie mille
Massimo
Reply With Quote
  #4 (permalink)  
Old 02-01-2012, 07:21 PM
Junior Member
 
Join Date: May 2011
Posts: 27
Default

L'esempio lancia il file "nomefile.xml" mediante una delle applicazioni installate associate all'estensione del file lanciato (ne permette la selezione).

Dim i As Intent
i.Initialize(i.ACTION_VIEW, "file:///sdcard/nomefile.xml")
i.SetType("application/*")
StartActivity(i)

SetType può accettare anche una delle seguenti personalizzazioni, ciascuna delle quali permette il lancio delle applicazioni associate a quel tipo di file.

i.SetType("multipart/*")
i.SetType("message/*")
i.SetType("video/avi")
i.SetType("audio/mp3")
i.SetType("image/jpeg")
i.SetType("text/xml")
i.SetType("text/plain")

Di seguito riporto i tipi più frequenti ed i sottotipi.
Per gli altri tipi/sottotipi vedi MIME Types

Type Subtype Typical File Extensions
text html html htm
plain txt
tab-separated-values
richtext
multipart alternative
digest
mixed
parallel
message external-body
news
partial
application msword doc
octet-stream tar dump readme bin uu exe
pdf pdf
postscript ps eps ai
rtf rtf
x-dvi dvi
x-pdf pdf
x-tar tar
x-tex tex
zip zip
image gif gif
jpeg jpeg jpg jpe
rgb rgb
tiff tiff tif
x-pict pict
audio basic au snd
x-aiff aif aiff aifc
x-wav wav
video mpeg mpeg mpg mpe
quicktime qt mov
x-msvideo avi
x-sgi-movie movie

Ciao
Marco
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Load one File out of a zip-file schimanski Basic4android Updates and Questions 4 05-21-2012 05:09 AM
Wish - Close file in File Menu SiriusCG Bugs & wishlist 0 01-23-2012 02:03 PM
File.ReadString and File.GetText rbsoft Basic4android Updates and Questions 2 12-05-2011 02:12 PM
How can I call function from a lib file instead of a dll file from Basic4PPC? tsdt Questions (Windows Mobile) 2 03-11-2010 06:26 AM
CSV file generates strange start in file sunnyboyj Questions (Windows Mobile) 9 12-21-2007 08:38 PM


All times are GMT. The time now is 11:40 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0