web services security & e-business

by vidya » Sat, 20 Sep 2008 01:26:45 GMT

Sponsored Links
 web services security & e-business



Other Threads

1. How to get Mimetype from extentions? (.txt/.vcf)


I am trying to get Mimetype from extention for .txt file, using below
                    MimeTypeMap map = MimeTypeMap.getSingleton();
                    type = map.getMimeTypeFromExtension(extension);

But the returned type is always "null".

Looking into MimeTypeMap.java code,  in function loadEntry(), I found
below code&msg.
private void loadEntry(String mimeType, String extension,
            boolean textType) {
        // here, we don't want to map extensions to text MIME types;
        // otherwise, we will start replacing generic text/plain and
        // text/html with text MIME types that our platform does not
        // understand.
        if (!textType) {
            mExtensionToMimeTypeMap.put(extension, mimeType);

Per above codes, all text series extentions (like txt, rtf, text,
vcf...)  can not get Mimetype using the getMimeTypeFromExtension()

Is there any other way to get Mimetype for *.txt or *.vcf file?


2. ALSA buffer size


I have a bug on my platform and i need to set the buffer...

Android would like a buffer of 16384 and i have one of 2048... So i
have to hack a test and the sound is really bad...

someone know where is the buffersize set?

unsubscribe: android-porting+unsubscr...@googlegroups.com

3. Saving a preference isn't working

4. What copybit does and where image conversion from YUV to RGB is implemented?

5. WebView Dialog Activity

6. JNI check failures when trying to use a configured SOCKS Proxy object...

7. Publishing Paid Apps on Android Market Can Cost You Money