How to remove a tray icon from Blackberry OS programatically - blackberry

ok. So I am refering to the icons for an application that appear just below the time, with a number beside them. I am maintaining a blackberry application and I am finding the icon is not unset when the count is zero.
This happens to be blackberry OS 6.
Is see a call to this function:
NotificationsManager.cancelImmediateEvent(APP_ID, NEW_MESSAGE_EVENT, null, null);
Which I am not sure does the intended behavior. Can anyone point me in the right direction?

These are known as ApplicationIndicators. You might have a look at:
How to use ApplicationIndicator?
ApplicationIndicatorRegistry javadoc
ApplicationIndicator javadoc

Related

React-Native application: right and left are swapped

On web, the order is just fine, but on mobile everything is swapped: the order of the components, left margins are right margins etc.
I did not change anything on purpose. From one build to another, the order simply changed.
I attached a screenshot from one of their templates which shows the same behavior (so the problem is not restricted to a single project):
screenshot from react-native template ios application
Thank you!
Update:
code: https://github.com/expo/examples/blob/master/with-tab-navigation/App.js
image: screenshot from mobile phone ios
I also checked with another phone and it shows the proper order. Could it be related to some language or region?
Flexbox works the same way in React Native as it does in CSS on the web, with a few exceptions. The defaults are different, with flexDirection defaulting to column instead of row, alignContent defaulting to flex-start instead of stretch, flexShrink defaulting to 0 instead of 1, the flex parameter only supporting a single number.
https://reactnative.dev/docs/flexbox
I uninstalled my Expo Go application from mobile and reinstalled it from App Store. Works now

Android Studio 3.0 - SDK path not specified

I tried to update Android Studio to 3.0 but got some crazy error, so I uninstalled AS and installed AS 3.0, but now when I try to open a file, I get an "SDK path not specified" error and nothing I select is accepted.
I cannot find any file called "android-sdk" or something similar, which is what most of the other solutions on Stack Overflow suggest selecting.
How do I fix this?
Right now I'm trying this, but no clue if it will help:
1. I went to File -> Settings -> System Settings -> Android SDK
2. I specified C:\ProgramFiles\Android and it's installing.
UPDATE: This more or less worked. I had to install a million updates afterwards, but it solved the problem.
This is halfway there. I found going through the File -> Settings tree that even though I hadn't selected NDK (Native) options, the folder names must not contain spaces. I created an Android/SDK folder tree on a spare drive all its own to alleviate this concern by AS.
Then without a space in the name, I was able to choose SDKs to download, and so it has begun.
Your question and self-confirmation of a work around got me there after I, myself was looking for a couple weeks. Thanks
This is the MOP (Method of Procedure) for this:
Took me a while to figure this out as the documentation is not clear on this at all. Cancel the dialogue box asking for the Android SDK path and do the following:
Open Android Studio IDE. Find the down arrow icon, should be second last icon in the toolbar. Click that. You will see a path for Android SDK Location:. Click the edit link to the right of that. This will bring up the SDK Components Screen. If you can check the boxes there, check them. They may already be checked or they may be disabled. You can leave the path as is, for me its:
C:\Users\<user name>\AppData\Local\Android\Sdk
Depending on whether you had Android Studio before it may say it has detected a previous version and it will only download the components it needs. This is normal. Now click the NEXT button. A confirmation screen will come up with Setup Type and SDK Folder. If you want to change your SDK Folder this is your last chance, if not, click NEXT again.
It may bring up a Terms & Conditions screen, click the Accept radio button then NEXT. It will go and download the Android base SDK. When it's completed click FINISH.
You will then be taken to the Platforms screen where you can select which Android platforms you want to support. ie, Android 9.0 (Pie), Android 8.1 (Oreo). Select all the platforms you need then click APPLY.
The downloader will grab all those packages for you. Next, click the SDK Tools tab. Check the boxes of the tools you want and click APPLY. It may bring up a Terms & Conditions screen again, click the Accept radio button then NEXT. When completed just click FINISH and you're good to go.

Itunes Connect can't submit due to language error

