Android - Images from an URL through web services according to Screen Density? -


i'm working on android app. pretends many countries, need change icons, , "drawables" according user's country has logged-in app user's country mobile operators, maybe country's flag, etc.

i planing restfully through url on web service (using volley).

but, talking android's multiple screen densities, don't know if in case "valid" 1 single image size service put on app, or depending on device's screen density request respective images server (if practice).

how have proceeded on these cases? comment appreciate, thanks!!

i believe case have described valid , approach.

you can parse images applicable screen densities on server, pull them app based on file naming or sorting conventions. i.e. density = getdensity -> pull images images/density

alternatively, if these images sufficiently small, perform resizing in-app after pull simplify process using bitmapfactory methods.


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -