03-08-2011 06:51 AM
Hi all,
I am new in Appworld application submission, plz help me...
How to bundle touch and non-touch build for same OS version(5.0) for appworld?
Thanks.
Adarsh
03-08-2011 09:34 AM
What forces you to have separate build for touch and non-touch? Cant you have single build?
03-08-2011 10:16 AM
We have make some differences while implementing MapView in my application. That's force us to use different build rather than messed up.
03-08-2011 10:34 AM
Is it a different API used in your MapView? Cant you check dynamically whether touch or non touch and set macro accordingly?
sample,
- startup, in main method set boolean variable for touch/non-touch
- use this boolean variable everywhere where you have difference in code
I am not sure whether we can create package touch/non-touch while uploading app into store. Will check tomorrow and let you know if I get any idea.
03-08-2011 05:55 PM
I agree if your app is laid out differently for touch and non-touch just move the relevant code into its own methods and call accordingly. ex:
class TouchNonTouch {
public TouchNonTouch(){
if( Touchscreen.isSupported() ) TouchLayout();
else NonTouchLayout();
}
private void TouchLayout(){
//relevant code
}
private void NonTouchLayout(){
//relevant code
}
//Class code
}
If it were me though, I would go back and try and make the layout screen dependent and not touch vs non-touch as there is already one phone that has touch screen and physical keyboard and there are several more planned.
03-08-2011 09:07 PM
There is absolutely no reason to have separate builds for touch and non-touch at the same OS level. I would suggest to reconsider the current design.
03-09-2011 06:43 PM
I agree that there should be no need to have separate Builds - you can do this dynamically.
That said, it is easy in App World to specify which builds will go to which devices, so you can specify that Bolds will get the non Touch build while Torches will get the Touch version. So I think you can do what you want by specifying a build associated with each device.
Of course it would be much easier to have one Build and just say 'all devices' and 'OS 5.0 and above'.