Android Question Different versions of android

AHilberink

Active Member
Licensed User
Longtime User
Hi,

Till now I was working to develop for version 2.3 of Android. I now have to develop for > version 4.x with also a different screenformat.

So far, I have a fixed version/screenformat I did choose for per project.

Is there a way to develop for more versions and screenformats at once(dynamically)?
Are there examples?

Thanks,
André
 

eps

Expert
Licensed User
Longtime User
Upvote 0

AHilberink

Active Member
Licensed User
Longtime User
Versions, I usually target from 1.6 upwards, so all versions after that will execute the code.

Screen Formats.. You should see here : http://www.b4x.com/android/forum/threads/supporting-multiple-screens-tips-and-best-practices.17647/

I have started to generate screen formats programmatically, then all formats are automatically covered.


Thanks a lot. I will try this.

Is there a workout for the menubutton as well? Now I don't have a menubutton, because on the Phone there is one. On the new Phone 4.x I need a software 3 dot menubutton. So this have to be automatically also.

Best regards,
André
 
Upvote 0

eps

Expert
Licensed User
Longtime User
You need to look at the min. target version in your manifest. This will dictate if you have one or not.
 
Upvote 0

AHilberink

Active Member
Licensed User
Longtime User
You need to look at the min. target version in your manifest. This will dictate if you have one or not.

My min. target is 4.

Can you tell me how I should use it? I cann't get it work. No 3 dot menu button on my AVD.
 
Upvote 0

eps

Expert
Licensed User
Longtime User
What's your targetsdk set to?

See here : http://www.b4x.com/android/forum/threads/3-dot-menu-button.28786/#post-167075

In my Apps I don't want to see it, so I get rid of it by using the following :

<uses-sdk android:minSdkVersion="4"
android:targetSdkVersion="14" />

Actually I think if you set targetSdkVersion to 14 or more it should display, how you want. Follow the link above.
 
Upvote 0

AHilberink

Active Member
Licensed User
Longtime User
I think I did everything according to the post. My targetSdkVersion="15", but no menu-button.

Thanks for helping, but I think I have to build an actionbar myself.
André
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Did you set the Activity Atributes correctly?

B4X:
#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: true
#End Region

With

B4X:
#IncludeTitle: false

you get no Three-Point-Menu in the Title.
 
Upvote 0

AHilberink

Active Member
Licensed User
Longtime User
Did you set the Activity Atributes correctly?

B4X:
#Region  Activity Attributes
    #FullScreen: False
    #IncludeTitle: true
#End Region

With

B4X:
#IncludeTitle: false

you get no Three-Point-Menu in the Title.

Thanks Manfred.
I do have IncludeTitle: True, but I also have FullScreen: True. I will change this to False and see what happened.

Best regards,
André
 
Upvote 0
Top