Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
a518d5a4
Kaydet (Commit)
a518d5a4
authored
Mar 27, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: open csv files in Calc
Change-Id: I17b9c4f9d40db46fe6f1be8f1a3ecaee4946454c
üst
54510b3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
AndroidManifest.xml.in
android/experimental/LOAndroid3/AndroidManifest.xml.in
+1
-0
LibreOfficeMainActivity.java
...id3/src/java/org/libreoffice/LibreOfficeMainActivity.java
+8
-1
No files found.
android/experimental/LOAndroid3/AndroidManifest.xml.in
Dosyayı görüntüle @
a518d5a4
...
...
@@ -77,6 +77,7 @@
<!-- OTHER -->
<data
android:mimeType=
"text/csv"
/>
<data
android:mimeType=
"text/comma-separated-values"
/>
<data
android:mimeType=
"application/vnd.ms-works"
/>
<data
android:mimeType=
"application/vnd.apple.keynote"
/>
<data
android:mimeType=
"application/x-abiword"
/>
...
...
android/experimental/LOAndroid3/src/java/org/libreoffice/LibreOfficeMainActivity.java
Dosyayı görüntüle @
a518d5a4
...
...
@@ -171,7 +171,14 @@ public class LibreOfficeMainActivity extends ActionBarActivity {
InputStream
inputStream
=
null
;
try
{
inputStream
=
contentResolver
.
openInputStream
(
getIntent
().
getData
());
mTempFile
=
File
.
createTempFile
(
"LibreOffice"
,
null
,
this
.
getCacheDir
());
// CSV files need a .csv suffix to be opened in Calc.
String
suffix
=
null
;
String
intentType
=
getIntent
().
getType
();
// K-9 mail uses the first, GMail uses the second variant.
if
(
"text/comma-separated-values"
.
equals
(
intentType
)
||
"text/csv"
.
equals
(
intentType
))
suffix
=
".csv"
;
mTempFile
=
File
.
createTempFile
(
"LibreOffice"
,
suffix
,
this
.
getCacheDir
());
OutputStream
outputStream
=
new
FileOutputStream
(
mTempFile
);
byte
[]
buffer
=
new
byte
[
4096
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment