Send Notifications to Blackberry Hub from Android App - android

How do I send and handle notifications from an Android app in the BlackBerry hub? I am using the Android runtime on BlackBerry 10. It does not work out of the box if I use Android notifications the regular way.
I was at the BlackBerry mini jam in Hamburg yesterday, November 27th, 2012. The marketing guy responsible for the Android runtime said there are definitely apps which are able to do this, however he could not provide me with details on how to do so.

If you have a dev alpha device try flashing it with beta 4 which includes support for C2DM (push notifications).
https://developer.blackberry.com/blackberry10devalphas/update
If using the simulator, just download the latest version of the simulator.
https://developer.blackberry.com/develop/simulator/index.html

According to RIM Support a working release of the Blackberry Hub should be included since BB 10 10.0.9.2264 (I am on 10.9.9.339 which might be the problem)

Related

wear OS - http post from smartwatch

I want to create android application for smartwatch with a cellular internet connection that send HTTP post to a server.
What android version support should i have?
I saw that android 5.1 support cellular network but in Wikipedia it written that only android 7.1.1 support cellular data.
Watches and Phones have thier own OS. Perhaps you found something built to look like a watch that is actually using the phone OS. i wouldnt doubt it as the wear playform is not given the same attention...
But at least in part the actual watch versioning is confusing.
it started out as Android Wear 1.x 2.x then reset to Wear OS 1.x which is now up to version 2.6, all while the latest version for Pie was again renamed to letter version, which is version H... Go figure.
Also if starting now at i wouldnt worry about the older Android Wear hardware, and not even sure if you could buy a new 'Android Wear' watch at this point, so any watch that advertises 'Wear OS by Google' will support Wear OS.
Also I might concider getting a watch with the physical USB connector so you can debugging on the device itself... otherwise you have to manage debugging over bluetooth which at least for me is not always stable on one pc, and have never gotten to work on another...
But such advise is rather particular to me...
Update: it strikes me that you might have been speaking about the target version of Android, which yes admitingly is yet another version to get familiar with developing with wearable android...
Usually it is seen as the target or compile versoin, and from what Im aware the SDK is compatible from version 7.x to the latest 9.0... but perhaps there are eirlier versions that work with the older Android Wear down to what you mention 5.x Im unsure.
Currently i target 8.0 but moving to 8.1 to get at updated libraries im interested in.
And then there are the API Levels to get familiar with...
Ya honestly it's really confusing...

Building for both Android and Kindle

I have been developing for Android for a while now and recently got interested in developing for kindle devices as well. I am not completely sure how to go about this but what I would really like to know is if it is possible to build an app targeting Kindle that will also run on all Android devices?
While the look and feel of the Kindle Fire tablet appears distinctly different from other mobile operating systems, it is actually Android in disguise. In fact, it is very compatible for existing Android applications, which is customized to remove native access to the Google app ecosystem.
The first gen Kindle Fire device is based on Android Gingerbread (API level 10), the second gen Kindle Fire devices are based on Android Ice Cream Sandwich (API level 15) and the third gen Kindle Fire devices are based on Android Jelly Bean (API level 17). See Device and Feauture Specifications at the Amazon Developer website.
For developers, this implies that building applications targeting Amazon’s Kindle Fire is similar to building an Android application. In fact, per Amazon, most of the Android applications (76% of the applications they tested) can work on Kindle Fire without needing any change or development effort.
Changes will be required when it comes to In-App-Purchase and Push Notification (Amazon provides a proprietary API for these services, Push is supported for Kindle Fire 2nd gen or newer). So eventually you might want to maintain at least two APK builds, one for Google Play and one for Amazon.
For complete steps see - setting-up-your-development-environment.
The two big differences I've noticed between developing for standard Android devices and the Kindle Fire:
Push messaging - Normal Android uses GCM (Google Cloud Messaging) which requires that Google Play be installed on the device, while Amazon devices use ADM (Amazon Device Messaging) which require that the ADM library be present. ADM will not work on the 1st generation Kindle Fire.
In-app purchasing - This one is pretty obvious. Android uses Google Play, while Amazon uses the Amazon App Store. Both use their own SDK for in-app purchasing, their own URIs for links to products, etc.

android app with Google analytics on blackerry 10 devices

I have an android app with Google-analytics integrated. Recently, i ported it for Blackberry10 devices and is currently there on both Playstore and Blackberry world. Now, how do i know from the analytics reports about the blackberry devices running my app. In the analytics report,for devices it shows a row in devices an "Not Set". I did not make any changes for porting my app to blackberry except the mandatory changes in the manifest.
Can anyone please give some suggestions.
The following would allow you to verify inside your app to see whether it's a BlackBerry or another Android device running your app (taken from BB Developer site):
java.lang.System.getProperty("os.name").equals("qnx")
Unfortunately I am not sure what properties Google Analytics uses for its device information.

Android apps always part of the OS source?

I am trying to customize the Email app that's at packages/apps/Email in the android source. However, I noticed that it has a dependency on the OS/SDK that it's part of and is not really separate.
For ex., if I pick up the Email app from the latest master, it will run only on 4.3 android devices, and not on 4.0.x. The app uses certain features of device admin that are there only in 4.3 and is not written to work on the previous versions.
And if I take the app from 4.0.x android source then I am missing the latest and the greatest of the Email app that's in master.
Is there a reason why the apps are not maintained independently of the OS, and built to be backward compatible?
Thanks.

In blackberry does android player supports push notifications or C2dm?

I want to develop android application so that it also works on blackberry. I have searched that blackberry onward 10 and blackberry playbook supports android application and android player to run android applications. So in my application I'm using C2DM Push notifications from server so does this feature is supported by blackberry android player, if I make this in native android?
For the above scenario do I have to make application in native android and blackberry each or I can make for only android and it will run in blackberry with the C2DM feature?
Thanks in Advance!!
Android C2DM requires the presence of Google Play (formerly Android Market). Without this component, your client won't be able to receive notifications.

Categories

Resources