On Fri, Sep 9, 2011 at 12:32 PM, MarkG123 <[email protected]> wrote: > OK, so how would I achieve this as a single APK?
That would depend on what "this" is. > Should I check the > OS version API 11+ for tablets, < 11 for smartphones? As Ms. Hackborn pointed out, this is invalid. You first need to decide what you mean when you say "tablets" and "smartphones". Is it screen size? Is it telephony capability? Weight in grams? Availability of certain hardware buttons? Availability of "honeycomb controls"? Something else? IOW, there is nothing magic about the nouns "smartphones" and "tablets". Different devices have different characteristics. You need to determine which *characteristics* you are varying your app upon. > Should I check screen density on the fly and open the correct > activity? That's certainly possible, though I have no idea what you think you are accomplishing with it. Density is orthogonal to anything you might construe as "tablets" vs. "smartphones". Any Android device could have any available density. > Will I have problems using honeycomb controls in a smartphone OS? Not if you set up your resources properly. Use the -v11 resource set suffix for places where you are implying the existence of "honeycomb controls". > I have quite a basic app, but the activities and Holo theming stuff is > different in the tablet version, need some guidance on how to get my > app to the biggest potential audience... Put one set of themes in res/values/ and another in res/values-v11/ with the same names. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

