This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to build ANDROID ICS for 320x240 resolution display

Hello

         We are developing android device and we are planning to implement 320x240 resolution screen. 

320x240 is belongs to ldpi as per android document. but in AOSP there is no drawable-lpdi folder in any packages so Setting, Email, and soft keypad not working fine even i have configure ro.sf.lcd_density=120 and 90 also.

Let me know what are the changes have to do in android AOSP to fit with 320x240. 

Now we are trying with Beaglebone LCD3 Rev.A2 with our AM335xevm_sk custom board but display is not working properly its not fit into screen 

I've posted the issue in http://e2e.ti.com/support/embedded/android/f/509/p/262876/920777.aspx#920777

Thanks in advance. 

  • I know of one post with similar issue

    http://e2e.ti.com/support/embedded/android/f/509/p/224012/792606.aspx#792606

    for this issue they decided not to enable the Keyguard, but at that time I found that some dimens.xml files are being setting some default resolutions for different densities, but most of the values used for Keyguard were not modified when using different resolution values.

    /mydroid/frameworks/base/core/res/res/values/dimens.xml

    /mydroid/frameworks/base/core/res/res/values-sw600dp/dimens.xml

    /mydroid/frameworks/base/core/res/res/values-land/dimens.xml

    In the same file you can find values used for Preferences Activity that should follow the same pattern not to change values for other resolutions. I didn't check if adding values in other resolutions folder would overwrite the default values, but it should since there are default values being overwritten.

    There are more values folder and dimens.xml files for other resolutions and densities, my text in the search was "keyguard" in all mydroid folder and the dimens.xml files that modify something for keyguard are the mentioned files, there are similar files for Preferences and like it is an application the folder to check could be /mydroid/packages/apps/Settings too, folder locations could change depending on what Android release you are using.

    The other files that could affect are the layout files but I think they use the values from dimens.xml,

    /mydroid/frameworks/base/core/res/res/layout/keyguard.xml
    /mydroid/frameworks/base/core/res/res/layout/keyguard_screen_lock.xml
    /mydroid/frameworks/base/core/res/res/layout/keyguard_screen_password_landscape.xml

    out of these I found some values that can be modified for rotation and window width, other post that could be related is how to show/hide keyboard but I'd need to search for it more time, I was not able to find it yet.

    http://e2e.ti.com/support/embedded/android/f/509/p/186548/742314.aspx#742314

    http://e2e.ti.com/support/embedded/android/f/509/p/230218/809596.aspx#809596

    Another value that could affect could be default font size or density respective value, I mean reducing the frame or text box size the font needs to be reduced, it is just a thought.

    That is what I can think about this issue, there should be some more modification and checks to do about it, but if you find a message that Android interface was changed and that you need to run a command to rebuild it, you need to check/validate the changes with Google about it and if the change is valid or not, running the command will make the changes and you will be able to use them.