I ported my android app to bb10 and it works quite well. However there are a couple of features I should turn off because they require the Google Play store. When I had a similar problem with the Amazon Kindle Fire I dealt with it by checking android.os.Build.MODEL and blacklisting Kindle devices. Is the right approach to take on BB10 and if so what are the model strings for current and future devices? Or is their a better way of dealing with this?
You can use the System.getProperty method to detect if your Android application is running on a BlackBerry PlayBook tablet, or BlackBerry 10 device.
System.getProperty(“os.name”);
On a BlackBerry device, this returns "qnx".
Via:
http://supportforums.blackberry.com/t5/Android-Runtime-Development/How-to-Detect-if-an-Android-Application-is-Running-on-a/ta-p/1470313
We use this function to detect if our android app is running on Blackberry Device (BB10, Playbook), Kindle Fire or Android device::
/**
* #return platform id
* 1 Android
* 2 Amazon
* 3 Blackberry
*/
public static int getPlatform(){
if(android.os.Build.BRAND.toLowerCase().contains("blackberry")){
return 3;
}else if(android.os.Build.MODEL.toLowerCase().contains("kindle")){
return 2;
}else{
return 1;
}
}
Related
I am starting a React Native app and I work on Windows (I do not have any ios devices). How do I know how does my app look and work on iOS devices? Is it even possible to run some kind of simulator in windows that will allow me to render my RN app in an iphone? I have android studio and an android phone so android is covered but I wanted to know how I can do the same for iphones. Thanks
Running IOS simulator is only possible on macOS.
Where do you debug/emulate your Fleetboard app?
Do you use standart android tablem emulator in landscape orientation?
How then do you invoke Fleetboard SDK functions to mock real truck device?
Thank you.
You can use a standard Android emulator to run and debug your app but Vehicle related APIs won't be available within this Environment. If you want to test your app including the usage of VehicleAPI you must run your app on a Fleetboard Test Device. On These devices we provide a Simulator that mocks real Vehicle Data and allows you to debug this Szenario.
Test devices can be ordered by contacting buildapps#daimler.com
We have a simple apple tv app that is basically a static ad. Our apple tv is the latest (4th gen, tvOS 10.0.1). The problem is we do not have an external server!!! so how can we by pass the lines below or make it point to a local application.js file:
static let tvBaseURL = "http://localhost:9001"
static let tvBootURL = "\(AppDelegate.tvBaseURL)/application.js"
Are we required to have a server for developing apple tv apps? We have seen other examples on stack on how to do this but they are outdated and/or for older devices. Any help would be appreciated. It's either we get this working or go back to AndroidTV
It is not necessary to use external server in tvOS apps (even for the latest tvOS 10). You can use UIKit like in iOS applications to build application without JavaScript. Also, you can create hybrid application (Swift+JavaScript) where external server is also not required.
How and where can I see this number needed to register a test device in unity ads?
it depends wheter its what phone you are using if its an Android based phone for example you can find that number behind the battery usually or with simple commands on the phone itself,
e.g. (Android) https://www.verizonwireless.com/b2c/findDeviceId/helpOverlay.jsp?pageName=androidPhone
(Iphone) https://support.apple.com/en-il/HT204073
that number just tells unity that any ads running on that device are test ads and treat them so.
For Android device.
Open google settings from device.
Navigate to services->Ads.
Advertising id for your android device will there.
Say I want to develop applications for iPhone, but I only have a phone with Windows Mobile and for whatever reason I cannot switch to iPhone or buy a new phone.
Is there any iPhone emulator for Windows Mobile that would allow me to run apps on Windows Mobile 6? I have HTC HD2.
P.S. I'm not interested in emulators for any other platform.
No there no is none, since the CocoaTouch platform is is not opensourced you can't really emulate the platform.
Nor is it possible to emulate iOS on your device, since iOS will require some specific hardware.
You will also need a Mac to develop app since Xcode will only run on OSX.
No. You can't do it without an iPhone and obviously a developer account in order to provision your device.
In your question, you should be asking something like" iOS emulator for windows", which is no.
Understand more about SDKs and emulators, you cannot emulate iOS on a actual WM device but a simulator in a computer; this is not a platform problem, it's a understanding problem, you can still code apps without iPhone and publish it, it's just skipping a step.
If you are on Mac OSX, your good to go, grab the SDK and use the emulator bundled with it
BTW, even if you do get a iphone, you still need a computer with OSX and xcode installed to start coding