GXT how to load data with RPC? - gxt

I' new to GXT and RCP and need to use both in my project. I want to use
example. Everything works fine, but there is no data. What should I do to load data to grid? For now it could be static data. How to implement service and bind it? Could anyone show me a nice tutorial or explain with simple words?

I gues the best way to start with is to look into the examples sencha provides. For examle the basic grid:
http://www.sencha.com/examples/#ExamplePlace:basicgrid
Here the data is provided in a static way (only client side). You have to enhance this with your new knowlege about RPC. To get this knowlege you can read here:
http://www.gwtproject.org/doc/latest/tutorial/RPC.html

Related

ANDROID: Implement Google Maps direction in my app

I would like to add to an app the directions from the Google maps as seen bellow, but the information to come from the google maps when I am starting the navigation (a route on the main Maps App. Would that be possible? And if yes, where would I start?
EDIT: This post describes better the issue I'm having, and it even provides a Kotlin library that can be used.
You can use Mapbox API for Navigation. It's a very great library to use.
Check this tutorial for implementation.
Check the example that you want exactly.
Basic UI Navigation Example
BETA => Turn-by-turn navigation
This can be solved using the notification Listener Service. There is a Kotlin library that can be used.

Is there a way to deploy my app on a hosted platform?

Dear Stackoverflow people,
I am facing the following problem:
For an internship in a company I have created a leaflet map with several custom features such as custom popups, markerstyle etc. The thing is, in the end they are supposed to manage the whole thing. Since they don´t know anything about code they asked for the easiest possible way for them to add data to the map.
So I came across the serverside tutorial by CodingTrain using Node.js and thought its perfect for me. Now I created basically a webform that takes up all information, converts it into a geoJSON feature, stores it in a database and sends it to the map to be displayed, great easy GUI to add new features...
Now comes the bummer which I didnt know would be a problem: The website is on a hosted service called Bitrix. I uploaded my project and it does not recognize the routes and cant write to the database or anything. I actually dont know whether I can run node on this platform?
I had the idea to launch the whole thing on a Service like Heroku or Glitch and just take the map from there and include it into the other website via an Iframe or something like that. Do you guys think thats feasible? Are there any other better ways?
Sorry for my obvious cluelessness but I´m completely new to serverside programming and thought I´d found an easy way out... I am grateful for any kind of suggestions or help!

Creating an app to provide user with offline map and offline routing using Android Studio

I am trying to create a mockup of application that will allow user to use the app to navigate in a city.
The reason the map needed to be online is that my application needs to modify the mockup traffic light in the map based on traffic.
Currently I tried to OSM since Google map doesn't provide any traffic light data.
My problem is I have no idea how to create an offline map, by using OSMAnd, I am able to create an OBF file using OsmAndMapCreator, after that I have no idea how to implement it (I cannot find any tutorial online).
I also don't know which offline routing service to used, I have find that OSMAnd can be used to provide navigation but I don't know how to implement it in a new app.
I am sorry if this is off topic or being a vague question, but I have no more choice.
Thank you.

Control xml attributes

Hello I have a problem wich I would like to find the perfect solution for it.
I am a publisher in many monetizing platforms like : admob,adfonic..
for example in my main layout.
I declared admob but if I wanna show adfonic I must do a whole update of my app vercion for my users would see adfonic instead.
So is there anyway of control those lines or controling that xml that shows either admob of adfonic ?
Thank you very much
I strongly recommend using a mediation solution like Admob mediation where you can configure which networks to use at runtime.

Convert Objective C project to Xamarin

We have an app written in Objective C. It uses CoreData, RestKit, about 10 viewcontrollers.
We would like to migrate it to Xamarin (so we can target Android and Windows).
I was hoping there was a way to bind the current code to a Xamarin solution and kind of rewrite features step by step within Xamarin (eg: replacing a viewcontroller at a time, and at the end replacing RestKit+CoreData, by SQLite + ServiceStack).
I am aware of the binding to Objective C option that they provide, however, it doesn't look to be the appropriate fit for this (way too complex, probably easier to rewrite the app from scratch).
Is there a way to migrate our current project to Xamarin so we can convert? or do we start from scratch?
Thanks.
Options:
Migrate full project - no;
Automatically create binding for libraries, rewrite business-code, UI-code - yes;
Rewrite from scratch using .Net/Mono classes - yes.
If code size is relatively small, you should rewrite the whole app. Moreover, thus you could have a chance to separate business-logic from UI code and tools libraries (RestKit, CoreData). In perspective, that code will be more reliable and cross-platformish.
This tool can help. It does Obj-c to C# translation (some manual cleanup required):
Automagical
Quite probably, a re-write, from scratch. One thing to keep in mind, if your back-end is .net.. and you are using DTO's.. like with AutoMapper from Entity Framework objects.. you'll be able to re-use those DTO objects on your mobile side with Xamarin. If you are using OData, I'm not sure if this is still a problem, but Xamarin studio wasn't generating OData service clients. So you had to generate them in Visual Studio, then take the generated client code and throw them into your Mobile projects.
sqllite-net is awesome. I've never had any problems with it.
https://github.com/praeclarum/sqlite-net
I currently have a project, with DTO Objects from an Azure WCF service, that I push directly down into SQLLite objects on IOS and Android with Xamarin. I use RestSharp, rather than Service Stack. I should probably go learn the difference.
If you are looking to use SQLCipher from the Component store, to encrypt your sqllite db locally on your device (Good advice to do so), you should be aware that there is an issue in android.. going to 2.2 or 2.3 with SQLCipher. Works for ICS and above though, if I remember right.
Just be careful on your security implementation for allowing clients to connect. I want to say.. don't take too much advice.. and don't take too little either. : )

Resources