[jira] [Created] (CB-10649) Customize android toolbar

2016-02-19 Thread Joachim Piketz (JIRA)
Joachim Piketz created CB-10649:
---

 Summary: Customize android toolbar
 Key: CB-10649
 URL: https://issues.apache.org/jira/browse/CB-10649
 Project: Apache Cordova
  Issue Type: Wish
  Components: Plugin InAppBrowser
Reporter: Joachim Piketz


Please allow to hide the address within the android toolbar using an option. 
Additionally buttons are blurry on some devices.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-6349) Return mime type in FileTransfer download

2014-03-26 Thread Joachim Piketz (JIRA)
Joachim Piketz created CB-6349:
--

 Summary: Return mime type in FileTransfer download
 Key: CB-6349
 URL: https://issues.apache.org/jira/browse/CB-6349
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Plugin File Transfer
Affects Versions: 3.3.0
 Environment: Android
Reporter: Joachim Piketz


Return the mime type if the file is transferred using Url Connection. 

Changes in FileTransfer.java

...
JSONObject fileEntry = FileUtils.getEntry(file);
// added start
if (connection != null)
fileEntry.put(type, connection.getContentType());  
// added end
result = new PluginResult(PluginResult.Status.OK, fileEntry);
...

Changes in JS Function FileTransfer.prototype.download
...
   entry.type = result.type;  // added
   entry.isDirectory = result.isDirectory;
...



--
This message was sent by Atlassian JIRA
(v6.2#6252)


[jira] [Created] (CB-5946) Automatic mime type

2014-01-30 Thread Joachim Piketz (JIRA)
Joachim Piketz created CB-5946:
--

 Summary: Automatic mime type
 Key: CB-5946
 URL: https://issues.apache.org/jira/browse/CB-5946
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android, Plugin File Transfer
Affects Versions: 3.3.0
Reporter: Joachim Piketz


Feature request: automatically detect mime type.
The following works for me in Android:
{code}
String mime = application/octet-stream;
try 
{
mime = 
cordova.getActivity().getContentResolver().getType(sourceUri);
}
catch (Exception e)
{
  Log.e(LOG_TAG, e.getMessage(), e);
}
final String mimeType = mime; 
Log.d(LOG_TAG, mimeType:  + mimeType);
{code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (CB-5946) Automatic mime type in Filetransfer plugin

2014-01-30 Thread Joachim Piketz (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-5946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joachim Piketz updated CB-5946:
---

Summary: Automatic mime type in Filetransfer plugin  (was: Automatic mime 
type)

 Automatic mime type in Filetransfer plugin
 --

 Key: CB-5946
 URL: https://issues.apache.org/jira/browse/CB-5946
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android, Plugin File Transfer
Affects Versions: 3.3.0
Reporter: Joachim Piketz

 Feature request: automatically detect mime type in filetransfer plugin.
 The following works for me in Android:
 {code}
 String mime = application/octet-stream;
 try 
 {
   mime = 
 cordova.getActivity().getContentResolver().getType(sourceUri);
 }
 catch (Exception e)
 {
   Log.e(LOG_TAG, e.getMessage(), e);  
 }
 final String mimeType = mime; 
 Log.d(LOG_TAG, mimeType:  + mimeType);
 {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (CB-5946) Automatic mime type

2014-01-30 Thread Joachim Piketz (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-5946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joachim Piketz updated CB-5946:
---

Description: 
Feature request: automatically detect mime type in filetransfer plugin.
The following works for me in Android:
{code}
String mime = application/octet-stream;
try 
{
mime = 
cordova.getActivity().getContentResolver().getType(sourceUri);
}
catch (Exception e)
{
  Log.e(LOG_TAG, e.getMessage(), e);
}
final String mimeType = mime; 
Log.d(LOG_TAG, mimeType:  + mimeType);
{code}

  was:
Feature request: automatically detect mime type.
The following works for me in Android:
{code}
String mime = application/octet-stream;
try 
{
mime = 
cordova.getActivity().getContentResolver().getType(sourceUri);
}
catch (Exception e)
{
  Log.e(LOG_TAG, e.getMessage(), e);
}
final String mimeType = mime; 
Log.d(LOG_TAG, mimeType:  + mimeType);
{code}


 Automatic mime type
 ---

 Key: CB-5946
 URL: https://issues.apache.org/jira/browse/CB-5946
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android, Plugin File Transfer
Affects Versions: 3.3.0
Reporter: Joachim Piketz

 Feature request: automatically detect mime type in filetransfer plugin.
 The following works for me in Android:
 {code}
 String mime = application/octet-stream;
 try 
 {
   mime = 
 cordova.getActivity().getContentResolver().getType(sourceUri);
 }
 catch (Exception e)
 {
   Log.e(LOG_TAG, e.getMessage(), e);  
 }
 final String mimeType = mime; 
 Log.d(LOG_TAG, mimeType:  + mimeType);
 {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)


[jira] [Updated] (CB-5946) Automatic mime type in Filetransfer plugin

2014-01-30 Thread Joachim Piketz (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-5946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joachim Piketz updated CB-5946:
---

Description: 
Feature request: automatically detect mime type in filetransfer plugin.
The following works for me in Android:
{code}
String mime = null;
try 
{
mime = 
this.cordova.getActivity().getContentResolver().getType(sourceUri);
if (mime == null)
{
MimeTypeMap mimemap = MimeTypeMap.getSingleton();
String uri = sourceUri.toString();
int index = uri.lastIndexOf('.');
if (index != -1)
mime = 
mimemap.getMimeTypeFromExtension(uri.substring(index+1).toLowerCase());
}
}
catch (Exception e)
{
Log.e(LOG_TAG, e.getMessage(), e);  
}

if (mime == null)
mime = application/octet-stream;

final String mimeType = mime; 

Log.d(LOG_TAG, mimeType:  + mimeType);
{code}

  was:
Feature request: automatically detect mime type in filetransfer plugin.
The following works for me in Android:
{code}
String mime = application/octet-stream;
try 
{
mime = 
cordova.getActivity().getContentResolver().getType(sourceUri);
}
catch (Exception e)
{
  Log.e(LOG_TAG, e.getMessage(), e);
}
final String mimeType = mime; 
Log.d(LOG_TAG, mimeType:  + mimeType);
{code}


 Automatic mime type in Filetransfer plugin
 --

 Key: CB-5946
 URL: https://issues.apache.org/jira/browse/CB-5946
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android, Plugin File Transfer
Affects Versions: 3.3.0
Reporter: Joachim Piketz

 Feature request: automatically detect mime type in filetransfer plugin.
 The following works for me in Android:
 {code}
 String mime = null;
 try 
 {
   mime = 
 this.cordova.getActivity().getContentResolver().getType(sourceUri);
   if (mime == null)
   {
   MimeTypeMap mimemap = MimeTypeMap.getSingleton();
   String uri = sourceUri.toString();
   int index = uri.lastIndexOf('.');
   if (index != -1)
   mime = 
 mimemap.getMimeTypeFromExtension(uri.substring(index+1).toLowerCase());
   }
 }
 catch (Exception e)
 {
   Log.e(LOG_TAG, e.getMessage(), e);  
 }
 
 if (mime == null)
   mime = application/octet-stream;
 
 final String mimeType = mime; 
   
 Log.d(LOG_TAG, mimeType:  + mimeType);
 {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)