Category Archives: Mobile Development

“Entitlements are not valid” iOS error

I’ve spent numerous hours trying to figure out how to solve this “Entitlements are not vlaid” error, when trying to sync my “Hello” Air iOS application. After checking out a few blog posts, I came across the answer.

Steps to check
1. Check the setting Development Provisioning Profile settings in the Developer portal. Make sure you have the right device chosen.

2. In Flash, make sure your appID matches the one in the Development Provision Profile in the Developer Portal. This was the reason why my application wouldn’t sync with iTunes. I used the wrong appID. I thought I was suppose to use the appID that was in bold, but it ended up being the text after the ‘.’.


Flash and HTML5, Coexist?

In my opinion, basing from the features in the new Master Suite CS5.5, I think Flash and HTML5 could coexist in the future. The new Master Suite seems to mainly focus on the ease of developing and designing mobile applications and tablets. In the future, when HTML5 becomes more widely supported, I think Flash would be mainly used for mobile applications and desktop applications. HTML5 would take over animation, video, and audio for the web.


Optimize Your Website for Mobile

Now that mobile phones have become a popular way to view media, I’ve decided I should try optimizing a website I made for my PHP and MYSQL course. Since this is only a test, I only optimized the homepage. I’ve only optimized it for smart phones that have a screen size of 480×800. I used my HD HTC2 as my testing device. If I was optimizing a for commercial use, I would have tested multiple devices and made multiple style sheets for different screen sizes.

The experiment went well. My goal was to make everything smaller, so the user wouldn’t have to scroll far to the right to view the rest of a image or text. I knew it would be difficult, and it was. I was having trouble getting images to be positioned the way I want. For my testing device anyway, even though the screen size width is 480, I had to set the widths to 680. I thought that was interesting.

The key to optimizing a website for mobile devices or any device for that matter, is to add a CSS stylesheet for that device. You can do this by adding link to your style on the page you want optimized. When you are adding that line of code that links the style sheet to the website page, you want to add, “media=’ ‘ “. Below is an example of how you would do this.

add stylesheet for mobile development, web design

If you use Dreamweaver, when you type, ‘media=,’ Dreamweaver gives you a list of devices that you can optimize for.

This is a screenshot of what the site looks like when you are viewing it on a desktop or laptop.

web design for mobile

I’ll post a screenshot later.

You can test it for yourself at:

http://tinyurl.com/6c9yx5n.

Below is a link to a website that I found that has a list of sources for testing your website on mobile devices.

http://sixrevisions.com/tools/10-excellent-tools-for-testing-your-site-on-mobile-devices/


Using Accelerometer for Flash Mobile Applications

This is tutorial on using the accelerometer for your Flash Mobile applications. This code was modified from an example that I came across from Adobe.

import flash.sensors.Accelerometer;
import flash.events.AccelerometerEvent;

var my_acc:Accelerometer = new Accelerometer();
my_acc.setRequestedUpdateInterval(50);

//my_txt.text = “Acc support is “+Accelerometer.isSupported;

my_acc.addEventListener(AccelerometerEvent.UPDATE, onAccUpdate);
function onAccUpdate(e:AccelerometerEvent):void{
ball.x -= (e.accelerationX*10);
ball.y += (e.accelerationY*10);

if (ball.x stage.stageWidth) {
ball.x = stage.stageWidth;
}

if (ball.y stage.stageHeight)
{ ball.y = stage.stageHeight;
}

}

This is a simple application that has a ball moving in the direction that the phone is tilting. You can test the application by downloading it below.

Download Android Air Application

I am not liable to damage it may cause to your phone. Use at your own risk.

I tried it on my phone, so their should be no problem.


Making Android Applications from Flash

As we all know, mobile applications are more popular than ever. I thought it would be cool to make my own Android application.

I’ve heard that Flash is capable of publishing Android applications, so I thought I try the accelerometer feature that smart phones have. After going to the publish menu, I didn’t see anything related to publishing to Android. After some searching, I figured out how to publish Android applications. Since I had trouble figuring out how to publish Android Applications from Flash, I thought other people would have problems with that too, which is why I’m making a post about it.

1. Download the Air Extension, Android Air SDK, and Android Manager.

http://labs.adobe.com/downloads/flashpro_extensionforair.html

http://www.adobe.com/products/air/sdk/

http://developer.android.com/index.html

2. Open Flash, and click new. Select Air 2.

3. Make your application. Depending on your application, you may or may not need to use the Air Android SDK. In the Android Manager, their is a emulator to test your application. If you have Adobe’s Device Central software, that works too for testing.

4. Go to file, and select Adobe Air 2.5 settings.

5. Click the Signature tab, and make your own certificate.

6. Then click the General tab. Fill out all the information for your application. Then click OK.

7. Then click File, and open the publish settings. In the player, click Air for Android.

8. After that, click publish. You should have a file with a .APK extension. That is your Android Air Application. Now you just have to post it to the Android market for everyone to play! The phone needs to have Adobe Air installed for it work!

If you are interested in doing Android Development with Flash, I would recommend the Blueprint Guide for Android Development with Flash book. That book has a lot of good information. I don’t receive any money for talking about it in my blog.


Follow

Get every new post delivered to your Inbox.