Simple 6 important recepies for Malaysian. Malay food that will make your mother in law love you forever.


Simple and useful apps, just in case you want a quick malay recepies using your android phone as a guide.

Download from Google Store.

Good luck. Thanks


Okay, this is time zones string variable in java. Might be useful for you.

private String[] zone_names = { "(GMT-12:00) Eniwetok, Kwajalein",
"(GMT-11:00) Midway Island, Samoa", "(GMT-10:00) Hawaii",
"(GMT-9:00) Alaska", "(GMT-8:00) Pacific Time (US Canada)",
"(GMT-7:00) Mountain Time (US Canada)",
"(GMT-6:00) Central Time (US Canada), Mexico City",
"(GMT-5:00) Eastern Time (US Canada), Bogota, Lima",
"(GMT-4:00) Atlantic Time (Canada), Caracas, La Paz",
"(GMT-3:30) Newfoundland",
"(GMT-3:00) Brazil, Buenos Aires, Georgetown",
"(GMT-2:00) Mid-Atlantic",
"(GMT-1:00 hour) Azores, Cape Verde Islands",
"(GMT) Western Europe Time, London, Lisbon, Casablanca",
"(GMT+1:00 hour) Brussels, Copenhagen, Madrid, Paris",
"(GMT+2:00) Kaliningrad, South Africa",
"(GMT+3:00) Baghdad, Riyadh, Moscow, St. Petersburg",
"(GMT+3:30) Tehran", "(GMT+4:00) Abu Dhabi, Muscat, Baku, Tbilisi",
"(GMT+4:30) Kabul",
"(GMT+5:00) Ekaterinburg, Islamabad, Karachi, Tashkent",
"(GMT+5:30) Bombay, Calcutta, Madras, New Delhi",
"(GMT+5:45) Kathmandu", "(GMT+6:00) Almaty, Dhaka, Colombo",
"(GMT+7:00) Bangkok, Hanoi, Jakarta",
"(GMT+8:00) Beijing, Perth, Singapore, Hong Kong",
"(GMT+9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk",
"(GMT+9:30) Adelaide, Darwin",
"(GMT+10:00) Eastern Australia, Guam, Vladivostok",
"(GMT+11:00) Magadan, Solomon Islands, New Caledonia",
"(GMT+12:00) Auckland, Wellington, Fiji, Kamchatka" };


HTML select Box format.

