I have a database full of item witout images. i'd like to show an image when the user watches the detail of an item. My idea was to search an image on google, take the first result and then include it in the activity.
Can this be done with android? and if so, what's the best (or maybe the easyest) practice?
I think you can use https://developers.google.com/custom-search/v1/overview to search images
Related
I am designing an Android Application, in which I want to add a filter to filter the choices that are displayed in certain categories, now the thing is I am planning to have show a PopupMenu whenever a user clicks on the filter button, and it is working, but since the number if filers is large. so I want to group them and make them collapse able, and I have seen many apps doing so, but I am not able to implement than in code, if you could provide me with a nice code doing the same, or any tutorial it would be much appreciated. Thank you :)
If you are using json for getting the data, then it will be good to maintain the filter from back end side. So just pass the name of category or categories, for which you want to get filter. and you will get the result from json for all categories. Most of the Apps using this approach. So you can also try this way, to achieve filter.
I'm not sure if i understand your question correctly, but if you want to group some items in your popup ExpandableListView should solve your problem.
Link: http://developer.android.com/reference/android/widget/ExpandableListView.html
I have an app with a search bar and want the results to pop up from the button in the form of cards, similar to the ones of Google now. Each result(card) will contain its own information including an image. There is no need for the swipe to remove parts of it. Users should be able to just scroll through the results.
After around 3-4 result cards are scrolled the next set of results should pop up just like how you would scroll in Google now.
What is the easiest way by which I can achieve this?
Is it possible to create a layout prefab or something that I can populate with results from a database and then pull on to the screen?
Please help !
I am new to Android development, I need to show user manual like Flip-kart app on start-up of app.
Please refer the image below, You will get an idea about, What actually I want to achieve....
Is there any standard way to achieve this?
You can do the whole stuff manually.
Or use a prebuilt library called ShowcaseView.
You'll find details, code and guide here http://www.xda-developers.com/android/create-holo-themed-demo-overlays-with-showcaseview/
Here is my suggestion
Get the semi-transparent images of manual pages. Keep the Images in your res/drawable.
Use sharedpreference to maintain the status whether this manual is shown to user on startup or not (Depending on your requirement). Check the status when the app is launched, to decide whether to show this to user or bypass it.
Use a fragment or Activity to display this manual images in sequence one after another.
for this you can use viewpager, swipe animation or simple buttons.
just use one Gallery view and skip button on it.Show that gallery on the first installation.For that you can set flag value in sharedpreference.Also shows a button for virtrual tour in Left drawer,
I would want to know that how Instagram application listing/showing feed page?
Here is a screenshot: (I found it via Google and resized via tinypic.com. Here is the original file: http://www.digitaltrends.com/wp-content/uploads/2012/04/screenshotsjvc.jpg)
I am talking about 1st and 2nd screens.
As you know, when you go your feed (2nd screen) you can slide down and view other shares.
Every share has these:
Owner picture and username, shared time, a photo and a few things.
How to wrap all these datas in one control/layout in order to multiply?
Which control(s) (LinearLayout, Fragment, TableLayout and its TableRow(s)) are relevant for this kind of application?
I am not an expert Android application developer, that's why I want to know. I have confusion about that.
Thanks in advance.
As per my understanding screen 1 and screen 2 probably different fragments (take a look about fragments here). 1st fragment contains GridView (or some similar control) and 2nd one contains ListView.
I would suggest to begin with ListView. Basically, You will need to develop layout for single item (I think single RelativeLayout might be appropriate here) and then use it as item in the adapter.
I am sure there is a better way to do what I am doing in my apps. The current one I am trying to improve is a list of military cadences. The way I am doing it now is by loading html files in a web view.
What I would like to be able to do is have one view set up and just be able to add the text portion of what I would be displaying with the html file.
What would be the best method. I know this is probably a pretty simple thing to do with a sting or array but I am at the very beginner level and would need to be pointed in the right direction to do it.
Sounds like you are searching for ListView. You can make a List of what you like tho show to the user and stick that with the an Adapter to the ListView.