I am developing an app very similar to Uber in Nativescript + Vuejs.
There is a moment in the flow of the application, where a driver, having accepted a trip, runs the device's default satnav application (eg Google Map, Waze, etc.) to perform GPS navigation. The point is that while the driver is navigating -with the maps application in the foreground- there is a use case where he can receive an offer to take another trip (as the current trip is soon to end), which he has to confirm or reject/dismiss. Is there a way to do one of the following scenarios:
Show a dialog that appears above the map application showing trip details and two CTA buttons? Like a dark overlay maybe?
Return my application to foreground to show the dialog (leaving the maps application in the background). Important detail is that the map application is opened programmatically by my application.
Please remember that I am using nativescript and not Java/Obj-C.
Thank you!
Related
I was wondering what will happen to the UI when the app is minimized. Will it refresh the UI [With respect to its content] even when the app is minimized?
In the thumbnail[ When we hover on the app icon in taskbar ] we cant see apps UI being refreshed when app is minimized, but we can see the UI being refreshed in thumbnail when app goes to background and new app comes on the foreground.
What I think is, when the app is minimized, the UI thread/Main thread will keep updating the apps UI [depending on the content], but the changes will not be rendered on the screen. the changes will be stacked on a buffer and when the app is brought up, top of the buffer is rendered. Is this right?
It would be of great help if you can help me get a detailed understanding in it.
Thank you
I am not really understanding what's the difference between using a notification to build a ui where you can perform an action (click on button or display a card) and using the GridViewPager to do that.
I am creating an app where you can perform actions with a button (following the spec of google, on action/button per page). I am using the GridViewPager to do so. But looking at the samples that google provides and looking at the different wear apps that I could find, it looks like a lot of the applications have the same design : buttons with a blue background circle, provided by the Notification class.
In which case should I use the GridViewPager or the notifications?
I am trying to integrate MobPartner ads in my app, the ads from MobPartner can be displayed from "Pools" which contain several ads which automaticly scroll sideways and are set which an individual click link. The page with the ads looks like this, when I set the URL of the WebViewer in AI2, the ads display and scroll as they should.
The problem I have is detecting a click on one of the ads, this is the best I got to:
If a user would click on one of the ads via the WebViewer it will redirect them to the automatic URL set by the advertiser. I will then use the link and set ActivityStarter to WebViewer1.CurrentUrl and start the website full screen instead of the ad resolution (320x48).
I would like to know if there is a way to detect any clicks within WebViewer so that I can start ActivityStarter faster with the link. If not, is there a way to check the URL of the link clicked in WebViewer before the target website loads. In my opinion the timer (set to 1000 interval) is an inefficient way of checking if an ad is clicked. Anyone able to answer my questions above or provide a way of improving this code? Much appreciated.
PS: The HomeUrl for WebViewer has been pre-defined in the designer as well as the ActivityStarter "Action".
Thank you!
There is no possibility to detect any clicks within the Webviewer. The only thing you can detect is an URL change with the Clock component, and this is what you are already doing.
What you could do is to reduce the timer interval or instead of opening the webpage with the Activity Starter, just stay in the Webviewer and set its height and width to fill parent, which is -2 in the Blocks Editor, and hide all the other components on the screen to be able to view only that webpage in full screen.
Im writing an application for workers in our factory and one of requirements is that they should be able to take images using camera integrated in PDA with WM6.5.
The main difficulty is, that thay MUST NEVER EVER be able to enter windows, Start button, desktop etc. They are allowed ONLY to see my fullscreen application.
I succesfully deactivated BlueTooth + red, green and volume buttons (if you are interested, im pasting links here)
http://forum.xda-developers.com/showthread.php?t=546737
http://msdn.microsoft.com/en-us/library/bb431750.aspx
http://social.msdn.microsoft.com/forums/en-US/vssmartdevicesvbcs/thread/a4f9f41d-47a8-4080-8613-2c2ddcf4c012/
And now I have to implement the camera function. But as CameraCaptureDialog opens a new dialog and shows start button, task bar and allows user to open list of applications, I must not use it.
I must create my own dialog that will show the Live Preview in a panel or in an imageBox and photo will be taken using a button.
I searched the whole internet and found only DirectShow.NETCF (but people do not recommend it) and CameraCaptureDialog.
Can I somehow redirect the CameraCaptureDialog to my dialog? Or can I access camera directly via .NET framework? Or can I modify the CameraCaptureDialog not to show Start button, menu etc?
Looks like you have a bit of a challenge. I agree that Directshow is a questionable solution, but it may be your only option. I did get http://alexmogurenko.com/blog/directshownetcf/ to work, but only on low resolutions.
A better option might be to find a device that does not show the menu bar/start button. AFAIK, the HTC HD2 has a very clean Cameracapturedialog..
Good luck.
I am developing a chat application in blackberry.
I have made a main screen which acts like the home screen of the application. Whenever application is started this screen appears first.
There are like 5 screens (1 Main screen and 4 other screens).
My problem is..I want to update this 1 main screen when something happens on other 4 screens. Like For example, if I'm using the voice recording screen of my application. I have to add an icon to my main screen of the application indicating I have recorded a voice message after I have finished up.
I am not able to get the logic for doing this. Since I want to update a screen's UI which is already on stack, from a screen which is at the top of the stack.
And also, I want to keep those things at the main screen of the application whenever I start my application(just like history of the activities).
please help.
Read this article:
http://berrytutorials.blogspot.com/2009/12/blackberry-threads-dynamically-update.html
It shows how to update UI from different thread using Observer Design pattern. But you can use same technique to update screen from different screens.
Take a look at MVC design pattern.
Implement screens as Views which get notified when data model changed.