This is a migrated thread and some comments may be shown as answers.

ICenium and (web service and localization )

1 Answer 93 Views
Feedback & Suggestions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
AHMED
Top achievements
Rank 1
AHMED asked on 20 Dec 2013, 10:42 AM

Hello..

1st Qustion:

Answering of this question determines if ICenium suitable for me or not.
 
I'm working on the development of the application do the following:
1 - The user takes a picture by the camera
2 - and then identifies the geographical location (google MAP + GPS) so, he could not take a picture of a location outside the boundaries of a particular city
3 - Get IP Address automatically
4 - recording some of the data in the text boxes (such as name, age ....)
5 - Check the recorded data (validation)
6 - send this data (image - geographical location - other data) to the Web Service was developed by visual studio don net
7 - and receive result from Web Service

Is it easy to do that by using Icenium?

 

2nd Qustion:

Is Icenium support localization ?

1 Answer, 1 is accepted

Sort by
0
Fatme
Telerik team
answered on 25 Dec 2013, 02:12 PM
Hello Ahmed,

Thank you for contacting us.

I will answer the questions you have in the same order you asked them:
The clarify before I begin - Icenium is basically IDE and cloud services and is based on the Cordova framework and its command line tools to help you build hybrid applications.

1st question's answer
  1. I suggest you to use getPicture() method. It takes a photo using the camera, or retrieves a photo from the device's image gallery. For more information you can check cordova camera docs.
    You can learn how to use cordova camera plugin from here.
  2. To identify the geographical location you can use geolocation cordova plugin. You can find more information here.
  3. It is possible to get IP address using Icenium. Here you can find the native code for Android. There is old cordova plugin's implementation that you could migrated to the new version of cordova. More information should be found here and here. As for native code for ios, I would recommend aamritrao's answer in this thread.
  4. To record data, you can use file cordova plugin. To learn how to use it check out here.
  5. I would recommend to use jQuery validation plugin. You can learn how to use jquery validation from here. Also you could implement your own validation logic code or use custom plugins depending on your particular needs.
  6. If you want to communicate with remote server you will have to call web services in your
    app using javascript. You can use $ajax to fetch data from server or post data to server. Check out the following sample code:                                                                                                                                  
    $.ajax({ 
       async: false,
        type: "POST",
        url: "Your_WebService_URL",
        data: YourData, //for example {name: "your_name", age: "your_age" }
        dataType: "json",
        // ...     
    });

                                                                                                                                                                                  For more information you can check out jQuery documentation.
  7. To receive result from web service you would need to implement success and error callbacks.          
    $.ajax({
        // ..
        success: function (data, textStatus, jqXHR) {
            //Here you can implement your client side logic.
        },
        error: function () {
        }
    });
                                                                                                                                                                          
To summarize, all the things you mentioned above are easy with Icenium.
2nd question's answer:
You would need to handle the localization logic yourself as shown in this thread. There are some js libraries out there that can assist you with this task e.g.: I10n.
 
Regards,
Fatme
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
Feedback & Suggestions
Asked by
AHMED
Top achievements
Rank 1
Answers by
Fatme
Telerik team
Share this question
or