<select name="DropDownTimezone" id="DropDownTimezone">
<option value="-12.0">(GMT -12:00) Eniwetok, Kwajalein</option>
<option value="-11.0">(GMT -11:00) Midway Island, Samoa</option>
<option value="-10.0">(GMT -10:00) Hawaii</option>
<option value="-9.0">(GMT -9:00) Alaska</option>
<option value="-8.0">(GMT -8:00) Pacific Time (US &amp; Canada)</option>
<option value="-7.0">(GMT -7:00) Mountain Time (US &amp; Canada)</option>
<option value="-6.0">(GMT -6:00) Central Time (US &amp; Canada), Mexico City</option>
<option value="-5.0">(GMT -5:00) Eastern Time (US &amp; Canada), Bogota, Lima</option>
<option value="-4.0">(GMT -4:00) Atlantic Time (Canada), Caracas, La Paz</option>
<option value="-3.5">(GMT -3:30) Newfoundland</option>
<option value="-3.0">(GMT -3:00) Brazil, Buenos Aires, Georgetown</option>
<option value="-2.0">(GMT -2:00) Mid-Atlantic</option>
<option value="-1.0">(GMT -1:00 hour) Azores, Cape Verde Islands</option>
<option value="0.0">(GMT) Western Europe Time, London, Lisbon, Casablanca</option>
<option value="1.0">(GMT +1:00 hour) Brussels, Copenhagen, Madrid, Paris</option>
<option value="2.0">(GMT +2:00) Kaliningrad, South Africa</option>
<option value="3.0">(GMT +3:00) Baghdad, Riyadh, Moscow, St. Petersburg</option>
<option value="3.5">(GMT +3:30) Tehran</option>
<option value="4.0">(GMT +4:00) Abu Dhabi, Muscat, Baku, Tbilisi</option>
<option value="4.5">(GMT +4:30) Kabul</option>
<option value="5.0">(GMT +5:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
<option value="5.5">(GMT +5:30) Bombay, Calcutta, Madras, New Delhi</option>
<option value="5.75">(GMT +5:45) Kathmandu</option>
<option value="6.0">(GMT +6:00) Almaty, Dhaka, Colombo</option>
<option value="7.0">(GMT +7:00) Bangkok, Hanoi, Jakarta</option>
<option value="8.0">(GMT +8:00) Beijing, Perth, Singapore, Hong Kong</option>
<option value="9.0">(GMT +9:00) Tokyo, Seoul, Osaka, Sapporo, Yakutsk</option>
<option value="9.5">(GMT +9:30) Adelaide, Darwin</option>
<option value="10.0">(GMT +10:00) Eastern Australia, Guam, Vladivostok</option>
<option value="11.0">(GMT +11:00) Magadan, Solomon Islands, New Caledonia</option>
<option value="12.0">(GMT +12:00) Auckland, Wellington, Fiji, Kamchatka</option>

Calculate Islamic Calendar using handy android application. Convert from Hijri to Gregorian date.


You can find the application at our android market.Remember Islamic Date and year on your phone.




Calculate Islamic Calendar using javascript. Islamic countries are still using, together with the gregorian calendar a strictly lunar calendar; years are numbered starting with the Egira (622 July 16: Mohammed leaves Mecca for Medina). This perpetual calendar works for every date after the Egira.

The Koran states that new month should begin immediately after New Moon, or better at the first sighting of the growing moon. This exact moment is almost impossible to predict; for simplicity islamic perpetual calendar use the following rule, which works rather good: the year has twelve month alternatively of 30 and 29 days; the common year has then 354 days; since the lunar month is 44m longer than 29,5 days a 30th day is added to the last month. This applies on 11 years out of 30 according to the sequence: 2,5,7,10,13,16,18,21,24,26,29. These years have so 355 years.

With such a rule 30 years have exactly 10631 days, while 360 moons make 10631.0125 days; there is still a little mistake (1/80 of a day) but you need 2400 years to have a whole day error.

[code lang="js"]

function gmod(n,m){
return ((n%m)+m)%m;

function kuwaiticalendar(adjust){
var today = new Date();
if(adjust) {
adjustmili = 1000*60*60*24*adjust;
todaymili = today.getTime()+adjustmili;
today = new Date(todaymili);
day = today.getDate();
month = today.getMonth();
year = today.getFullYear();
m = month+1;
y = year;
if(m<3) {
y -= 1;
m += 12;

a = Math.floor(y/100.);
b = 2-a+Math.floor(a/4.);
if(y<1583) b = 0;
if(y==1582) {
if(m>10) b = -10;
if(m==10) {
b = 0;
if(day>4) b = -10;

jd = Math.floor(365.25*(y+4716))+Math.floor(30.6001*(m+1))+day+b-1524;

b = 0;
a = Math.floor((jd-1867216.25)/36524.25);
b = 1+a-Math.floor(a/4.);
bb = jd+b+1524;
cc = Math.floor((bb-122.1)/365.25);
dd = Math.floor(365.25*cc);
ee = Math.floor((bb-dd)/30.6001);
day =(bb-dd)-Math.floor(30.6001*ee);
month = ee-1;
if(ee>13) {
cc += 1;
month = ee-13;
year = cc-4716;

if(adjust) {
wd = gmod(jd+1-adjust,7)+1;
} else {
wd = gmod(jd+1,7)+1;

iyear = 10631./30.;
epochastro = 1948084;
epochcivil = 1948085;

shift1 = 8.01/60.;

z = jd-epochastro;
cyc = Math.floor(z/10631.);
z = z-10631*cyc;
j = Math.floor((z-shift1)/iyear);
iy = 30*cyc+j;
z = z-Math.floor(j*iyear+shift1);
im = Math.floor((z+28.5001)/29.5);
if(im==13) im = 12;
id = z-Math.floor(29.5001*im-29);

var myRes = new Array(8);

myRes[0] = day; //calculated day (CE)
myRes[1] = month-1; //calculated month (CE)
myRes[2] = year; //calculated year (CE)
myRes[3] = jd-1; //julian day number
myRes[4] = wd-1; //weekday number
myRes[5] = id; //islamic date
myRes[6] = im-1; //islamic month
myRes[7] = iy; //islamic year

return myRes;
function writeIslamicDate(adjustment) {
var wdNames = new Array("Ahad","Ithnin","Thulatha","Arbaa","Khams","Jumuah","Sabt");
var iMonthNames = new Array("Muharram","Safar","Rabi'ul Awwal","Rabi'ul Akhir",
"Jumadal Ula","Jumadal Akhira","Rajab","Sha'ban",
"Ramadan","Shawwal","Dhul Qa'ada","Dhul Hijja");
var iDate = kuwaiticalendar(adjustment);
var outputIslamicDate = wdNames[iDate[4]] + ", "
+ iDate[5] + " " + iMonthNames[iDate[6]] + " " + iDate[7] + " AH";
return outputIslamicDate;




Famouse algorithm
Word and famouse this algorithm calendar as using this rule the leap years are:
2, 5, 7, 10, 13, 16, 18, 21, 24, 26 and 29.

According to this famouse algorithm to day is: 23 Muharram 1434

Kuwaiti algorithm

The "Kuwaiti algorithm" is used by Microsoft to convert between Gregorian calendar dates and Islamic calendar dates.

Kuwaiti algorithm of the Tabular Islamic calendar as using this rule the leap years are:
2, 5, 7, 10, 13, 15, 18, 21, 24, 26 and 29.

Month in Islam


Important dates in the Islamic (Hijri) year are:

  • 1 Muharram (Islamic New Year)
    10 Muharram (Day of Ashura) For Sunni Muslims, the crossing of the Red Sea by Moses (Musa). For all muslims, the martyrdom of Husayn ibn Ali, the grandson of Muhammad, and his followers.
    12 Rabi al Awal (Mawlid an Nabi for majority of Sunnis)
    17 Rabi al Awal (Mawlid an Nabi for Twelvers and some Sunnis)
    27 Rajab (Isra and Mi'raj for majority of Muslims)
    15 Sha'ban (Mid-Sha'ban, or Night of Forgiveness), and for Twelvers the birthday of Muhammad al-Mahdi (The Twelfth Imam)
    1 Ramadan (First day of fasting)
    27 Ramadan (Nuzul Al-Qur'an) The day Muhammad received the first verses of the Qur'an (17 Ramadan in Indonesia and Malaysia)
    Last third of Ramadan which includes Laylat al-Qadr
    1 Shawwal (Eid ul-Fitr)
    8-13 Dhu al-Hijjah (the Hajj to Mecca)
    9 Dhu al-Hijjah (Day of Arafa)
    10 Dhu al-Hijjah (Eid al-Adha)

Convert Hijri to civil date or civil to Hijri date


This table may be extended since every nineteen years the Muslim month number increases by seven. When it goes above twelve, subtract twelve and add one to the year AH. From AD412 to AD632 inclusive the month number is 1 and the calculation gives the month correct to a month or so. AD622 corresponds to BH1 and AH1. For earlier years, year BH = (623 or 622) - year AD).

Current correlations

Because a hijri or Islamic lunar year is between 10 and 12 days shorter than a civil year, it begins 10–12 days earlier in the civil year following the civil year in which the previous hijri year began. Once every 33 or 34 hijri years, or once every 32 or 33 civil years, the beginning of a hijri year (1 Muharram) coincides with one of the first ten days of January. Subsequent hijri New Years move backward through the civil year back to the beginning of January again, passing through each civil month from December to January.




You can use Flash Builder to develop application for Android and IOS. The IDE is similar to Eclipse. You can use the same code to develop for multiple platform.

<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx=""
title="This is hello World" viewActivate="onViewActivate(event)"

import com.hdi.nativeExtensions.NativeAds;
import com.hdi.nativeExtensions.NativeAdsEvent;
import com.lancelotmobile.utils.DPIUtil;


protected var webView:StageWebView = new StageWebView();
protected var openBrowser:Boolean = false;


protected function view1_viewActivateHandler(event:ViewNavigatorEvent):void
if (StageWebView.isSupported)
currentState = "normal";
webView.stage = stage;
webView.viewPort = new Rectangle(0,75,stage.stageWidth,stage.stageHeight);
else {
currentState = "unsupported";
lblSupport.text = "StageWebView feature not supported";

protected function onURLChange(event:LocationChangeEvent):void
trace("URL change");
// Uncomment the following line to load in the default browser instead...
//navigateToURL(new URLRequest(event.location));

protected function onRemove(event:ViewNavigatorEvent):void

protected function onViewActivate(event:ViewNavigatorEvent):void
NativeAds.showAd(0,DPIUtil.appHeight - 75,480,75);

protected function onViewDeactivate(event:ViewNavigatorEvent):void
//hide ads

protected function onAdReceived(event:Event):void
//Anything behind the ad will be hidden, update your layout to handle this edge case.
trace("update ui's size and position");

protected function button1_clickHandler(event:MouseEvent):void
// TODO Auto-generated method stub



<s:State name="normal"/>
<s:State name="unsupported"/>
<s:Label id="lblSupport" includeIn="unsupported" width="95%" horizontalCenter="0" verticalCenter="0"/>

<s:VGroup paddingLeft="10" paddingRight="10" paddingTop="20">
<s:Label text="Ad Mob example" />
<s:Label width="100%"
text="This is our first example apps &#xd;using Flash Builder." />




Diabetes is a complex disease. You may have heard different stories about what causes it, how it is diagnosed and how it is managed. If you are affected by diabetes, you want the truth about the disease. Here are some common myths in Android Platform.

Learn how to improve your knowledge about diabetis.



Download Android Diabetes quiz in your phone.



We notice that you may be initiating SmartWall with airpush.startAppWall() or another individual call rather than the recommended method of using airpush.startSmartWallAd().

Please note that your earnings may be significantly lowered by doing this. To ensure maximum earnings, please use the airpush.startSmartWallAd() call which takes advantage of SmartWall's dynamic optimization between the various subformats of SmartWall, which include: AppWall, Dialog Ads, LP Ads, and soon Rich Media & Video Ads. Please refer to the SmartWall documentation for more info.

Our first attempt to integrated Airpush sdk failed. We will try again later.


Why? I don't have to install any plugin when using Google Doc but need Silverlight to run Office Doc. I refuse to install any plug-ins. Technically silverlight perform better than flash. But i don't see any usage of silverlight other than visiting website.


I still remeber silverlight hype. Now it's going to dead. HTML5 rules. To bad for a young technologies. Only flash for desktop can survive in the next 5 years. Tired of ever changing technologies. Why can't we just stick with one standard.


Go to Project » Properties » Java Build Path » Libraries and remove all except the "Android X.Y" (in my case Android 1.5). click OK. Go to Project » Clean » Clean projects selected below » select your project and click OK. That should work.

It is also possible that you have a JAR file located somewhere in your project folders (I had copied the Admob JAR file into my src folder) and THEN added it as a Java Path Library. It does not show up under the Package Explorer, so you don't notice it, but it does get counted twice, causing the dreaded Dalvik error 1.


We decided to try airpush for our next application. We see plenty of airpush review. Some goods and some are bad. We want to see if it's really works. We will give a review how it's really works for our company.

We install airpush SDK 5.0. we got API key.


We also got Package name:

Get Install Code
The AirPush Android SDK includes:
NOTE: Your AppID is required to integrate the SDK with your application. You can retrieve the AppID from the Application Dashboard or Edit Application section.
README: Get started with AirPush Android ads!
AirPush Jar file: Required for publishing ads. Follow the documentation in javadoc/index.html and drop the AirPush Jar file into your project.
Sample Projects: Examples of AirPush Android ads shown in the Airtest application.


We read the readme.txt files.

Welcome to the Airpush SDK for Android !

Included in this distribution is everything you need to integrate Airpush Push Notification ads into your Android applications. Get started by reading the Airpush SDK installation instruction guide at

An app code project "AirTest 5.0" is included to demonstrate ad integration. We highly encourage our publishers to use "test mode" of sdk post installation to verify that ads are received correctly before the app is published on Android Market.In case, if you face any issues integrating SDK with your app please feel free to drop an email to and our support team will get them resolved asap.


We received this AirTest folder. The documentation is quite good.

The Airpush Android SDK is a java-based library that allows publishers to monetize
their app(s) with unique, innovative ad units. Developers use this SDK to monetize
their entire install base, earn above industry average CPM’s, and provide richer ad
experiences. This document covers installation instructions, available ad units and
their features, optimization, and best practices. It is written for developers with the
assumption they are familiar with Android development.


A Push Notification Ad is an ad sent to the notification tray of
Android devices, rather than inside of an app. This ad unit can
monetize an app’s entire install base- both active and inactive.
CPM’s range from $2-$10. You, the developer, control how
often ads are sent to your users from within your account.

Best Practice: To maximize revenue set the frequency to 2 ads/day with a 0 day
ad delay.


Icon Ads

This innovative ad unit is a shortcut placed on the home screen
of Android devices which links to valuable content such as free
apps and deals. This ad unit can also monetize an app’s entire
install base- both active and inactive. CPM’s range from $5 -

Best Practice: To maximize revenue set the frequency to the maximum setting of
5 icons per user per month.


SmartWall, our new full-page ad format, dynamically optimizes
between multiple sub-formats including AppWall, OfferWall,
Dialog Ads, Video Ads, Rich Media, and More. Benefits of this
ad unit include $6+ CPM’s and a rich user experience. You
control when this ad unit is triggered within your app session.
Best Practice: To maximize revenue set from SmartWall, set
the ad unit to launch upon app launch, app exit and in natural breaks in the app
session (ie in between game levels).

Installation instruction

Airpush Android SDK contains the code necessary to install Airpush ads in your
application. This PDF will guide you through a simple XML implementation.
Note: You will need to replace all instances of <appid>, <package name> and
<apikey> with your actual application id, package name and api key which is obtain-
able from Airpush portal.
Installation Instructions


Adding the JAR

Copy the Airpush JAR file (AirpushSDK.jar) in your project’s root directory.
For Eclipse projects:
• Right-click on your project from the Package Explorer tab and select “Properties”
• Select “Java Build Path” from the left panel
• Select “Libraries” tab from the main window
• Click on “Add JARs...”
• Select the JAR that’s been copied to the project’s root directory
• Click “OK” to add the SDK to your Android project
• Select “Order and Export” tab from the main window and check the SDK
Step 1 - Adding the JAR


We import the airtest 5.0 and got Unable to resolve target 'android-10' error.


So we change the project target properties to target=android-15. Error gone.



In the emulator mode, we see the privacy policy & Advertising terms.


Hello Wold, without Ads.


So we change the AndroidManifest.xml apikey to airpush.

We have a problem with no ads available.

Interstitial JSON: {"status":150,"message":"Ads not available","count":0,"url":""}


Finally, the dashboard detect our apps.


We rename the Airtest pakage name to the names given. And we saw some statistic in the dashboard. It is a bit confusing compare to admobs.

Finally, we saw some ads in the test application.



What can I do if i lost the keystore i used to sign my application?

Solution. No you cannot update your program if you lost your keystore.To help your users find your new app and continue to get updates ....

Leave the application published. Publish the same app, with new package name and new key. Change the text for the older app explaining that the new app is called XYZ etc, that this version will not be updated anymore. Put a better backup plan into action :-)

Go to your backups to get the keystore back.

You can not update an app without the correct signature. That is for your protection and your users protection.


The apk must be signed with the same certificates as the previous version problem and solutions.


The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project error.

To solve this missing class problem. Right click on project properties, change from Android 4.03 to Android 3.1. The eclipse will automatically add the library back. Latter change back to Android 4.03. This is due to incomplete Eclipse shut down.


Build great social apps and get more installs.What’s New in 3.0 (Beta)
This release makes it easier and faster to integrate your Android app with Facebook.Ready-to-use native UI views,Simplified user session management,Better support for Facebook APIs.



Simplified user session management

This release includes several tools that simplify authentication and authorization, including a Fragment and a Button that manage login state automatically. Login state is cached in SharedPreferences by default. You can serialize sessions to support low memory scenarios; an optional Activity base class makes this automatic. The modular design handles details you don't care about while giving you more control when you need it.

Better Facebook APIs support

You can now batch SDK requests for Facebook API calls, which translates to much faster access times for parallel API requests. Callbacks and listeners are factored in to better support MVC-style programming. Facebook JSON data can be manipulated with strongly-typed interfaces to reduce coding errors and simplify reading and writing to Facebook.

Ready-to-Use native UI views

This release includes several pre-built Fragments and Views for common tasks. Built-in caching and on-demand loading makes these controls more efficient and responsive than web dialogs. Add these to your apps to build fast, native and consistent experiences for common features.

Friend Picker lets people tag friends in an Open Graph action or find other people who installed your app.
Places Picker shows nearby places with customizable locations.
Profile Picture control shows the profile picture for any Facebook object, including people, places and things.
Login controls simplify how you manage user identity and app permissions.

Mobile install measurement

With our SDK, you can measure clicks and installs for mobile app install ads. Learn more about the mobile app install ads product.

So, let start coding for facebook apps for Android.


Facebook SDK for Android

by on 4:16 PM
Build great social apps and get more installs.What’s New in 3.0 (Beta) This release makes it easier and faster to integrate your Android app...


You can test you android apps directly from you phone using USB cable. Make sure you choose manual then choose running Android device. Make sure you install the driver of your smartphone.

This table provides a reference to the vendor IDs needed in order to add USB device support on Linux. The USB Vendor ID is the value given to the ATTR{idVendor} property in the rules file, as described above.

Company USB Vendor ID
Acer 0502
ASUS 0b05
Dell 413c
Foxconn 0489
Fujitsu 04c5
Fujitsu Toshiba 04c5
Garmin-Asus 091e
Google 18d1
Hisense 109b
HTC 0bb4
Huawei 12d1
K-Touch 24e3
KT Tech 2116
Kyocera 0482
Lenovo 17ef
LG 1004
Motorola 22b8
NEC 0409
Nook 2080
Nvidia 0955
OTGV 2257
Pantech 10a9
Pegatron 1d4d
Philips 0471
PMC-Sierra 04da
Qualcomm 05c6
SK Telesys 1f53
Samsung 04e8
Sharp 04dd
Sony 054c
Sony Ericsson 0fce
Teleepoch 2340
Toshiba 0930
ZTE 19d2


You must install phone USB driver to test your Android application directly on you smartphone from Flash Builder.

To run and debug Flex mobile applications from an Android device, enable USB debugging as indicated below:

On the device, follow these steps to ensure that USB debugging is enabled:

Tap the Home button to display the home screen.

Go to Settings, and select Applications > Development.

Enable USB debugging.

Connect the device to your computer with a USB cable.

Pull down the notification area at the top of the screen. You see either USB Connected or USB Connection.

Tap USB Connected or USB Connection.

If a set of options appears that includes Charge Only mode, select Charge Only and tap OK.

If you see a button for turning off mass storage mode, click the button to turn off mass storage.

(Windows only) Install the appropriate USB driver for your device. See Install USB device drivers for Android devices (Windows).

Pull down the notification area at the top of the screen.

If USB Debugging does not appear as an entry, check the USB mode as described in step 3 above. Make sure that the USB mode is not set to PC Mode.

Connect you phone usb.


Choose Install from a list of specific location (Advanced)


Click Include this location in the search:

C:Program FilesAdobeAdobe Flash Builder 4.6utilitiesdriversandroid


Restart you computer.


Admob for Adobe Flash CS6 is a tricky process. To add the admobs ads in your Adobe flash based application just put the following code in the main action script.


package {

import flash.display.MovieClip;
import flash.desktop.NativeApplication;
import com.hdi.nativeExtensions.NativeAds;
import com.hdi.nativeExtensions.NativeAdsEvent;
import flash.utils.setTimeout;

//Path to iPhone SDK /Applications/

public class AdMobExample extends MovieClip {
// Admob - id
private var admobId:String = "your-admob-id";
private static const AD_HEIGHT:int = 50;
private var statusBarHeight: int = 0;
private var _adY:int = 0;
public var na : NativeApplication;

public function AdMobExample() {
// constructor code
na = NativeApplication.nativeApplication;
na.addEventListener(Event.EXITING, exit, false, 0, true);
na.addEventListener(Event.DEACTIVATE, deactivate, false, 0, true);
na.addEventListener(Event.ACTIVATE, activate, false, 0, true);
// lock the scale of the app
// so we can manage the screen sizes and
// positioning ourselves
if ( stage ) {
stage.scaleMode = "noScale";
stage.align = "TL";
//statusBarHeight = 20; //in case the status bar is visible
//if you app is full screen the this should be equal to 0
statusBarHeight = 0; // we are developing full screen app
_adY = 480 - statusBarHeight - AD_HEIGHT; //position the ad at the bottom
// call init when ready
if ( loaderInfo ){
loaderInfo.addEventListener( Event.INIT, init, false, 0, true );
} else {
// close the application
public function deactivate(e:Event):void {
// AdMob
// end AdMob
public function exit(e:Event):void {
// end AdMob
// add a short delay to make sure the app has shut down
//finalize the app.
private function finalExit():void
// AdMob Methods
public function showAd():void {
// add an event listener so we know when an ad is being displayed
NativeAds.dispatcher.addEventListener(NativeAdsEvent.AD_RECEIVED, onAdReceived);
// call showAd and pass in the size and position of the ad
NativeAds.showAd(0, _adY, 480, AD_HEIGHT);
public function hideAd():void {
// remove the ad from view
public function onAdReceived(e:NativeAdsEvent = null):void {
//Anything behind the ad will be hidden, update your layout to handle this edge case.
trace("update ui's size and position");
// end AdMob Methods
private function init(e:Event):void {
// ADMOB - initialize here
//NativeAds.setAdMode(true);//put the ads in real mode
//initialize the ad banner with size compatible for phones, it's applicable to iOS only
NativeAds.initAd(0, _adY, 320, AD_HEIGHT);
// show ad
private function activate(e:Event):void {
trace("App was activated");




You must have adactivity declared in androidmanifest.xml with configchanges. This is happen on Admobs for Adobe flash. We are unable to figure out the real problem.

Please read all related blog posts. In short, you have to update your configuration file, but to compile you should switch to Android-14 +. There is enough information around, just keep reading.


We develop for Android, Ipad, Iphone and Windows phone apps. focus is to diversify our product to other platform.

Still we are going to choose Admobs as our primary ads source. We also looking for Google Adsense Mobile Content



What is the different between Adsense Mobile Content and Admob Ads?

Admobs is for in application ads and Adsense is for Website ads. Simple Flash Presentation using flash animation.


We are developing for Windows 8 application. The default search engine is Bing. Since we love Google we want to switch back to Google. So we download the Google Search App.