Skip to main content
Infin8
Inspiring
Jul 15, 2014 12:34 PM UTC
Question

How to connect Android SDK to Flash Pro project?

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 is closed to new replies. Start a new post to keep the conversation going.

2 replies

Infin8
Infin8Author
Inspiring
Jul 16, 2014 5:54 PM UTC

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

Translate
Infin8
Infin8Author
Inspiring
Jul 17, 2014 4:45 PM UTC

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.

Translate