It is entirely possibly to have resources and code vary based on
orientation, but the code you have here is fundamentally broken: landscape
!= tablet, portrait != phone.
This document talks about identifying tablets vs phones:
http://android-developers.blogspot.com/2011/07/new-tools-for-managing-s
I have to load different layouts for activities depending on the
device type, not only menus :(
Okay, I see there are alternative resources, but how can I handle this
on the level of activites?
if(orientation== landscape){
init tablet varables
}else{
phone variables
}
This is what I would like not
Please don't use multiple APKs for tablet support. Just implement some
xlarge layouts. You'll be glad you did. For the menu buttons, just
populate the Activity Bar with Options Menu items. Any buttons that don't
fit on screen can automatically go into the Options (or overflow) menu.
See this
oh, that's a really bad solution!
Read the android documentaion:
Note: You should generally use multiple APKs to support different
device configurations only when your APK is too large (greater than
50MB). Using a single APK to support different configurations is
always the best practice, because i
Hi boys!
Thx for the replies, I had find a solution, called "Multiple APK
Support"
http://developer.android.com/guide/market/publishing/multiple-apks.html
Thx:Karoly
On szept. 12, 16:41, jjoe64 wrote:
> this is possible with a few tricks.
>
> have a look at my blog post:
>
> http://www.jjoe64
this is possible with a few tricks.
have a look at my blog post:
http://www.jjoe64.com/2011/07/universal-app-for-smartphones-and.html
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@
Hi!
Yes, I hope I'm on the correct way, but I can't understand the logic
between the differenct gui xml-s and the activties.
So, if I'm implement the Main.java as an activity which is handle
three buttons on the screen, but when we using tablets we going to
have 5 button on the screen, how can I
7 matches
Mail list logo