I am currently expanding the use of the action bar in one of my applications by looking at and implementing the action mode ability via ActionBarSherlock 4.0.1 and the support Library .
I have achieved this by implementing the 'ActionMode.Callback' on a class as par the ActionBarSherlock example (ActionModes.java). As par the example, I am starting the action mode by using 'startActionMode(new ModeCallback());' and finishing it with 'actionMode.finish();'. The only difference I have is that I am doing all this in a SherlockFragment and not SherlockActivity.
Currently the functionality works just fine, however, as the following images will show, I am getting graphical issues with the ActionBar tabs when they are on a separate row with some android versions and not others.
Android 2.1 - Issue
Portrait - bad:
Landscape - ok
Android 2.2 - No Issue
Portrait - ok
Landscape - ok
Android 2.3.3 - Issue
Portrait - bad
Landscape - ok
Android 4.0 - No Issue
Portrait - ok
Landscape - ok
Apologies for the obvious image adjustment but I have had to cover up some IP. As can be seen from the screen shots of ones with issues and ones without, the tab row is getting 'whited out' when going into the action mode.
The screen shots for Android 2.2, 2.3.3 and 4.0 have been taken from the emulator with 2.1 being taken from my own phone. I can therefore rule out emulator issues. The problem also is present on a phone running Android 2.3.5.
I have also run the application in BlueStack for Windows. Incase you have not heard about it go to http://bluestacks.com/. In essence it allows the running of Android apps in a Windows Environment (Yep, a fancy emulator!). On this the issue is not present.
Any help will be appreciated as the fact it is happening on some versions and not others completely baffles me.
Related
today I tested some app I'm developing with Berlin Upd. 2 on a Sony Z4 tablet with Android 7.
If I press the right Android navigation button a bit longer the device splits the screen 2 two areas and thus shows two apps simultaneously. Seems to be a feature of Android 7+.
Unfortunately my app doesn't like this and is being terminated or terminates itself.
I didn't find any setting on this Sony device to disable the split screen button function.
I found some Android Manifest setting here:
How can I disable multiwindow mode for an Activity in Android N+
But every time I try to add this to the manifest template either for the entire app or for the activity (FMX apps only have one activity) and press F9 to test it on a device (in this case a Nexus 4 to ensure the setting doesn't
have negative effects on older versions) I get a "pa client exited with code 1" failure. When I remove the line from
the manifest template and press F9 everything works as it did before.
Any hints/advice?
I already searched for an app to disable the feature on the Z4, but we only found one for Galaxy S7 which had no effect on the Z4.
The solution is (and the Android documentation doesn't clearly state this requirement for somebody not using Google's preferred language/toolset) to download SDK 24 and Build Tools 24.x in SDK manager. In Delphi Tools/SDK one needs to point to the android-24 folder instead of the android-22 one and then adding this attribute to the node no longer leads to build problems in Delphi and the app cannot be crashed by somebody trying to enter split screen mode.
I'm using Android 4.4.2, and my need is to revert the screen in landscape mode.
On the previous versions of Android I was able to do this simply setting
ro.sf.hwrotation=180
in build.prop file, under /system.
Searching with google I've discovered that with Android 4.4.x this option is no more availalbe (in fact it doesn't work) .
Does anyone know how to solve this issue in another way?
Thx
I need to develop an app including feature to add widget on lock screen.
I tried that on 3 devices so far -
1) Samsung Galaxy s4 (KitKat 4.4) - It worked well, if the lock is swipe screen lock,
but doesn't work in case of pattern lock. Even in case of swipe lock, I am unable to add it on main lock screen, instead it appears on second or third screen, navigated from the main lock screen to its right.
2) Samsung Galaxy Grand (JB 4.2.2) - same behaviour as above.
3) LG ls970 (JB 4.1) - It doesn't seem to provide lock screen widget feature at all.
So, what must I do in case I need that to be worked in most of the devices.
What may be the issue by the way - Is it version specific issue or the brand specific or both.
Please let me know the solutions.
Thanks
Lock screen Widgets is not provided by "default" in "older" versions of Android.
Speaking of older - ALL DEVICES THAT ARE >= Android 4.2 SUPPORT lock screen widgets.
OLDER devices < Android 4.2 does NOT SUPPORT this feature. That's the problem
You can get more information on this topic here: Lock screen Widgets
And btw, make sure just to read more on the Google's provided information about Android. It supports search too!
Basics of Android by Google
I'm using dojo performTransition to switch between views and it is working fine all the devices except Samsung devices with Os version higher than 4.1.x
Transition is working but all the previous and next view are visible and I'm able to see all the screens that I navigate from on the screen by swapping the screen
Please look at the following dojo defect:
Transition issue on some Android 4.1.x devices:
https://bugs.dojotoolkit.org/ticket/17164
As well as this previous post that may help you based on Ken's and Idan's suggestions:
IBM Worklight 6.0 - Dojo application doesn't work on Samsung Galaxy S3
manually hiding and showing screens using css display 'block' and 'none' after transition is finished worked for me.
I just tested an app developed for Android 2.2 on the 3.2 emulator. The app supports only portrait mode, thus in default landscape mode of the emulator it's rotated by 90° (as on Android 2.2).
If however I rotate the emulator to portrait mode, the screen is shown completely reversed by 180°. That means, what should be on top is on the bottom of the screen. It's not only the app, but also the Android status bar but, if I exit the app, the issue disappears.
I've tested the app on several Phones and emulators, this never happened with Android 2.2 or 2.3 it just happens with 3.0, 3.1 and 3.2. Can't test on a real Tablet device yet. Thanks.
remove this from your activity in manifest file
android:screenOrientation="portrait"