android.view.InflateException ONLY in android 1.5

by Quinn Rohlf » Fri, 16 Jul 2010 09:01:56 GMT


Sponsored Links
  figured it out - I hadn't realized that the 1.5 platform doesn't support
localized resources. Duplicated all of the referenced resources in
/drawable-mdpi into /drawable and it worked like a charm.

On Thu, Jul 15, 2010 at 3:28 PM, QR <qro...@gmail.com> wrote:


--



Other Threads

1. There to put --core-library in 1.5?

Hello,

I want to pass the build process the --core-libary option. But in ADT
I don't see such an option. So in Version 1.1 --core-library could be
inserted into the build.xml and build was successfull when using ant.
It looked like this:

-------
    <target name="dex" depends="compile">
        <echo>Converting compiled files and external libraries into $
{outdir}/${dex-file}...</echo>
        <apply executable="${dx}" failonerror="true" parallel="true">
            <arg value="--dex" />
            <arg value="--core-library" />
            <arg value="--output=${intermediate-dex-ospath}" />
            <arg path="${outdir-classes-ospath}" />
            <fileset dir="${external-libs}" includes="*.jar"/>
        </apply>
    </target>
-------

In 1.5 build.xml as well as the hole build process was heavitly
altered. Now even the dx.jar is gone. The build.xml works differently,
and I dont see where to put --core-library. There is also no
documentation for where to put it.

Can anyone give me a hind?
--~--~---------~--~----~------------~-------~--~----~

2. ,myedittext.getText().toString() is giving null pointer exception

/**      can some one tell me why it is not working .here is my code
*/
package com.arka.CallLogDemo;

import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
//import android.text.Editable;
//import android.text.InputFilter;
import android.text.Editable;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
//import android.widget.EditText;

public class TestSearch extends Activity {
        @Override
        public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        setContentView(R.layout.main);
        //callDialog("in search");
        setContentView(R.layout.search);
        final EditText myedittext=(EditText)findViewById(R.layout.search);
        final Button button=(Button) findViewById(R.id.callButton);
        button.setOnClickListener(new View.OnClickListener() {
    public void onClick(View v ) {
            // Perform action on click
        //int length=0;
        Intent search=new Intent();
   //   callDialog("just");


        search.putExtra("NUMBER_ENTERED",myedittext.getText().toString
());
        setResult(Activity.RESULT_OK,search);
        finish();

        }
    });

        }//end of onCreate()



        //customized alertDialog
        public  void callDialog(CharSequence message )
    {
        final AlertDialog.Builder a=new AlertDialog.Builder(this);
        a.setMessage(message);
        a.setTitle("TestSearch");
        //a.wait(2000);
        a.setPositiveButton("close", new
DialogInterface.OnClickListener(){
                public void onClick(DialogInterface dialog,int whichButton)
                {

                        //a.setCancelable(true);

                }
        });


        a.show();
    }
















}

--~--~---------~--~----~------------~-------~--~----~

3. Upgrading my G1

4. how to create apk file in android ,like in j2me we create jar and jad files

5. how to create apk file in android ,like in j2me we create jar and jad files

6. List items not clickable when using ListAdapter, but clickable with SimpleAdapter

7. Camera Application not working on G1 device