I'm new to Chemistry and in my textbook, it describes the Law of Definite Proportions and then goes on to describe the Law of Multiple Proportions.

The example they give is carbon monoxide and carbon dioxide, where the mass ratio of oxygen to carbon in carbon dioxide is 2.67:1 and the mass ratio of oxygen to carbon in carbon monoxide is 1.33:1.

I understand the above example, and I understand that when you compare them in the following way:

2.67g (proportion of oxygen to 1g carbon in carbon dioxide)/ 1.33g (proportion of oxygen to 1g carbon in carbon monoxide) = 2.00, a small whole number.

$\frac{Mass~oxygen~to~1g~carbon~in~carbon~dioxide}{Mass~oxygen~to~1g~carbon~in~carbon~monoxide}$ = $\frac{2.67g}{1.33g}$ = 2.00

My textbook doesn't describe what a small whole number is, or what it means... just that, in this example, 2.00 is a small whole number.

What is the significance of the 2.00?

I understand that carbon dioxide has double the oxygen. Is this where the 2.00 plays a role?


Question: How to get the path of android installed application
Answer: I used the Following Code to do this

private void openFile(File f)

    {

        // Create an Intent

        Intent intent = new Intent();
        intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        intent.setAction(android.content.Intent.ACTION_VIEW);

        // Category where the App should be searched


        // String category = new String("android.intent.category.DEFAULT");

        // Setting up the data and the type for the intent

        String type = getMIMEType(f);
        /*Uri startDir = Uri.fromFile(f);
        intent.setAction(Intent.ACTION_PICK);
        intent.setDataAndType(startDir, "vnd.android.cursor.dir/*");*/
        intent.setDataAndType(Uri.fromFile(f), type);

        // will start the activtiy found by android or show a dialog to select one

        startActivity(intent);//


        /**intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK+Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
        String theMIMEcategory = getMIMEcategory(type);
        intent.setDataAndType(Uri.fromFile(f),theMIMEcategory);
        try {
         startActivity(Intent.createChooser(intent,"Choose Applicaton"));
        } catch (Exception e) {
         //show error
        }
         */
    }

    /**

     * Returns the MIME type for the given file.
     *
     * @param f the file for which you want to determine the MIME type
     * @return the detected MIME type
     */
    private String getMIMEType(File f)
    {

        String end = f.getName().substring(f.getName().lastIndexOf(".")+1, f.getName().length()).toLowerCase();

        String type = "";

        if(end.equals("mp3") || end.equals("aac") || end.equals("aac") || end.equals("amr") || end.equals("mpeg") || end.equals("mp4")) type = "audio/*";

        else if(end.equals("jpg") || end.equals("gif") || end.equals("png") || end.equals("jpeg")) type = "image/*";

        else if(end.equals("pdf")) type = "application/pdf";

        else if(end.equals("xls")) type = "application/vnd.ms-excel";

        else if(end.equals("doc")) type = "application/msword";

        else if(end.equals("zip")) type="application/zip";
        else {type="*/*" ;}



        //type += "/*";

        return type;

    }

    public static String getMIMEcategory(String aMIMEtype) {
        if (aMIMEtype!=null) {
            aMIMEtype = aMIMEtype.substring(0,aMIMEtype.lastIndexOf("/",aMIMEtype.length()-1))+"/*";
        } else {
            aMIMEtype = "*/*";
        }
        return aMIMEtype;
    }'