i'm beginner in xamarin projects. I want to get data from my sql database and show them in a listview or gridview. First of all will i use sqlLite for doing this. And second is there any easy tutorial which expains how will i do this?
The best way to learn Xamarin is running samples (and deploy them to devices or simulator) from Github in Xamarin Studio or Visual Studio. Given that it's not recommended to paste Github links, you can visit Github and search form Xamarin. I don't know what platform you want to develop for. I recommend Xamarin-forms. And there's a sample for SQLite (a to-do app).
check this out.this may help you
http://www.codeproject.com/Articles/1090451/Xamarin-Android-App-Using-SQLite-and-Custom-List
Related
I've been developing an android app for the last year or so in android studio. It has been in the play store since October and quite a few people are using it.
I have received many requests to create the same app for iOS and so after a lot of research I've settled on xamarin forms as it will be easier to code (as I'm familiar with c# and xaml) and less work to maintain the app for both platforms at the same time (even though it will take a while to port the code over).
The android app is using sqlite for data persistency and the xamarin version will do the same.
My question is, how could I port the sqlite databases of existing users to the new app once it is released? Is there a way to define the table/column names the same as I have set them in the android studio version?
Currently the app has a feature to export the database to the Downloads folder and the xamarin.forms app will import it from there.
I haven't seen anyone in any tutorial explicitly define the table and column names in their xamarin.forms sqlite implementation so I'm a bit worried to take the leap.
Is there a way to ensure that existing databases will work out of the box once imported in the xamarin.forms app? If not, could someone please point me towards a piece of code that will migrate data from one dB to another?
Thank you in advance for your time.
Regards
As I got a bit more familiar with the SQlite package in Xamarin.Forms, turns out that the answer is as simple as adding the [Column("my_column")] attribute above the property in the model. This way it will name the column to whatever is specified in the brackets and I can make sure it matches the database schema I have in my current project from Android Studio.
a bit of a "duh!?" moment here for me but thank you to all who have taken the time to answer!
I want display or modify SQL data through app. I am using xamarin for Visual studio and currently creating app for android. I have created Web API(Rest) which has three methods . One method retrieves data , second method verify data and third method add data in to the database.
Basically I created this API so that I can use it across multiple platform. I need some hep for android app how to consume that rest API and call particular method based on click event of Button.
If there is any other way through which I can securely use SQL database using Xamarin for visual studio .
Any any tutorial, example or link will be highly appreciated.
Thanks,
Take a look on the Xamarin website:
http://developer.xamarin.com/guides/cross-platform/application_fundamentals/web_services/
There is a tutorial here:
http://www.youtube.com/watch?v=VfoJCd_TMx0
There are some Xamarin components which may help too, e.g:
https://components.xamarin.com/view/restsharp/
Hope that helps
I want to make a dictionary app in android. What would be the preferred and efficient database for storing word-meanings list ? I am a novice programmer, any help would be great.
Thanks.
Android has builtin SQLite support that you can use in your application. I see that there is a sample project called Searchable Dictionary that looks quite similar to what you are trying to achieve, so maybe you can use that as guide.
Since it is a mobile environment something quite small seems to be a better option.
use sqlite3 or xmlsimple java library.
http://simple.sourceforge.net/
http://www.sqlite.org/
I am new to developing anything and want to make an Iphone like spinner that pulls information from database and return info contained in database
I have checked all the spinners out on How can we create iPhone-like spinners in android? and like the I phone one it is based of off javascript and html
want my database to be similar to this
http://www.portlandbolt.com/technicalinformation/bolt-torque-chart.html
any ideas on how to accomplish this or code snippets that would help.
I am also having problems setting up a database I am using Eclipse Helios and have been unable to install dbEdit and jdbc drivers tried many tutorials but no luck, would it be better to try a different IDE like netbeans?
Forget about JDBC when programming for Android. Take a look at the notepad tutorial, for a decent introduction to using a database from an Android app.
For a good looking spinner, take a look at http://code.google.com/p/android-wheel/
I recommend that you use the standard Eclipse tooling, as it works well (in my experience), and it has a lot of community support.
I am currently starting to create an app for a small charity company. But I'm not entirely sure how to properly learn how to code for the Android OS. I have searched online for tutorials, but most stop at the same stage and only show you how to launch the "helloWorld" app.
My question is this:
1) Will using solely XML be sufficient to code an app? Does it require working in partnership with Java?
2) Does anyone know of any books, recommended books of course, that break everything down for you step-by-step?
Android Developer site very good to give you all ideas. Start from Hello, World
1.) Not at all. XML is ONLY used for the layouts.
2.) There are a few books out there that I'm sure someone will come along and recommend, but I've found the tutorials here to be the best start.
In your case, I'd look at AppInventor which allows you to create small Apps without coding (at least that's what it says, haven't used it yet myself)
1) No, you can use XML for interface, but you can't write an Android app in XML :) You are not required to work with Java, but Android language is based on Java, so knowing Java is an advantage while learning to code.
2) Did you installed Eclipse and the plugin for Android?
The Android Training is pretty useful, and I've learnt a lot from the tutorials and the sample code provided there. (The Notepad app is way more complex than the Hello World tutorial ;)!).
Also, take a look at the answers on that question: How can I learn Android?