I want to create a splash screen for sencha touch 2. my requirement is first i will show a view with 3 secs and then i have to move to another view. How can i do this???
if u r using phone gap framework then u can create a splash screen by writing two lines
super.loadUrl("file:///android_asset/www/index.html", 5000);
and
super.setIntegerProperty("splashscreen", R.drawable.splash);
in ur java file.
and if u r not using phone gap framework follow this
Related
I am New to IPhone Development.I am Creating a sample app to just know how to make Iphone apps. I came across Launch screen and Storyboard in the project Description, But was not able to understand what is the role of launch screen and Storyboard.Can anyone plz explain briefly about both. Can i Delete LaunchScreen.xib from my project.?
See Launch Screen is something in which you can use that as
Splash Screen or Start Screen for your application.
In StoryBoard only you can create all the front end functionality of your application so both StoryBorad and LaunchScreen are important don't delete it.
Launch Screen is always first screen of your app. Also according to apple, "You use a launch XIB or storyboard file to indicate that your app runs on iPhone 6 Plus or iPhone 6."
While in Storyboard you create rest of your applications screens.
For more info about Launch Screen refer this
And Storyboarding is here.
Hope, this helps.
am new to Sencha Touch 2 framework. am creating a project using Sencha Architect in that you have the option to select a device to display your views. Devices include ipad, iphone 4 and 5, Blackberry etc etc. Am creating a project as per view in iphone (320 * 480 ). My question is when i view the project in ipad simulator the components of my view screen do not adjust automatically. I want to run my project on iphone,ipad,blackberry or any android phone or tab. How can i achieve this independence so that my components on screen could adjust length, height etc etc properties at their own. Is there any way to do this by using Sencha Architect ?
Depending on your app architecture, you could probably use a fit layout. However, the best would be to implement profiles, take a look at:
http://docs.sencha.com/touch/2.2.1/#!/guide/profiles
I'm building an App for Android, iOS and Blackberry with Sencha Touch 2.0.1.
I have a Form-Panel with about 10 selectfields and some sextfields. If i ran the app on Android 2.3 or higher, the selectfields are shown as pickers. So far so good.
When the user starts filling out the form starting with textfields, he can go through the form using the next-button on the virtual keyboard. The problem is, that the selectfields are ignored by the next-button. The user has to tap on the selectfields.
I can't figure out how to get prev- and next-Buttons for the picker-elements. So that I can go through the form only with the next-Button instead of pressing "done" and tapping on the next Selectfield. It would be far more comfortable for the user.
So support of the sencha-forum isn't really helpful, see below:
http://www.sencha.com/forum/showthread.php?219636-Native-select-field-for-Android
http://www.sencha.com/forum/showthread.php?205581-Can-I-use-iOS-native-picker-instead-of-ST2-picker
According to this, there are prev- and next buttons available for a picker:
http://www.sencha.com/forum/showthread.php?205159-Ext.picker.Date-with-no-prev-and-next-buttons&p=803794
But I can't find them:-(
I think, there are two solutions to the problem:
Accessing the native Picker as proposed in the first link above. The question is how?
Implementing an own Picker-Element with an Prev- and Next-Button. This seems to be a huge efford for such a basic task.
I can't really believe, that this is such a big deal in a big framework like Sencha Touch.
Anyone facing the same problem and has a working solution?
My only idea for you would to put your picker on the page as normal, then add two buttons on the page - a Prev and Next buttons using Sencha. Then add onTop handlers for those buttons, that use the picker's .setActiveItem() method to set the picker to the next or previous item. Hopefully that will get you on your way.
http://docs.sencha.com/touch/2-0/#!/api/Ext.picker.Picker-method-setActiveItem
I'm using tabbar based application. I have 9 tabbar items. I'm calling the safari in my 6th tabbar item. When i close the safari and open the app again i want my app to open the 2nd tab in the application. Can any one help me out in this issue.
Thanks
Try programmatically set tab bar selected index to 2 applicationDidBecomeActive/applicationDidFinishLaunching(if your app does not run in background). You can search on google and you will easily find the answer.
I want to add clickable ad banned on launch screen of my app, how can I do that? Help me, please. Thank you
Please note that the default splash screen is just an image so if you want to add an ad to the launch screen you will need to make custom view that changes after some time. Here is a good tutorial for adding iAd integration to iPhone application.