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 <> wrote:


Other Threads

1. How to set a dynamic View size

Ok, I'm working on a custom view and having trouble with setting its size so 
it scales properly across devices.

In particular i want its fixed height to be relative to its width (of 

Something like this sudo code:

   View myview = new View(..);

myview.setLayoutParams(new LayoutParams(

  LayoutParams.MATCH_PARENT, (MATCH_PARENT / 4) * 3));

The goal would be to make the component height be 3/4's of the width.

This doesn't have to be done from outside. i.e. it could be done from inside 
the view, but I'm unsure what I need to override inside my 
view implementation to set the height. Set it too early and i may not yet 
have my width, set it to late and I may just end up on a resize race loop :)

So, my question is, what is the proper way to make a View dynamically sized 
at runtime in at least one of the dimensions?

- Brill Pappin


2. Query related to CTS Android


I am trying to run the CTS test on the Android emulator.

But I am facing the following issues:

        -      I ran the individual CTS test plans on emulator as below

                *cts_host** **> cts_host > startcts.bat*

*C:\CTS\android-cts-2.2_r4-x86\android-cts\tools>Echo Off*

*Android CTS version 2.2_r4*

*      Device(emulator-5554) connected*

      *cts_host** **> cts_host > start lan java*

-          But in the results I see that the maximum of the test plans have
been skipped and are shown as ot Executedas follows:

 failed="0"* notExecuted="13967"* omitted="0" pass="1426" timeout="14"

-          I  analyzed the logs and test results.xml files for the test
cases which were otExecutedin the following approach:

o   I tried to execute the *single test package* from the *Java test plan* by
executing the following command:

*cts_host** **>** **cts_host** **> start --plan java --package** **
android.core.tests.dom** *

o   But the following error is shown:

The specific test package does not exist: android.core.tests.dom

-          But when I execute the command *ls p* to see the list of
available packages, I can see the package in the list.

Please let us know if we are missing something at our end.

As of now, in order to run all the packages from the test plan , I am
following the approach as follows:

- I delete the url entry of the package(that did not execute in the complete
run) from the plan and then execute the command : * start lan java .*

*- *In this way I will have maximum of the test cases executed - either fail
or pass.

*My Query is:*

Why are the maximum of the test plans(packages and testcases) are skipped
and not executed while running CTS?

For your reference I would like to tell you that

-          I am using the Windows XP machine

-          I have modified the startcts.bat file(modified .bat is attached
with this mail)

Could you please help us me this.

Your early reply will be highly appreciated.

Thanks in Advance,

Kamaljeet Singh


Echo Off

SET SDK_ROOT=C:\android-sdk-windows
SET CTS_ROOT=C:\android-cts-2.2_r4-x86\android-cts\

if not exist %SDK_ROOT% GOTO showError
if not exist %CTS_ROOT% GOTO showError


java -Xmx512M -cp 
%SDK_ROOT%\tools\lib\ddmlib.jar;%CTS_ROOT%\tools\cts.jar;%CTS_ROOT%\tools\junit.jar;%CTS_ROOT%\tools\hosttestlib.jar; %CTS_ROOT%\repository\host_config.xml


Echo "Either SDK_ROOT/CTS_ROOT not configued properly;
Echo off

Echo Off

3. 2.3 ACD - Thermometer not allowed

4. <WTB> samsung galaxy tab hardcase

5. [WTS] Speed Flexi 1x di EVO

6. Fwd: compile galaxy s rom problem and question

7. [Wta] Dell Venue