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 8 years ago.
Improve this question
I want to make an app that runs both in handset & Tablet as shown in figure:
This custom listview would contains around 200 items, its title & description can be loaded from SQLite
For loading 200 images should I use blob in SQLite or from the drawable folder,which would be a better approach ?
I read the android documentation Supporting Tablets & Handsets, it states that we should use fragments. So can anyone recommend me some tutorials to use fragments
that fits my question ?
I am new to it so any type of help is appreciated.
Thanks..
I think Master/Detail Flow is what you need. Luckily it's already built into Android Framework.
Creating a new project, when you reach this page, instead of selecting Blank Activity, select the third template, that is Master/Detail Flow.
The best way to learn it is to scrutinize the pre-written code in the template.
However, you can also get a grip on it with this tutorial.
About the second question, go for blob only if you have just a few pictures. But in case you have many pictures, decoding and encoding the pictures can be a pain in the back, so I recommend using simple Drawables.
Related
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
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.
Improve this question
It should be easier to use the design tab when designing an app, as you can drag and drop and it is more intuitive, but it seems many developers rather prefer to use the text tab (write the design in code).
Furthermore, in the Udacity course videos I'm currently watching they teach you to design the app using code.
Any special reasons why one is preferable to the other?
In my opinion you should omit using designing your layouts with the visual editor as much as you can. You might be tempted to use it at the beginning of your "android journey", but it won't do you any good in a long term.
Using text editor will basically make you understand layouts. How they work, how Views influence each other. If you learn that, I assure you, making a layout with the text editor will be much, much faster than using the visual designing tool.
I personally never use this tool (the visual one) for creating a layout. Sometimes I'm just peeking at the Preview window (while writing in a text editor) to see if everything goes as planned.
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
Can any one please tell me how to make a segment control in android, exactly given below -
I am confused what images should I use . How to cut images and use them as resources to get exact same segment control like this. And which library would be perfect to achieve this ?
There are dozen of good articles on segment control implementation... but following are the good ones , that helped me.. Intermediate Example is closest to your requirement.
Basic Example
Intermediate Example
Github Segment Control Example One
Github Segment Control Example Two
Github Ceryle SegmentedButton (the richest)
For creating Menus , u need to have some photoshop skills, although this website can create navigation for u online as well Create Navigation Online
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!
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/