How to add standard report icon in springboard in oracle fusion - bi-publisher

I have a requirement to add icon of a standard BIP report in springboard. I am using static URL to create page entry.
We cannot open a standard BIP report from analytics screen it can only be run from scheduled process.So using static url method does not work.
So Where can I get URL of a standard BIP report which is run from scheduled process? If not, is there any other way of doing it

Related

Is it possible to automate two apps at the same time in iOS?

We have this scenario:
Execute the script in app1, in certain step app1 sends us a SMS with a URL, app1 is expecting a validation code in a textfield
We have to open SMS app to verify if SMS exists, this SMS has a URL and when we click on it, it sends us to app1 again but automatically the validation code is written in the textfield.
then, continue with the script.
is it possible to do this?
what do we need to make it?
Thanks.
For iOS you can bring up the SMS app and do whatever you like within the app. For example, you could open SMS app, then open the latest message and then click (or copy) the link.
I use ruby. I use methods based on XCUITest driver (that Noyo linked already)
Methods that can be used are the following:
Method for launching any app installed on device:
def launch_system_app(bundle_id)
#driver.execute_script('mobile: launchApp', {'bundleId': "#{bundle_id}"});
end
Method for terminating the launched app:
def terminate_system_app(bundle_id)
#driver.execute_script('mobile: terminateApp', {'bundleId': "#{bundle_id}"});
end
Method for copying given string to iOS device clipboard:
def set_pasteboard(content)
#driver.set_clipboard(content: content)
end
Call using Messages app bundle id:
launch_system_app("com.apple.MobileSMS")
terminate_system_app("com.apple.MobileSMS")
Yes, As per your scenario you have to launch the messages(call it as app2) application in the middle of execution of script in app1. You can open the app2 by using below code.
driver.startActivity(app2PackageName, app2ActivityName);
Now app2 will be opened you can click on the link in app2 which will open app1 and you can access the elements in app1.
According to this article, it's possible if you're using Appium's XCUITest driver.
Please note it only supports iOS versions 9.3 and above.
You can find a few other application management commands that might interest you at the official docs.

Modal Application

I'm using Xamarin.Android and I would like to build an application that start in modal way and don't close if you push the home button.
So this application need to be the only one application than a user can use on device.
Somebody can suggest how it can be done?
You best way to do is to make a "Launcher"/"Home" application. The Android SDK comes with a sample on how to do this.
You basically do this by adding your main Activity to the android.intent.category.HOME and android.intent.category.DEFAULT category and you set the launchMode to singleInstance.
This will register it as a Home application, then when you press your home button it should ask you to choose which launcher you want to use. You will have to set it once and it can be changed by the user.
You can find the sample in: android-sdk\samples\android-17\Home\src\com\example\android\home (should also be available in the other API samples).
You cant stop people from installing applications on android devices. You would have to build your own hardware for that however, you can override OnKeyTouch and check for the key being home.
You could build a service that checks the package of each running application and log which applications are run on the device to prevent users from using company property on other things. However, if android ever decides to kill your application the service should stop and this wont work.
Long story short what you are trying to do is flawed in its inception given the platform you are trying to do it on.

BBOS (pre BB10) Launching App through Intents (Like Android)

