navigation flow of kitchensink example in Sencha touch - sencha-touch-2

i'm new to sencha touch.i deployed the kitchensink example application successfully.i want to know the navigation flow(from which file to which file) of kitchensink example .can anyone help me? and i didn't found the launch() in app.js.
thanks in advance.

The Kitchen Sink is using profiles. It means that the app will be displayed differently depending on what kind of device it is displayed on.
You'll find a launch function in app/profile/Base.js which will be called anyway and then you'll also find two other launch functions in both app/profile/Phone.js and app/profile/Tablet.js. The former will be called if you launch the app from a phone and the latter from a tablet.
From there it should be pretty straightforward.
Hope this helps

Related

Changing Taskbar menu icon in nodewebkit app dynamically

I am working on a nodewebkit app. Looking for a functionality where in I can change task-bar icon of app to notify users, similar to what Skype does when a new message is received by user.
Is there any way it can be done in Nodewebkit?
Initially I tried changing window.icon in package.json file, but then I came to know that it is used only once, i.e. on app load. So that did not work.
Anything else I can try?
Thanks in advance
Window.requestAttention(Boolean attention) is what I was looking for.
It worked for me.
Thanks to Dhiraj, It gave me an additional feature for icon.

App tutorial or guide in Sencha Touch

I've been trying to find some info about this but the combination of words just doesn't help as it just so I figured I'd might as well ask it in here.
I'm developing a sencha touch app and I want to show the user how to use my app. But those messages should obviously only be displayed on the app's first run. Does any of you have any idea of how to achieve this in sencha touch?
Haven't tried anything as I have no idea where to start and as I mentioned earlier looking this up on google just returns tutorials about Sencha Touch.
you can set a flag and save it to the localstorage.
On every app launch you can check for that flag and only create the guide view if needed

How to know about app launched and details jailbreak iOS 7

I am making a tweak for iOS 7, in which I want to know about app launch event, and the details of app being launched (name and identifier). So far the only useful framework I have found is SpringBoardServices.framework. The header files which may be/are useful to track app launch event include:
SBAppLaunchUtilities.h
SBLaunchAppListener.h
If I am on right track, can anyone provide me information about their methods usage? There is no relevant information or guide present on iphonedevwiki.
Moreover, How can I get information about app launched? I have studied Andy ibanez's tutorial. It hooks SBApplicationIcon class, which I guess has been removed from iOS 7 frameworks because I can't find it in dumped frameworks. So what is alternate header? Is it SBSCardItem.h and SBSCardItemsController ?
Looking forward for help. Thanks.
You need to look into SpringBoard.app instead of SpringBoardServices.framework. SpringBoard app comes "alone" because like it's extension implies, it's an app, and not a framework that can be found in the entire Private Frameworks.
You can get a lot of info from the SBApplicationIcon class in SpringBoard, such as the app display name and things like that. Check the headers for more info.

how to navigate to settings in android emulator using robotium?

I am a newbie for Robotium and till then I managed to learn a lot by directly writing test cases for public websites and sorted out several issues from answers in stackoverflow. now, I seemed to hit the wall at this (probably)trivial problem.
I would like to navigate to 'Settings' icon which is inside 'Apps' menu of the android emulator using some sort of 'robotium-solo' method.
This is my failed attempt:
solo.sendKey(KeyEvent.KEYCODE_HOME);
//solo.clickOnImageButton(2); // no success!
//solo.clickOnActionBarItem(2); // no success!
solo.clickOnText("Settings");
solo.clickOnText("Music");
I checked for any KEYCODE_var for home screen 'app' icon but couldn't find one.
There is no useful log message in DDMS to figure out the starting activity when clicked/tapped on that button.s
Please guide me whether my approach is any good and help me with an answer. Thanks.
you can check with getCurrentViews() and have the list of views displayed before clicking the menu button and after clicking the menu button.By comparing them you can get the view of the new views displayed (i.e. settings button).
After getting the view,you can go with solo.clickOnView(ViewNameObtained);
This will solve your problem for sure.
As far as I know, navigating to settings is not possible with robotium. Even if you would be able to go there you cannot perform any other action as Settings are not port of your application. Android Instrumentation allows performing actions only within one package and robotium is only wrapper for that, so it's not able to click outside your application as well.
You can use UI Automator for that.

testing sencha application

I want to develop a sencha application who use a picture and make some modification on it. I want the user to be able to select the photo via phone camera or from photos that he already has in his phone.
I've searched all over the sencha documentation and found a solution to do this first step but I can't figure up how to test it.
I mean how can I test my application on the mobile?
I will be very grateful if someone will help me how to test a simple hello world sencha application on the mobile, because I'm really stuck at this step.
In order to test it on an actual device, you'll have to use PhoneGap (now called Apache Cordova). I'm not sure which device you have, but there's a list of tutorials to get you started here:
http://docs.phonegap.com/en/2.0.0/guide_getting-started_index.md.html
Then all you have to do is move any of the files Sencha has generated into the assets folder.
If you're looking for a tutorial on how to get started with Sencha, here's a good one:
http://www.sencha.com/learn/hello-world/