cancel
Showing results for 
Search instead for 
Did you mean: 

How to strictly lock screen in landscape mode by Agentry editor?

Former Member
0 Kudos

Hi

I am using SSM 3.0, Agentry client v6.0.38.1.

How can I lock Android device screen in strictly landscape mode for our customized Agentry app through Agentry editor?

If I lock device screen in landscape mode then it will affect other applications too.

So is there any way to just lock the screen for particular Agentry application?

Regards

Prit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Bill/Steve,

I branded the Android client successfully. Thanks for your help.

I found another method to lock the screen in landscape mode and used it.

I added

screen_orientation_phone=LANDSCAPE

screen_orientation_tablet=LANDSCAPE

in

AgentryAndroidClientSolution\assets\AgentryClient.properties

and did brandind process. It is locked in landscape mode now.

Thanks and regards

Prit

Answers (1)

Answers (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Prit,

There is no setting in the Agentry to force the application to only landscape or only portrait.

However, you can through the Android branding process force the orientation.

After you unzip the SMPAgentryClientFramework-Android-6.0.38.x.zip, in the AgentryAndroidClientSolution folder there is a file AndroidManifest.xml

You will need to edit this file to add the following directive to the activity tags (12) in the file where the android:name starts with ".ui."

android:screenOrientation="landscape"

Here is one example from my file.

<activity android:name=".ui.screensets.OverlayScreenSetActivity"

               android:configChanges="orientation|keyboardHidden"

               android:theme="@style/AgentryActivityDialog"

               android:screenOrientation="landscape"/>

After editing and saving the file simply build the branded client and when you launch the new client on the device it should automatically go into landscape mode no matter what orientation the device is in.

--Bill

Former Member
0 Kudos

Thanks Bill, I done the same thing in AndroidManifest.xml.

For branding, I read stuffs online and I got that I will need AgentryClientAndroidBranding sdk, Android SDK, Cygwin etc.

Isnt there an easy process to just reflect this simple change or any easy branding process?

Regards

Prit

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Easy is always relative. 

In terms of the branding process, once you have the tools setup (one time process) the branding is simply a matter of executing the script with the right arguments and everything just builds.

This is actually the first time I have come across this request for Android and I guess depending on the device it might be beneficial.

--Bill

Former Member
0 Kudos

Hi Bill,

Is Agentry android client 7 with open ui sdk feature officially released?

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Prit,

Unfortuately it is not yet reached General Availability.  The SAP Mobile Platform 3.0 (which includes Agentry 7 and the Open UI) is currently in Ramp Up which means select customers are using it to build production level applications and when the specific criteria are met the application will be generally released.

--Bill

Former Member
0 Kudos

Hi Bill,

I contacted SAP market place guy and he told me that 'SMPAgentryClientFramework-Android-6.0.38.x.zip' is the branding sdk for Android.

Is it the same or there is other different Android branding sdk?

regards

-Prit

Former Member
0 Kudos

Prit,

That is the branding file for Agentry 6.0 for SMP 3 that version will be in the SMP 3 SDK.

Stephen

Former Member
0 Kudos

Hi Bill,

I followed the steps mentioned by you earlier in this post.

Now I want to build the branded client.

How can I do it?

I have 'SMPAgentryClientFramework-Android-6.0.38.x.zip' and 'SMPAgentryClientFramework-Android-6.0.40.1.zip' file and Android client.

Please reply as soon as possible

Regards

Prit

Former Member
Former Member
0 Kudos

Thanks Steve

-Prit