Can I start a call from a hybrid application by clicking on one button using MobileFirst? [closed] - ibm-mobilefirst

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i want to develop a hybrid application which makes a phone call to a static number automatically when clicking on a button using mobilefirst.can you help me?

It's not specific to IBM MobileFirst. A bit of googling would've given you the answer you needed...
Here are a couple of options to open the dialer with a number:
Directly in the HTML (you can style the a to look like a 'button'): call this number
Using JavaScript code to be called in a function: document.location.href = "tel:+375292771265";
Edit:
It seems that you want to auto-dial.
iOS: In iOS this is not allowed in webpages. Worklight apps are essentially web code and thus considered a "webpage" by the OS and will thus first display an alert confirming if the end-user truly wants to call this number or not. In a native app the dialer will auto-dial. This can be read in the iOS documentation: https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/PhoneLinks/PhoneLinks.html
Android: not allowed by the OS. You may be able to achieve this using a Cordova plug-in: see how to create Cordova plug-ins in MobileFirst Platform Foundation and a possible functionality implementation.

Related

Can we use Windows 10 (for phone ) model design in Windows phone 8.1 App? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I am developing an app for windows phone 8.1 . Based on MSDN design guidelines I am using pivots and panorama controls in my application.
I heard there are some significant changes in UI in windows 10 OS and MSFT is not using popular controls like pivot and panorama in Windows 10.
MSFT uses buttons ,top bar, hamburger menu etc. mostly in their new OS version. See the link
My questions is , can we design my new application in 'windows 10' model ? (using hamburger,top bar etc.) . I want to make sure they will put my app in store. I am afraid of certification failure (there is a chance for rejection because app may not follow WP 8.1 app design guidelines)
This is actually a big app and need at least 8 months to get done .
Those design guidelines are not certification requirements, they're just here to help you get a clue of WP design principles. There are some UI requirements for publication, but those are more semantic (i.e. text on buttons should always be clearly legible). The official requirements are stated here. As long as the UI is responsive an not misleading for users, you won't have any problems.
Personally, I've published several apps to WP, including some with special, non-standard UIs, and got rejected quite a few times, but never because of disregarding design guidelines. Mostly, it was due to technical reasons, or the button example I stated above.

What is the new Jetbrains web-based code-browsing tool (based on IntelliJ)? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
Recently, I was watching a presentation in which JetBrains demonstrated a new, web-based code-browsing tool.
It's based on the IntelliJ code base, which supports code navigation operations such as show implementations, find usages, and so forth.
Unfortunately, I'm unable to find the presentation again. Does anyone know the name of this tool?
Since the tool is in pre-release, it wasn't possible to google any information about it. So thanks for any info!
It's called JetBrains Upsource and you can see it in action at https://upsource.jetbrains.com/
Upsource (that's the name of the tool) developer here. We just published a new preview build, by the way - check it out.
Regarding your browser compatibility question - I'm assuming you're getting an outdated browser warning, is it true? It shouldn't be the case with Firefox 20, though we generally support the last two released versions of every major browser (which, in case of Firefox, means 22 and 23). Upsource makes heavy use of latest web technologies to do what it does, therefore - no old browsers.

Handling free & paid versions of Windows Phone 8 apps? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm currently finishing up my very first Windows Phone 8 app. Right now, I'm including ads, and I am planning on selling it for free in the Store. I'm wondering though, what is the best way to go about also including an ad-free, paid version of the app?
Is it better to have two versions in the Store, or have one paid version that has a "trial" version which includes the ads?
For either option, does anyone know of a tutorial or good approach to using the same code base for each version? For example, using the same code for both versions but have the code programmatically determine (based on that version) whether or not to include ads?
SOLUTION:
I went with the answer by #DVD below to use an in app purchase system. I found an excelling tutorial for how to do this (which includes testing in the emulator) here:
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj681689(v=vs.105).aspx#IAP_MockLibrary
For windows phone 8 I think the best solution is using in-app purchases to remove the ads.
If you use two different versions of the app you are splitting your users, reviews and downloads with 2 apps, remember that reviews and downloads are used to calculate the app rank .
I only recommend this system if you are publishing for the WP7 market as well, because this one doesn't support in app purchases.
Still if you want to use this system, a possible solution is using pre compilation statements.
#if PAID_VERSION
(paid version code)
#else
(free version code)
#endif
Creating a new Solution Configuration, you can copy Release options and atribute a new name to it, after that you just need to add the symbols on the projects properties in build tab.
After this you select witch solution config you want to deploy and you are done.

How to enable Start Menu in Windows 8? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Can anyone give me some hack or provide some way, by which I can enable the Start Menu in Windows 8.
I am finding hard to use Windows 8 without Start Menu.
I dont have any problem, If I need to write a Custom Code in .Net to enable it.
There is a web page which provides some nice features and tricks for windows called neowin.
On this page I found this article: http://www.neowin.net/news/windows-8-how-to-re-enable-the-classic-start-menu
I hope this is what you´re looking for :)
EDIT: I also have Windows 8 and I´m using this Trick without problems :)
EDIT 2:
This won´t work for build 9200 or newer! I just got the new build and i tried to execute this trick but after restart my Windows told me to "Refresh" or "Reset" my Operating System. after refreshing my win 8 all my apps and programs were erased.
Greets,
Paedow
You need to use the windows key (bottom left corner of your keyboard) to get the start menu. Hope this helps. Or you can set your theme to an earlier version of windows that has the start menu.

Gmail label colors via API? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Android client of Gmail uses labels which are exactly as my labels in Gmail web interface. When I started looking for API support, I wasn't able to find any.
Both
IMAP extensions and
Email API: labels doesn't provide answer on how do they manage colors through API.
How can I get label colors from gmail via any programming language?
As far as I am aware color isn't one of the attributes that can be set/received.
Well, there's this: https://developers.google.com/gmail/android/ as an Android API, so if you're developing for android, this should help you. Otherwise, you might try checking what the labels uri resolves to and try accessing that from your app code.
Or download the android emulator and run gmail on it while running a network sniffer, and see what comes down the pipe.
With this:
GmailContract.Labels.LabelCanonicalName.BACKGROUND_COLOR
You can get the background color of the label, in hex format 0xAARRGGBB
i.e:
labelsCursor.getString(
labelsCursor.getColumnIndexOrThrow(
GmailContract.Labels.LabelCanonicalName.BACKGROUND_COLOR
)
)