titanium iphone app dev - iphone

I have started working on titanium for iphone dev but i am bit confused about the file structure. The only file that i can see is app.js in Resources folder. Which is helpful in creating interface design.
For instance:
1- If i want to show the current time on my application main page, where i can initialize my code.
2- If i want to add some js functionality onload, how can i add that js file or call it on my application load.
I will be very thank full if any body give some helpfull links for learning as well.
Thanks,

Appcelerator recently added a "Getting Started" guide in the developer center. I highly recommend going through those articles. There's not much good documentation around Titanium but their getting better.
http://guides.appcelerator.com/en/getting_started.html
As for adding current time and listening to events... you can find some great examples in the KitchenSink application (https://github.com/appcelerator/KitchenSink) or Tweetanium (https://github.com/appcelerator/tweetanium). I usually keep these projects open on the side and search the code base for examples since the API docs on the website are a bit dated.
I hope that helps.

Related

Facebook API & Adobe Air/Flash Support

I'm currently struggling with a problem that has arose with using the Facebook Graph API and integrating it with Adobe Air.
I've tried everything. I've tried linkage with amfphp and I've tried classes. I've downloaded the Adobe/Facebook swc but I'm just wondering if anybody could point me in the right direction if I wanted to use the Flash CS6 timeline to link with the API (As most tutorials are using classes or .as files) and just using it in general in Flash CS6. It is an Air For iOS app so I want to use the Mobile api and I just want to be able to create it within the Flash timeline. Your support is greatly appreciated & any links that point to the right direction are greatly appreciated!
First of all you should know a bit how flash works (if you don't) and will be so easy to understand the differences between the code in timeline and the code structured in classes or .as files as you said. I left you a little resource i hope it helps.
https://www.youtube.com/watch?v=j3rlEMnBEHQ
With the flash API, you have to import the .swc library (in your case the GraphAPI_Mobile_1_8_1.swc) in your .fla document and after that you will be able to access to the functions of the library from your code doing the respective calls FB.login() etc etc.
Here there is a SO answer that explains you how to import the library:
How to properly use .SWC packages in Flash CS 4
I hope it helps you to solve your problems.
Greetings.

I have one html file, I will set the html file in iphone based application by using mgwt .. How i am set?

I have one html file, I will set the html file in iphone based application by using mgwt .. Please help me to set the html files in phone ...
Thanks in advance..
Based on what I was able to grasp from you question you have an HTML file and you want that file to act as an iPhone hybrid app using mGWT. If that's the case, then there is an huge abyss to cover before getting to that point. This is the list of general steps you would need to cover to get all the way there.
Get a grasp of GWT Basics
Configure a simple mGWT application with PhoneGap support.
Understanding the way GWT MVP works will also be very helpful but not required
Once you have that working its time to wrap the web app into a iOS cordova webview with PhoneGap
Please note that you will require an Apple Mac to acomplish the last step. You will also reequire to be registered as an Apple developer if you intent to get your resulting app into a real device. Also you will require a good understanding of Java application development and a good grasp on how Web applications work (HTML, JS and CSS at least).
You have a long way ahead of you.

Three20 TTLauncherView Tutorial?

I'm attempting to use TTLauncherView from the Facebook Three20 project in my app, but I'm not having much luck (I'm a bit of a newbie at this). Does anyone have any good tutorials at using it that I could read?
FYI basically I need to pull images that a user chooses from the iPhone camera album, and display them as icons that when pressed lead to another view.
Thanks.
you can start studying TTCatalog sample project that comes with three20 library.
Right now I'm working with a improved version of the three20 made by Rodrigo Mazzilli, you can find it here (http://github.com/rodmaz/three20).
rodmaz's version is a fork from the original project and it comes with some improvements, specially in TTLauncherView. It has a new class called TTLauncherViewController which is easier to use, take a look at his demo project TTCatalog.
http:// three20.info/ is a good collaborative site with some tutorials, but it doesn't have much information about TTLauncherView at this moment.
Finally, you should join three20's google group at http:// groups.google.com/group/three20 where you find hundreds of developers using this library.
best
http://iosguy.com/2010/10/19/tthree20-a-brief-ttlauncherview-tutorial/

How can I find tutorials for building an application that gets updates from an online website?

I want to build an application that gets updates from online websites like Twitter or Facebook. Currently, I haven't even got a clue on how to do this.
Also, in certain applications, like Doodle Jump, I have seen updates that pop up. Some other applications have a news section that gets updated often. How is it done? Any tutorial or working code will be very helpful.
There is a good tutorial I used to do this with ASP.NET.
I'm going to guess that you are interested in building an iPhone app. I don't know if you have any experience working with objective-c or the iPhone SDK, but here is a nice tutorial that touches on some of the concepts you will need.
http://icodeblog.com/2009/07/09/integrating-twitter-into-your-applications/

iPhone application that submits info to a website and gets results back

I am new to iPhone development, I wonder where could I find:
1) the best tutorials to start iPhone programming
2) info or code about how to submit info to a website (example search query to google) and get data back (show summary of query results on iphone)
Thanks
Well Stanford University has a whole EXTREMELY helpful iTunes U series on the iPhone development process. That should help you. Good luck and HAVE FUN.
As a new iPhone developer myself, I've found apple's sdk documentation to be the best for learning. The iPhoneCoreDataRecipes package has been my go to for figuring things out. It's got a little bit of everything in it.
I tried to do web tutorials - there are a ton out there, just search iPhone tutorial on the web or on SO - but I found most of them lacking.
There are a couple of classes that you can you use to retrieve a web request. NSURLConnection will be the best one for making POST requests, and if you're querying restful services initializing an NSString with a URL is the easiest method.