Thats all it shows
I'm not sure whats wrong has it doesn't tell me.
it shows its linked to the language
Solution: I had the same problem. With the new update, there is a Media Manager beneath the screen shots. Even though it is giving you a Language error, the problem is with the screen shots. Simply open the media manager and make sure that every size either has its own image or you can click the checkbox to use the two required sizes. That fixed my Language error issue.
I met the similiar situation yesterday, I thought that's result from the iTunes connect update August 8 2016, red exclamation by all localized language without others information. If you meet this situation from August 8 2016, maybe it's the case.
I contacted Apple support and finally submitted new version since I filled up screen-shots for all sizes.
while you can upload the maximum size screenshot and 're-use' it for smaller size at 'Media Manager' page.
When I update the version of my App, also encountered the same situation. After trying various methods, the solution is found.
upload a screenshot of the non-primary language,
change the primary language,
modify the non-primary language screenshot,
change back the primary language.
Yeah Succeed!!!
When you choose screenshots, don't use 5.5 inch one for 3.5 screens.
Make sure this is unchecked.
It will work after you uncheck it.
Try the following:
Click on Pricing tab and choose Price Tier as Free or <your_price>
Otherwise check Rating if it is set properly.
Eventually check if you selected some extra languages to localize (even if I don't think so looking at your images)

How to automate mac app using Xcode?

I try to add UI test cases to our existing mac application. I already tried UI test cases for iOS, which includes the following steps
I choosed Appium instead of Apple's UIAutomator, because I want to maintain the same flow for our Android apps too.
To proceed the automation, I need to set Labels/Values/Identifiers to the elements. So that they can be accessible. We used drawRect method in most parts, so I followed this post to make drawed components accessible.
I can set/read elements in iOS. What I did is, whenever I draw an element, I simply created an UIAccessibilityElement and added in the corresponding view.
Now, I'm trying to write UI tests for our mac application. As Appium does not have support to the mac application, I considered to use Apple's XCTest UI recording/playback to automate my mac application.
Here is the steps that I took:
NSAccessibility is the class that provides accessibility to the mac application
With XCTest, If I knew a particular elements (say a button) identifier/label, I can proceed with automated tap action
Unlike UIAccessibility, NSAccessibility is a role based object. That is, we need to mention which type of accessibility element that we are going to define.
To start the automation process, I took my mac applications left panel, which has five buttons aligned vertically in it
I set identifiers to those buttons. Then I opened Accessibility Inspector and opened my mac app. The values are properly set.
Then I tried to use record option in XCTest. When tapping the button, crashes the app with the error
"Recorder Service Error: Left Mouse Down: Failed to find matching
element".
I posted about it here.
Questions:
Can someone suggest me the right path to automate mac application? Am I going in the right way?
I googled a lot to see a working sample code about how to implement NSAccessibility. But I can not found anything. Can someone share any useful links/samples?
All I need is, to get elements by identifier/label. Accessibility Inspector shows the right value where as XCTest can not read the identifiers. Did anyone face this issue?
Thanks in Advance

uploading firmware to particle io's photon

I am receiving an "Error 1" when using particle io relay - I am using the same exact firmware found here: https://github.com/spark/relayshield. What do I need to change?
1_Blink_a_Relay.cpp:2:37: fatal error: RelayShield/RelayShield.h: No such file or directory
#include "RelayShield/RelayShield.h"
It looks like your code can't find the library you're trying to import. Often (and especially when adapting Arduino code for Particle), the folder name for a library needs to be removed. Try #include "RelayShield.h instead.
If that doesn't work, please provide a little more information, such as your development environment. (Are you using Particle's web-based IDE? Did you import the library from there?)
Cheers!
If you are using the web ide, the one at build.particle.io, then you have to include the library. You have to go to the fifth item on the left menu bar, after flash, compile, save, and code. It should say library, and looks like a bookmark. Click on that. It will pop out a view. Scroll down until you see the Community Library search bar. And search for RelayShield. It will show you the "RELAYSHIELD", which currently is used by 520 people (or something like that). Click on that, and it will open the library. Scroll down on the left side (the one that pops up) until you see the button "Include in App". Click on that, and select your app. After you click on that, it will bring up your app. Then scroll down on that popped out view, until you see "Add to this App". Just click on this button, and then it will include that library in your project.
For Particle Dev on Desktop, it is a lot harder. If you are using Particle Dev, please reply, and I will give you the solution for that. It is very hard to manage libraries with Particle Dev. However, if you want to use the Serial Monitor while using the Particle Build on the internet, what you can do is that you do the regular serial commands on the Particle Build (build.particle.io), and open the Serial monitor on Particle Dev after also connecting to your Particle photon

Resources