Unanswered

Camera Widget remove all controls

Questions asked by Robert Love on Mar 15, 2017 01:49 EDT

Hi there I'm building a sample app which shows how using OCR to scan a Drivers Licence might work (see attached screen shot on iPhone 4S). I want to remove all controls. I've set "Native UI" to "Off". This has removed the native UI but left me with the ugly controls...

View all replies

New

display a saved image

Questions asked by Roelof Koelewijn on Mar 02, 2017 08:18 EST

Hi I'm struggeling to get the image I saved to the filesystem displayed on the image widget, anybody who knows how to do this? My code: function frmPhotos_oncapture_photo(camera){      try{          var lMediaName = "foto" + "-" + 1;          // set photo            var resizeimage = kony.image.createImage(camera.rawBytes);          ...

View all replies

found the solution by doing: var imgData = resizeimage.getImageAsRawBytes(); //the data you write has to be rawbytes  var dataAdded = myfile.write(imgData,false);

View full answer

Answered by: Roelof Koelewijn Mar 16, 2017
Unanswered

How to determin if Android device is a tablet

Questions asked by Roelof Koelewijn on Feb 27, 2017 05:59 EST

Hi, I would like to know if the Device where the APK is running on is a tablet. Is there a way to determin this?

View all replies

Posted In
Kony Inc Kony Studio
Tags:

We have used the #ifdef for getting the device type like :             var flag=false;               //#ifdef tabrcandroid       ...

View full answer

Answered by: suresh jallipalli Feb 27, 2017
Answered

ios widget

Questions asked by Daniel Rincon on Feb 22, 2017 07:51 EST

Hi! I have a combo box that show many options to select. The combo show is the native of each tecnology. For Android works well but for iOS when you tap and select a value, it shows again to select but I didn't tap. That happens until I repeat the select that...

View all replies

It was a code problem, we put the line "source.setFocus(false);" and it seems that it solved. Thanks

View full answer

Answered by: Daniel Rincon Feb 27, 2017
Answered

image resize

Questions asked by Roelof Koelewijn on Feb 22, 2017 06:07 EST

Hi, I'm trying to find a way to resize captured images from the camera widget in code. I know there are functions in 7.2 to compress and scale images. But I'm wondering if it is possible to resize the image to a certain width and height. For example the captured image on an iPhone...

View all replies

Hi Roelof, You can use the maxSideOfTheImage camera property to control the size of the image, please check the below link for...

View full answer

Answered by: Shaik Mohammad Jabiulla Feb 23, 2017
Answered

kony.contact.add

Questions asked by Arjun Sharma on Feb 21, 2017 05:25 EST

I am trying to add a contact using kony.contact.add for the first time but I am getting this error. var ob = {firstname:"John",phone:[{Mobile:["+919999999999"]}],postal:[{Work:[""]}]}; var res = kony.contact.add(ob); Error is: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.String.intern()' on a null object reference, Name : Unknown Error, stack

View all replies

Hi Arjun, Can you please try the below code and check in your application. var mycontact = { firstname : "John", lastname...

View full answer

Answered by: Shaik Mohammad Jabiulla Feb 23, 2017
Answered

Image 'clicked' in Segment widget

Questions asked by Humberto Trinh on Feb 21, 2017 03:28 EST

Hi, We have a segment with 2 images (working as a button). We have configured onTouchEnd event that provides information about the clicked widget and location, but in addition to this, we need to know the row it belongs. For example a message in an alert when you click the first image in...

View all replies

I think this can be achieved using context.  function frmName_onclickImageButton(context){       var selecteditem = context.widgetInfo.selectedRowItems[0]; } First you have to create the function...

View full answer

Answered by: Roelof Koelewijn Feb 22, 2017
Answered

Assign Segment's internal control's Event

Questions asked by Ning Ye on Feb 17, 2017 15:32 EST

I have a simple segment with some switch widget in it.  See image attached below.  Is there a way to assign an event during init or preshow event to assign OnSlide event call back?  I need to access the row context so that it knows how to handle the event....

View all replies

Found a way to do it during the data load ...

View full answer

Answered by: Ning Ye Feb 17, 2017
Solved

Android png transparency is black

Problems posted by Alan Alencar da Silva on Feb 16, 2017 11:49 EST

Hi A Image in png format (transparent), does not display transparent background when loaded in image2 component via rawByte property. IDE Kony 6.5.2 Platform Android      

View all replies

Posted In
Kony Inc Kony Studio
Tags:

Hi Alan, Before you convert the transparent image as raw bytes, if you have modified the image in paint or in...

View full answer

Solved by: Shaik Mohammad Jabiulla Feb 16, 2017
Answered

Iphone Simulator Not Coming Fully

Questions asked by Karthik G on Feb 15, 2017 06:11 EST

I buliding appliation in Kony 6.5 and Using Xcode 8.2.1 While lanuching application simulator, Kony application not coming fully. 

View all replies

Posted In
Kony Inc Kony Studio

Hi Karthik, Please use the device specific splash screen images to the application to avoid the black patches at top and...

View full answer

Answered by: Shaik Mohammad Jabiulla Feb 15, 2017

Pages