I would like to know if I can develop an application in BB OS (4 - 7) with similar functions to Android/iOs where ;
I would be able to register the app to listen for specific URL's.
I can launch the app via URL.
I can parse data from the URL and use in the app.
For instance in Android I can use Intent Filters like this
<intent-filter>
<action android:name="android.intent.action.VIEW"></action>
<category android:name="android.intent.category.DEFAULT"></category>
<category android:name="android.intent.category.BROWSABLE"></category>
<data android:scheme="http"
android:host="myapp.com"
android:pathPrefix="/launchapp/" />
</intent-filter>
to launch the app upon laoding a url such as
i can then parse the two numbers after launchapp/ and use them within the application.
Anyone experienced with BB OS know if this is possible?
I am not aware about documented listeners to intercept opened URLs. But there is GlobalEvent mechanism. Almost every step doing on pre-BB10 OS fires one or more global events. Some of them are documented, some not.
There are documented GUID's listed: http://www.blackberry.com/developers/docs/7.0.0api/index-files/index-7.html (look for G letter, and scroll down for GUID_xxxx constants).
To catch undocumented GUIDs, implement a background application, that uses GlobalEventListener. Then open a page in browser and log all global event guids and objects which come along with guids to eventOccurred call. And you can find out, which global event guids are related to url-open event. It will help to create URL interception mechanism. And this part should be a native application (written on Java).
It is possible to launch application via url, but it should be WebWorks application. Not a native one. Check this link: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Launch-BlackBerry-WebWorks-app-via-URL-with-parameters/td-p/1674663
When your webworks application has done its part of work, it can fire GlobalEvent and your native app will wait for it to intercept it and work further.
There are some ways of doing this on BBOS depending on what exactly you want.
Create a browser plugin using the net.rim.device.api.browser.plugin API. Here you create a BrowserContentProvider and attach it to the BB browser for handling a particular mime type. This mime type must be unique to you that is not being handled by the native browser (say x-vnd-whatever/myapplauncher) . When the browser access your url, say http://myapp.com/launchapp/233, serve a file with the number 233 and the registered mime type. The browser will download the file, see its mime type and then pass the file content to your plugin for handling. Your plugin will read the app id - 233 and then do whatever you want with it. BlackBerry App World uses this method to allow developers to launch their app in app world from a url.
Create a HttpFilter. Using this, you can make connections to a given domain pass through your code. Here you will register your filter for your domain myapp.com and whenever someone tries to access any myapp.com, the browser will call your filter to handle the request. Again BlackBerry App World does this for access to http://appworld.blackberry.com domain. [There is a HttpFilterDemo in the samples to help you]
Use the StringPattern API. Almost all native text fields support it. So if there is a text field with text written that matches a particular pattern it will become underlined and clicking on it will show your custom actions in the Menu. [There is a StringPatternDemo in the samples to help you]
If your app is in App World and you just want to launch it, use the URL http://appworld.blackberry.com/webstore/content/xxxx where xxxx is your app's content id.
Moreover, there is no use trying anything with Global Events. Since OS 4.5, the global event broadcast mechanism has been partitioned in such a way that the system events are only delivered to system applications and not to their party apps and vise versa.
Hope this helps.

Launch app from within blackberry calendar

We create calendar entries in the blackberry calendar via our applicatin.
Our client wanted to know whether it is possible to launch our applicatin from within the blackberry calendar when they acces entries created by us.
Indeed you can. Refer to the BlackBerry API and see ApplicationMenuItem and ApplicationMenuItemRepository. Within the run method of ApplicationMenuItem you can either launch your application or post a GlobalEvent which your application can subscribe to.
When your application created the calendar entry you could/should have got a UUID for the entry in return. You could set the UUID of the calendar entry selected as an argument in the Global Event and check in your application whether it was an entry your application created.

How to fire click event on new app. icon set using HomeScreen.updateIcon(bitmap)?

I m changing the app. icon using HomeScreen.updateIcon(bitmap) when app. is in background.
Now how to fire click event when I click on this new app. icon like when I click on previous app. icon (which is set through Project Properties-> Resources) main() is invoked.
I have set my main project as CLDC app & m using an alternative entry point which is started at startup but dont have any Resources.
Any system defined Class is there to handle this updatedIcon issue?
Not sure but maybe you talking about focused icon when user touch it?
In this case try setRolloverIcon
public static final void setRolloverIcon(Bitmap rollovericon)
Sets the rollover icon for use with this application. If rollovericon is null, then the application's default rollover icon, as specified in the original project workspace, is used.
Note: If you have not specified a main application icon for the application, you must call updateIcon and provide an icon before setting the rollover icon. Otherwise, the system will override the main icon and the rollover icon as set by this method with the default icons for the current theme.
Note: Changes made using this API are NOT persisted across resets.
Parameters:
rollovericon - Icon to use when the application icon is in focus on the home screen, or null if the application's default rollover icon is to be used.
Since: JDE 4.1.0
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.
I'm also not sure, i think its not an issue with your application icon, what I understood is like you are changing application icon at some point when application was in background, which should work fine with out an issue. Next you want when the icon has been changed (meaning application is in some other state now) so if user clicks on the application icon you want to show some other screen (lets say Screen2) not the first one (lets say Screen1) which you would normally display?
If my understanding is correct, may be following could be helpful.
1. If your application always run in the background, you might want to manage your application state related information in RuntimeStore. Use RuntimeStore to store the state info when you changed application icon as per your business logic, then when user clicks on the application icon at Home screen, you can check the state info in RuntimeStore and do the needful.
2. If your application do not always run in background, you can apply the above #1 logic using PersistentStore instead of RuntimeStore.
I hope it would help.
Thanks,
Sameer Nafdey.

Resources