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.

Android unusable at 320x240 resolution



Hi,

We modified the kernel from the rowboat tree to support a 320x240 screen. As far as the Linux is concerned it seems to work fine. However the android won't resize in order to adapt to the smaller screen. Is that normal? With that screen I cannot even the the lockscreen completely so I cannot unlock the device. Do I have to install another Android theme?

Here's what I'm seeing:

Thanks

  • Hi,

    We also have observed the same with the Beaglebone with LCD3 cape.

    Only the Lock screen gets cropped. But the other screen from Android get resized fit to the small display screen.

    So, to solve this, it might be required to tweak the LOCK screen. I mean you may need to modify the resourses used for the Lock screen layout, or create your modified Lock screen layout.

    Also, you can try with a smaller dpi, which will cause the fonts and icons to be smaller than the default.

    Also, you can disable the LOCK screen(if your end application allows device without LOCK screen).

    Regards,

    Umakanta Patro

  • Hi,

    Disabling the lock screen would work fine in our application but as of now we tried modifying the com.android.providers.settings/databases/settings.db database but it didn't work. The only thing that worked for us is sending a keyevent 82. A patch might be to send this keyevent as soon as android is booted.

    Do you know a way of successfully disabling the lock screen?

    Thanks

  • Next is some information about disabling lock screen, it could depend in what Android release are you working, for ICS.

    http://processors.wiki.ti.com/index.php/Android_Developer_FAQs#Q:_How_to_auto_disable_key_guard.2Fscreen_lock_after_android_boot.3F_How_to_see_home_screen_instead_of_screen_lock_after_android_boot_.3F

    http://omapedia.org/wiki/Android_How-tos#Disabling_screen_lock_forever

    http://omapedia.org/wiki/Android_How-tos#Booting_with_Unlocked_Screen

    http://omapedia.org/wiki/Android_How-tos#Generating_Keyevents_Through_adb_shell

    if you are doing it from inside an application, for example when playing a video to keep the device awake, check next link for Wake Lock Permission.

    http://developer.android.com/guide/topics/media/mediaplayer.html#manifest

    some post about this are:

    http://e2e.ti.com/support/omap/f/849/p/214330/756658.aspx#756658

    http://e2e.ti.com/support/omap/f/849/p/214330/756658.aspx#756658

    After the Keyguard appears it has a 30 seconds timeout before starting to discard internal keyboard or touch screen events, after this period keyinput event is not unlocking the screen.

  • Hi,
    Another way to disable the LOCK screen, but keep the Power Management features(Suspend/Resume) enabled is:
    - Create a Overlay file: "overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml" in your device folder

    -Add the following lines to the file:

    <!-- Disable Lock Screen -->
    <bool name="def_lockscreen_disabled">true</bool>

    This will disable the Lock screen for your device. And also it is build specific, as this feature will be applicable only to the device for which you are building.

    Regards,

    Umakanta Patro