Skip to main content

Posts

Showing posts with the label mobile

Exclusive CSS for iPhone/Android

I'm making a mobile-friendly stylesheet for a page of mine. Is there a simple way to make it show that stylesheet to iPhone/Android users? Or do I have to pull the user-agents and figure it out that way - and how do I do that?

How to check whether the user has a bookmark (iPhone)

For mobile web development: I am making a website which asks the user (on an iPhone or iPod Touch) to save the page as a bookmark on the homescreen. I do not want to show this message when the user already has a bookmark, so how can I check that (preferably using JavaScript, I don't know any other way). Any tips are welcome.

In javascript "If mobile phone"

I was thinking of doing something with the jQuery.browser but this only returns which browser you're in and if its a webkit etc etc. So i basically want to turn off certain js files from even loading if you're on a mobile device? I assume you can do it but how?

Designing animation for android application

What is the best way to design and embed an animation into an android app. (I'm not talking about transitions and activities in/out animations.) I can think of 2 ways of doing it: designing the animation with flash or something similar, export png-sequence with transparent bgs and creating an animation from the images in an xml file (How do I write this kind of xml?) creating a grid of images with all the frames of the animation that I've created and save it into one image. than using something like background-position in css in order to move the visible area of the image on each frame enter (By Java code, or by xml) which of this is better/most common? and how do I implement the solution (if there is a better solution - that would be great). and what programs do you usually use for this kind of task (the goal is to achieve something that works like the frog in cut the rope or the birds in angry birds for example) thanks!

Best practice discussion: When to favor a webview over a native UI in titanium?

I'm currently working on a cross-platform mobile app and have gone through the process of creating the UI of my application using the given Titanium api. Compared to when you are building a mobile web application this is a time consuming task, because you don't have the possibility to work on the rendered UI like you can on a rendered webpage using firebug. Especially form creation is bothersome, so I decided to build my forms using html and render them in a Webview, which worked out pretty sweet for several reasons: WebViews are automatically scrollable, so the soft keyboard won't cover the input fields in your HTML form You can control which keyboard type is displayed with a WebView form by setting attributes on the <input> tag. You can use JavaScript libraries to add form validation, field highlighting, and so forth to an HTML form. Although this works like a charm and the titanium documentation encoura

# character in url of jquery mobile page

Why is it that when I visit my jQuery mobile page, lets say page.php it shows up fine, but when I visit the same page page.php#someDetailsHere it just shows a white page? And how can I fix this? I use a third party app that redirects to my webpage with the # added to the url..