Going to start project on android [closed] - android

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
Im gonna start a project on android.
It will be car selling.
1st, which libraries do I need for interface? Functionality I need is
1)Images in grid blocks on whole screen.
2)Images zooming.
And 2nd, I have to connect my app with xml or json file that will contains cars with infos and image. The server that will output xml (or json) file with cars is already done.
How I could parse that xml and json? The easiest way to connect that base to app?

For the grid you can use the standard GridView included in the SDK. To load images, I like to use Picasso and for out of the box pinch to zoom and double tap zoom I use PhotoView.
To retrieve and create the JSON object you can use Volley or AsyncHttpClient. You can also use Volley for the image loading, but I find Picasso a little more convenient.
Unless there's already a client built for your particular web service, you will have to parse the JSON or XML yourself, using appropriate classes from the SDK (look up JSONObject and XMLPullParser).
I hope that answers your questions.

Related

Xamarin.Android RecyclerView fed with Database [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 3 years ago.
Improve this question
How can I fill a RecyclerView in Xamarin Android with a SQL Server database that has images and information about the images?
Or if not a SQL Server database but with an API.
Could you please share some tutorial doing this? I can't find anything that is not local (using drawable folder images).
I'm looking a result like this (image):
So, once again, the problem with this result is that is made with a local-drawable folder-images list, and I need to feed the RecyclerView with an API that has the exact same information and images.
Step 1: First you should create WEB API Interface in SQL server into Mobile Application.
Step 2: After that WEP API creation you need to config in Xamarin Android Project.
Here given below link, i have explained step by step implementation Recyclerview
https://xmonkeys360.com/2018/01/24/create-android-recyclerview-using-material-design/

How can I clone views using java code in Android Studio [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 3 years ago.
Improve this question
How can I copy/clone a views automatically in android studio
for example, I have one imageview and a textview. how can i clone them on runtime with different values alongside with existing objects like them.
I tried to make invisible views and and update them later. but I don't think its efficient way. plus it is also limited
I'm fetching data from JSON file. which will get a text description and an image link each time I update that file online. so I want to update that in android app too! but unfortunately I can't do with single textview and single imageview. so need to automatically make them whenever the data is updated online.
if there is any other way of cloning views. kindly tell me.
First of all read this How to ask? , it's really hard to understand what you want us to help you with.
If i understand you correctly you want to display some kind of a list that updates when u update your JSON/Online database.
If that's the case I think the best way to go is RecyclerView
it's basically an efficient way to create a dynamic list that can be updated at runtime
And here is a nice tutorial you can use

which is better retrofit or volley? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
The community reviewed whether to reopen this question 8 months ago and left it closed:
Original close reason(s) were not resolved
Improve this question
I am trying to implement a code which makes intial get/post request to fetch the data then using that data i m going to fetch download links with jsoup.
file are n't greater than 200 kbs
so which is better to do this task?
1)intial request
2)downloading files
How to chose between: Volley and Retrofit
If you are :
Making Requests then I would like to say though both frameworks are capable of the same outcome, Retrofit is capable of accomplishing this without customization. However, if you are implementing multiple requests within your application, and I suspect you are, customization may be necessary within Retrofit. Though that could be the case, at the simplest level Retrofit has the easier solution.
Downloading Files(Image): Being able to make file requests was a pretty large factor in the making of our decision. Volley comes packaged with a loader specifically designed to download images for you. Packaged along with the loader is a custom view called the NetworkImageView in which the developer only has to hand a URL and an ImageLoader to and Volley does the rest. This view is specifically targeted to work well with list views and allow for automatic cancellation of requests when the images parent view is destroyed. On the contrary, Retrofit does not easily support image downloads. To accomplish what we are able to with Volley, one would be required to download and include another library in your project such as Picasso. So here Volley is a better solution.

Build an online application like facebook android [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 9 years ago.
Improve this question
I am trying to build an online application for movie management. I want the application to be an online one, could any have inputs as to how to build it, as in currently i am downloading each of the dynamic content and loading the layouts which is highly inefficient. Could anyone suggest a better procedure to make an online application and guide for the same.
https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae
That link will show you how to make a Google app engine project. The easiest way to use an online database with android. You can post, and get with very little code. What you do with the data you get back is up to you... Throw it into list views, text views, fragments, etc. But yes this is the best place to start as you need an online database or a social network would not work at all. I suggest you do the above totural and then come back with some more questions. Hope this helps!

How to create a searchable list [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 3 years ago.
Improve this question
I would like to have a database of items stored on the user's phone. I currently have everything set up using WebView pointed at my domain, but obviously this isn't ideal if the user is in a low-signal location.
If possible I would also like to be able to search the list for multiple words.
Any pointers to tutorials etc would be ideal.
In Android you'll want to use SQLite databases, here are some places from where I learned my way with databases in Android:
Start here:
http://www.codeproject.com/Articles/119293/Using-SQLite-Database-with-Android
Or here if you want to use an existing database:
http://www.reigndesign.com/blog/using-your-own-sqlite-database-in-android-applications/
If you decide on XML, though, you might want to read this instead:
http://www.anddev.org/parsing_xml_from_the_net_-_using_the_saxparser-t353.html
http://www.androidpeople.com/android-xml-parsing-tutorial-using-saxparser
Here you have a tutorial involving both methods, downloading data in XML format, parsing it and storing the information on a database, probably the guide you want to read if you're starting with Android, since it covers pretty much what you are trying to achieve, probably :P
http://mobile.tutsplus.com/tutorials/android/android-fundamentals-downloading-data-with-services/

Categories

Resources