Skip to main content
Infin8
Inspiring
July 15, 2014
Question

How to connect Android SDK to Flash Pro project?

  • July 15, 2014
  • 1 reply
  • 420 views

Hi,

I'm trying to import the android.NativeDeviceInfo class into my AIR for Android project but unsure on how to do this exactly.

import android.NativeDeviceInfo;

import android.NativeDeviceProperties;

I understand how to link libraries and ANE's to my project via the ActionScript 3 Settings panel. I just don't know what to link to?

Could anyone give me a pointer?

Thanks,

Mark

This topic has been closed for replies.

1 reply

Infin8
Infin8Author
Inspiring
July 16, 2014

I'm wanting to use this class for my cross platform app.

http://www.funky-monkey.nl/blog/2010/11/11/getting-device-properties-like-os-model-brand-sdk-version-and-cpu-on-air-for-andoid/

Ideally I would like to know:

NativeDeviceProperties.OS_NAME).value);

NativeDeviceProperties.OS_VERSION).value);

NativeDeviceProperties.OS_BUILD).value);

NativeDeviceProperties.PRODUCT_MODEL).value);

NativeDeviceProperties.PRODUCT_BRAND).value);

NativeDeviceProperties.PRODUCT_NAME).value);

NativeDeviceProperties.PRODUCT_VERSION).value);

NativeDeviceProperties.PRODUCT_MANUFACTURER).value);

NativeDeviceProperties.LCD_DENSITY).value);


Thanks

Infin8
Infin8Author
Inspiring
July 17, 2014

Thanks for the info. I understand what you are saying however, when I try to export my Android app I get the following errors:

1172: Definition android:NativeDeviceInfo could not be found.

1172: Definition android:NativeDeviceProperties could not be found.

So it would seem the import statements that I'm using aren't locating these files.