I want to set ringtone programmatically in Blackberry through my app, but I am not finding any sample code.
I tried this, but it's not working:
net.rim.device.api.notification.NotificationsManager.setPhoneRingTone("a1.mp3");
How can I do this?
You cannot directly access and play the RIM tones - they are
content-protected. What you can do is set up your own alert
profile that is added to the BB Profiles. This profile can access the
on-board ringtones. You fire this profile using NotificationManager.
See the NotificationsDemo that ships wiht the JDE.
Source: http://supportforums.blackberry.com/t5/Java-Development/Ring-Tones/m-p/343755#M63152
Related
I have created an application for Homekit which works fine when both accessory and device is in same network.
I read somewhere that Apple TV is required to control accessories remotely.
Can anybody please tell how to achieve this exactly?
No you can not pair homekit with the appleTV. You can use the remote app either from you iPhone or iPad
If you have Apple TV try to set it up.
I have given the details.
I have done a much workaround for this. First of all handling things by our own is not preferable for multiple users.
I had this query that how all configuration done on one device will reflect on another device for same home. Unfortunately apple didn't provided much information on this and they also didn't clarify that Apple TV will require or not(As I have referred to some reports that says Apple TV will use as intermediator between iOS devices.
Now at application side i have tried to add User to home. There is a HMUser class and we can add user to any home that we want to sync. I was running my app in iOS 8.1 in both the devices, I was also logged in to icloud and keychain access was also enabled.
Now i have tried to add user using method of HMHome class
-addUserWithCompletionHandler()
I shows a popup in which we need to enter the email id of user to which we want to give access to current home.
But it didn't work. I always get error "notification not enable at remote side"
I think that login to Apple TV is require for adding user. I am not sure about this, Apple hasn't clarify on this too. I don't have Apple TV if you have try to login in it and use two other iOS devices to give access to any icloud account.
Also revert me if it works.
I have been working on HAP Over iCloud concept since last 2 to 3 hours. The beauty in this concept is according to the documentation we should need the following things.
1. Apple tv 3rd generation.
2. Have to use same iCloud account in both apple tv and iOS device.
3. This is most important that Apple tv and Accessory should be on same network.
Eventhough you are on different network it is able to pass the switch on/off,brightness increase/decrease ... actions. For this you can use siri commands or programmatically call the accessory write value functionality
Note : As I know I think when you are passing the commands to the Accessory it checks for the iCloud account in the apple tv and from there it is passing the commands to the Accessory.
I am new to iOS.
The app I am working on has in Settings under Notification Center the Alert style set by default to Banners.
I would like to change that to Alerts. How can I do that?
After doing some search on google i found that this should be changed from Info.plist using NSUserNotificationAlertStyle.
I need some help. I don t know how to set this. Thank you
That variable is only valid on OSX Apps, not on iOS Apps.
On iOS, the style of the notification is set on the settings of the phone, so the user decides what style he wants for all apps.
Is not possible on iOS to change the style within the app and for just that app.
Check here for confirmation:
https://developer.apple.com/library/ios/documentation/general/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html
I want to set device's lock and home wallpaper using mdm command.
I looking into apple configuration but didn't find any xml that can be used to set the wallpapers.
Please help for getting me the XML.
Apple didn't release new configuration profile reference guide for iOS 7 yet.
If you really want to try it, go and disassemble managedconfiguration private framework. It contains info on all payloads.
You can set lockscreen with Apple Configurator however the background option is not present in current Apple Configurator(Please note ac is not updated since IOS 7.
Regarding settings lockscreen and background in "mdm" it depends on what mdm "brand" you'r using.
Detail: Every stuff in our company has his own calendar and a fixed subscribe url, which is known, I am working on an iOS app, which can help stuffs to install a mobileconfig file and automatically subscribe the calendar, I just don't know where to start
Here is an example of 163EMAIL: https://ssl.mail.163.com/config/mobileconfig/index
I am trying to make one exactly like this!
if all this can be done within only one iOS device will be better.
so all you have is an url of a calendar, with which I can manually subscribe by entering setting-email-add-other-subscribe
and I want to make it a mobileconfig file!
THX!
Here is a good place to start.
"Creating a Profile Server for Over-The-Air Enrollment and Configuration" is the part you should really focus on.
You can use the built-in Apple Configurator on OS X
Is it possible to play blackberry default ringtones. If yes how? and what will be the code. please help if anyone have any idea.
Thanks and regards!
"You cannot directly access and play the RIM tones - they are content-protected.
What you can do is set up your own alert profile that is added to the BB Profiles. This profile can access the on-board ringtones. You fire this profile using NotificationManager.
See the NotificationsDemo that ships wiht the JDE."
Source: http://supportforums.blackberry.com/t5/Java-Development/Ring-Tones/m-p/343755#M63152